Hello,

I have been running ISC bind and dhcp on my network for many years and would like to get those services running on my Asus router running Merlin firmware using dnsmasq.

At the moment, I am trying to test the config file on a Linux host on the same subnet. Once it is working, I will move it over to the router.

DNS seems to be working fine, but I am not getting any responses from DHCP at all, either for static or dynamic hosts.

Below is my config. It is my attempt to convert my isc dhcpd.conf to dnsmasq. Hopefully I have missed something simple.

Also, am I on the right track for netbooting? I want to hand out ipxe by default for a couple of hosts and then point them to a URL once running ipxe


pid-file=/var/run/dnsmasq.pid
user=nobody
no-poll
min-port=4096
bind-dynamic
#interface=br0
#interface=ppp1*
interface=p2p1
no-negcache
cache-size=1500

domain-needed
bogus-priv

domain=mydomain.net
expand-hosts
local=/mydomain.net/

server=8.8.8.8
server=8.8.4.4

cname=mail.mydomain.net,ghs.google.com
cname=calendar.mydomain.net,ghs.google.com

dhcp-authoritative

dhcp-option=1,255.255.255.0
dhcp-option=3,192.168.101.1
dhcp-option=6,192.168.101.1
dhcp-option=7,192.168.101.2
dhcp-option=15,"mydomain.net"
dhcp-option=42,192.168.101.2
dhcp-option=66,192.168.101.2

# Range of addresses for DHCP
dhcp-range=dynamic,192.168.101.2,192.168.101.30,4h
dhcp-range=static,192.168.101.100,192.168.101.150,48h

# Define hosts
dhcp-host=48:02:2a:46:be:a4,babycam,static
dhcp-host=00:e0:91:94:d0:e7,directv-0,static
dhcp-host=00:e0:91:8b:3f:5d,directv-1,static
dhcp-host=08:00:27:31:db:f9,fedoratest,static
dhcp-host=00:21:b9:01:f3:6b,ha,static
dhcp-host=00:18:dd:03:ca:94,hdhr,static
dhcp-host=00:80:a3:8c:77:c6,kvm,static
dhcp-host=00:18:de:2c:77:36,laptop,static
dhcp-host=00:20:6b:72:8d:ee,minolta,static
dhcp-host=00:b5:6d:00:fd:f8,mobl1,static
dhcp-host=84:3a:4b:0a:d8:e4,mobl1-wireless,static
dhcp-host=18:b4:30:06:15:ab,nest-downstairs,static
dhcp-host=18:b4:30:0a:9c:84,nest-upstairs,static
dhcp-host=00:a0:de:a5:57:93,yamaha-liv,static

dhcp-match=set:ipxe,175 # iPXE sends a 175 option

# Special boot hosts
dhcp-host=bc:ee:7b:25:3b:15,mythbed,set:mythbed,static
dhcp-boot=tag:!ipxe,tag=mythliv,ipxe.pxe
dhcp-boot=tag:ipxe,tag:mythliv,http://minimyth2/conf/mythliv/mythliv.ipxe

dhcp-host=38:60:77:9c:6b:1d,mythliv,set:mythliv,static
dhcp-boot=tag:!ipxe,tag=mythbed,ipxe.pxe
dhcp-boot=tag:ipxe,tag:mythbed,http://minimyth2/conf/mythbed/mythbed.ipxe

dhcp-host=08:00:27:B0:D7:3D,fedoratest2,set:fedoratest2,static
dhcp-boot=tag:!ipxe,tag=fedoratest2,ipxe.pxe
dhcp-boot=tag:ipxe,tag:fedoratest2,""
dhcp-option=tag:ipxe,tag:fedoratest2,option:root-path,"iscsi:myhost:::1:iqn.2012-09.net.mydomain:fedoratest2"


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to