I’ve configured dnsmasq on router..it appears to be working but just have a couple questions. dnsmasq.conf has..
domain=private
expand-hosts
lan=/private/
resolv.conf has...
nameserver 127.0.0.1
hosts file has ...
192.168.1.5 m1
All clients are pointing to dnsmasq router for dns...
If I do nslookup 192.168.1.5 it returns 192.168.1.5 m1.private .. that is right
If I do nslookup m1.private it returns m1.private 192.168.1.5.. that is right
however, if I do nslookup m1 it returns
m1 192.168.1.5 ... why does it NOT return m1.private? Meaning, why is the ‘private’ domain not appended? Is this normal output if I just nslookup just the hostname?
To fix this I have to add the domain in the search field for each of the various clients. Is there a way to have this done globally...
domain=private
expand-hosts
lan=/private/
resolv.conf has...
nameserver 127.0.0.1
hosts file has ...
192.168.1.5 m1
All clients are pointing to dnsmasq router for dns...
If I do nslookup 192.168.1.5 it returns 192.168.1.5 m1.private .. that is right
If I do nslookup m1.private it returns m1.private 192.168.1.5.. that is right
however, if I do nslookup m1 it returns
m1 192.168.1.5 ... why does it NOT return m1.private? Meaning, why is the ‘private’ domain not appended? Is this normal output if I just nslookup just the hostname?
To fix this I have to add the domain in the search field for each of the various clients. Is there a way to have this done globally...