Discussion:
[Dnsmasq-discuss] How to debug .TV and other tld
Rob Townley
2016-04-10 18:41:11 UTC
Permalink
My dns entries are acting like Top Level Domains. For instance, i have
host named TV:
nslookup tv
10.10.10.88 (GOOD. EXPECTED)
nslookup www.kodi.tv
10.10.10.88 (BAD)
nslookup kodi.tv. (dot at end)
10.10.10.88
nslookup forum.kodi.tv
10.10.10.88 (WORSE)

nslookup bbc.tv
10.10.10.88 (The world has ended.)

nslookup anything.TabletPC3.
10.10.10.103 (returns internal hostname of TabletPC3 instead of NXDOMAIN)


Where should i look?
Rob Townley
2016-04-11 03:44:25 UTC
Permalink
#egrep -i 'tv|kodi|forum' /etc/dnsmasq.conf
dhcp-host=23:24:13:60:91:FB,TV,10.10.10.88,10080m
dhcp-host=59:6e:71:20:de:88,GoogleTV,10.10.10.145,86400m
address=/mythtv/mythtv.pasture.homeip.net./10.10.10.6
address=/TV/TV.farm.publicvm.com./10.10.10.88
address=/GoogleTV/10.10.10.145

# dnsmasq --test /etc/dnsmasq.conf
dnsmasq: syntax check OK.

# egrep -v '^#|dhcp-host|address|^$' /etc/dnsmasq.conf
domain-needed
bogus-priv
no-resolv
no-poll
server=208.67.222.222
server=208.67.220.220
no-dhcp-interface=wan0
expand-hosts
domain=somewhere.publicvm.com.
local-ttl=86400
log-queries
log-dhcp
conf-dir=/etc/dnsmasq.d
interface=lan1
no-dhcp-interface=wan1
domain=somewhere.publicvm.com.
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases
dhcp-lease-max=75
dhcp-option=lan,3,10.10.10.1
dhcp-authoritative
dhcp-range=lan,10.10.10.100,10.10.10.149,255.255.255.0,1440m
stop-dns-rebind
Post by Rob Townley
My dns entries are acting like Top Level Domains. For instance, i have
nslookup tv
10.10.10.88 (GOOD. EXPECTED)
nslookup www.kodi.tv
10.10.10.88 (BAD)
nslookup kodi.tv. (dot at end)
10.10.10.88
nslookup forum.kodi.tv
10.10.10.88 (WORSE)
nslookup bbc.tv
10.10.10.88 (The world has ended.)
nslookup anything.TabletPC3.
10.10.10.103 (returns internal hostname of TabletPC3 instead of NXDOMAIN)
Where should i look?
Rob Townley
2016-04-12 01:27:06 UTC
Permalink
duh ... address is doing exactly what it says it should do. i am running
dnsmasq 2.48-16 CentOS6 which does not have --host-record yet, and
carelessly figured --address was the answer.

*-A, --address=/<domain>/[domain/][<ipaddr>]*Specify an IP address to
return for any host in the given domains. Queries in the domains are never
forwarded and always replied to with the specified IP address

Have to figure out how to upgrade because i want that --ipset option.
Post by Rob Townley
#egrep -i 'tv|kodi|forum' /etc/dnsmasq.conf
dhcp-host=23:24:13:60:91:FB,TV,10.10.10.88,10080m
dhcp-host=59:6e:71:20:de:88,GoogleTV,10.10.10.145,86400m
address=/mythtv/mythtv.pasture.homeip.net./10.10.10.6
address=/TV/TV.farm.publicvm.com./10.10.10.88
address=/GoogleTV/10.10.10.145
# dnsmasq --test /etc/dnsmasq.conf
dnsmasq: syntax check OK.
# egrep -v '^#|dhcp-host|address|^$' /etc/dnsmasq.conf
domain-needed
bogus-priv
no-resolv
no-poll
server=208.67.222.222
server=208.67.220.220
no-dhcp-interface=wan0
expand-hosts
domain=somewhere.publicvm.com.
local-ttl=86400
log-queries
log-dhcp
conf-dir=/etc/dnsmasq.d
interface=lan1
no-dhcp-interface=wan1
domain=somewhere.publicvm.com.
dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases
dhcp-lease-max=75
dhcp-option=lan,3,10.10.10.1
dhcp-authoritative
dhcp-range=lan,10.10.10.100,10.10.10.149,255.255.255.0,1440m
stop-dns-rebind
Post by Rob Townley
My dns entries are acting like Top Level Domains. For instance, i have
nslookup tv
10.10.10.88 (GOOD. EXPECTED)
nslookup www.kodi.tv
10.10.10.88 (BAD)
nslookup kodi.tv. (dot at end)
10.10.10.88
nslookup forum.kodi.tv
10.10.10.88 (WORSE)
nslookup bbc.tv
10.10.10.88 (The world has ended.)
nslookup anything.TabletPC3.
10.10.10.103 (returns internal hostname of TabletPC3 instead of NXDOMAIN)
Where should i look?
Loading...