[Dnsmasq-discuss] dnsmasq on multiple subnet help

Stuart Colk stuartcolk at hotmail.co.uk
Sat Aug 20 09:27:54 BST 2016


Hey all

I have a multiple subnet setup which i am trying to get dnsmasq to control.  It works fine when activated on a single subnet, but as soon as i try to expand this i get some very odd errors.  Any pointers to a solultion would be greatly appreciated..   conf file below

# Configuration file for dnsmasq
#

dhcp-authoritative
domain-needed
bogus-priv
no-poll
no-resolv
expand-hosts
localise-queries

dns-forward-max=500

# Set a different domain for a particular subnet
domain=live.tv,192.168.0.0/24
domain=render.live.tv,192.168.20.0/24

# DHCP server config
dhcp-range=192.168.0.20,192.168.0.240,24h
dhcp-range=192.168.20.231,192.168.20.250,24h
#dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases

# temporary disable eth0 requests
except-interface=eth0
no-dhcp-interface=eth0

# DNS server settings
local=/ldn.unit.tv/
server=8.8.8.8
server=8.8.4.4

# Gateway option
dhcp-option=3,192.168.0.254

# NTP time server setup
dhcp-option=42,0.0.0.0

so i have the render network running fine and dandy, but as soon as i try and add in any other network i get complaints that there are no leases available as per below. 

Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 tags: eth0
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 bootfile name: pxelinux.0
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 next server: 192.168.0.1
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  1 option: 53:message-type  02
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option: 54:server-identifier  192.168.0.1
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option: 51:lease-time  00:01:51:80
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option: 58:T1  00:00:a8:c0
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option: 59:T2  00:01:27:50
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option:  1:netmask  255.255.255.0
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option: 28:broadcast  192.168.0.255
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option:  6:dns-server  192.168.0.1
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size: 11 option: 15:domain-name  live.tv
Aug 20 09:19:45 dnsmasq-dhcp[25234]: 195339282 sent size:  4 option:  3:router  192.168.0.254
Aug 20 09:19:46 dnsmasq-dhcp[25234]: 195339282 Available DHCP range: 192.168.0.20 -- 192.168.0.240
Aug 20 09:19:46 dnsmasq-dhcp[25234]: 195339282 client provides name: 402assist
Aug 20 09:19:46 dnsmasq-dhcp[25234]: 195339282 DHCPREQUEST(eth0) 192.168.0.137 00:1b:63:a1:64:09
Aug 20 09:19:46 dnsmasq-dhcp[25234]: 195339282 DHCPNAK(eth0) 192.168.0.137 00:1b:63:a1:64:09 no leases left
Aug 20 09:19:46 dnsmasq-dhcp[25234]: 195339282 tags: eth0

eth0 on server is configured as below

DEVICE=eth0
HWADDR=32:7D:35:76:61:AF
BOOTPROTO=none
IPADDR=192.168.0.1
NETMASK=255.255.255.0
TYPE=Ethernet
UUID=169cac51-ea7f-490e-a0f2-d9fe0c2891a9
ONBOOT=yes
NM_CONTROLLED=no
GATEWAY=192.168.0.254
USERCTL=no
PEERDNS=yes
IPV6INIT=no


Please can someone point out the simple thing (hopefully) i have missed here?

Thanks

stu

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20160820/a75ce41f/attachment.html>


More information about the Dnsmasq-discuss mailing list