Yes, that was a cut and paste error. I have simplified the file to make
things easier to debug.
Here is what it looks like now, I will paste the whole file here
port=53
bogus-priv
no-resolv
local=/localnet/
user=dnsmasq
group=dnsmasq
interface=enp5s0
listen-address=127.0.0.1,192.168.13.1
expand-hosts
domain=irlanet.org
dhcp-range=192.168.13.224,192.168.13.255,2h
dhcp-authoritative
cache-size=0
cname=win-sji,MOEDW1CKH5
log-queries
log-dhcp
dhcp-host=00:68:eb:3b:32:33,MOEDW1CKH5,set:red,192.168.13.192
dhcp-option=tag:red,option:dns-server,10.88.13.3
dhcp-option=tag:green,option:dns-server,10.88.13.4
dhcp-option=option:dns-server,10.88.13.4
server=10.88.13.4#53
Here is how dnsmasq is tested from MODEW1CKH5
[si@MOEDW1CKH5 593]>curl ident.me
97.90.236.142
Here is what shows up in the log files
Jul 29 17:26:16 xroads dnsmasq[2612016]: query[A] ident.me from
192.168.13.192
Jul 29 17:26:16 xroads dnsmasq[2612016]: forwarded ident.me to 10.88.13.4
Jul 29 17:26:16 xroads dnsmasq[2612016]: query[AAAA] ident.me from
192.168.13.192
Jul 29 17:26:16 xroads dnsmasq[2612016]: forwarded ident.me to 10.88.13.4
Jul 29 17:26:16 xroads dnsmasq[2612016]: reply ident.me is 176.58.123.25
Jul 29 17:26:16 xroads dnsmasq[2612016]: reply ident.me is
2a01:7e00::f03c:91ff:fe70:2b9d
Does the order of the statements in the config files matter?
On 7/29/2020 2:42 PM, Daryl Richards wrote:
On 2020-07-29 2:40 p.m., S Irlapati wrote:
Thanks for the quick reply.
I have changed it to
dhcp-host=00:a1:b0:08:61:67,floater,tag:red,192.168.13.109
dhcp-host=00:c0:a8:be:ed:d0,Ziong,tag:green,192.168.13.110
dhcp-option=tag:red,option:dns-server,10.88.13.3
dhcp-option=tag:green,option:dns-server,10.88.13.4
server=10.88.13.4#53
It still does the same thing.
When querying from machine floater, it get forwarded it to 10.88.13.4
Any other suggestions? Could there be something else that is being
missed?
I'm not sure if this is a cut/paste error - but the line looks the
same as before with tag: instead of set:.. Also looking at the man
page it shows the options in a slighty different order (don't know if
that matters). So, it should be:
dhcp-host=00:a1:b0:08:61:67,set:red,192.168.13.109,floater
dhcp-host=00:c0:a8:be:ed:d0,set:green,192.168.13.110,Ziong
_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss