Hi,
I'd like to have a DHCP and DNS server for my local network on my NAS. Do you think that's possible in the future?
Best Regards
Dogstar
DHCP and DNS server
-
Dogstar
- Posts: 9
- youtube meble na wymiar Warszawa
- Joined: Sat Nov 22, 2014 7:23 pm
-
Daneel67
- Posts: 3
- Joined: Thu Mar 12, 2015 6:01 pm
Re: DHCP and DNS server
Oh yes, that would be a great function!
-
cipciop
- Posts: 17
- Joined: Sat Nov 02, 2013 12:04 pm
Re: DHCP and DNS server
+9999, plus DNS server, minus DHCP server.
after the mail server, dns server you miss, huge.
after the mail server, dns server you miss, huge.
-
srbcrespo
- Posts: 7
- Joined: Mon Jun 08, 2015 4:53 am
Re: DHCP and DNS server
+ 1 here.
I want to find a way to have dnsmasq on ADM.
I want to find a way to have dnsmasq on ADM.
-
balubu
- Posts: 10
- Joined: Sun Feb 16, 2014 4:55 am
Re: DHCP and DNS server
To do:
Install Optware ipkg
Install from ipkg, dnsmasq
I use lan1 + Lan2 Adaptive load Balancing
dnsmasq is proxy , because i use for DHCP my Router
192.168.xxx.xxx = ip Adress (192.168.0.0)
Example config for dnsmasq :
dnsmasq.config
---------------------------------------------cut---------------
port=0
#log-dhcp
#enable-tftp
#tftp-root=/volume1/pxe
dhcp-range=192.168.xxx.xxx,proxy
bridge-interface=bond0, eth0, eth1
dhcp-leasefile=/volume1/pxe/dnsmasq.leases
# a TFTP server; either dnsmasq's built in TFTP server or an
# external one. (See below for how to enable the TFTP server.)
#dhcp-boot=pxelinux.0
#tftp-port-range=1028,1030
# Boot for Etherboot gPXE. The idea is to send two different
# filenames, the first loads gPXE, and the second tells gPXE what to
# load. The dhcp-match sets the gpxe tag for requests from gPXE.
#dhcp-match=gpxe,175 # gPXE sends a 175 option.
#dhcp-boot=net:#gpxe,undionly.kpxe
#dhcp-boot=mybootimage
---------------------------------------------cut-----------------------
Copy the S99dnsmasq.sh startscript to /volume1/.@plugins/etc/init.d for autostart.
dnsmasq startscript from install dnsmasq :
S99dnsmasq.sh
------------------------------------cut--------------------------------
#!/bin/sh
if [ -f /var/run/dnsmasq.pid ] ; then
kill `cat /var/run/dnsmasq.pid`
fi
rm -f /var/run/dnsmasq.pid
sleep 2
/opt/sbin/dnsmasq
------------------------------------cut--------------------------------
That works, because i use dnsmasq as proxy for my PXE server.
Install Optware ipkg
Install from ipkg, dnsmasq
I use lan1 + Lan2 Adaptive load Balancing
dnsmasq is proxy , because i use for DHCP my Router
192.168.xxx.xxx = ip Adress (192.168.0.0)
Example config for dnsmasq :
dnsmasq.config
---------------------------------------------cut---------------
port=0
#log-dhcp
#enable-tftp
#tftp-root=/volume1/pxe
dhcp-range=192.168.xxx.xxx,proxy
bridge-interface=bond0, eth0, eth1
dhcp-leasefile=/volume1/pxe/dnsmasq.leases
# a TFTP server; either dnsmasq's built in TFTP server or an
# external one. (See below for how to enable the TFTP server.)
#dhcp-boot=pxelinux.0
#tftp-port-range=1028,1030
# Boot for Etherboot gPXE. The idea is to send two different
# filenames, the first loads gPXE, and the second tells gPXE what to
# load. The dhcp-match sets the gpxe tag for requests from gPXE.
#dhcp-match=gpxe,175 # gPXE sends a 175 option.
#dhcp-boot=net:#gpxe,undionly.kpxe
#dhcp-boot=mybootimage
---------------------------------------------cut-----------------------
Copy the S99dnsmasq.sh startscript to /volume1/.@plugins/etc/init.d for autostart.
dnsmasq startscript from install dnsmasq :
S99dnsmasq.sh
------------------------------------cut--------------------------------
#!/bin/sh
if [ -f /var/run/dnsmasq.pid ] ; then
kill `cat /var/run/dnsmasq.pid`
fi
rm -f /var/run/dnsmasq.pid
sleep 2
/opt/sbin/dnsmasq
------------------------------------cut--------------------------------
That works, because i use dnsmasq as proxy for my PXE server.
-
srbcrespo
- Posts: 7
- Joined: Mon Jun 08, 2015 4:53 am
Re: DHCP and DNS server
Great stuff.
I was about to use a centos VM inside VirtualBox, but this is much cleaner. I already had a dnsmasq.conf from my previous install.
This solves it for me.
Thanks for the tip.
I was about to use a centos VM inside VirtualBox, but this is much cleaner. I already had a dnsmasq.conf from my previous install.
This solves it for me.
Thanks for the tip.
-
lanimul
- Posts: 126
- Joined: Fri Aug 08, 2014 3:42 am
Re: DHCP and DNS server
Would this allow a device to connect to say LAN2, and share the NAS internet?
-
srbcrespo
- Posts: 7
- Joined: Mon Jun 08, 2015 4:53 am
Re: DHCP and DNS server
You would need to turn this NAS into a router, possible with iptables (don't ask me how since I don't know it by heart) a mix of and iptables script (check arnos firewall scrip) would possibly do the trick , but unsure why would you want that.Dogstar wrote:Hi,
I'd like to have a DHCP and DNS server for my local network on my NAS. Do you think that's possible in the future?
Best Regards
Dogstar
On this thread we've been discussing using the NAS as a DNS and DHCP server via dnsmasq. I'm pretty new here, just had this asustor last week