Discussion:
[Dnsmasq-discuss] Stop local search queries...
Brad
2016-01-15 11:24:03 UTC
Permalink
I am setting up dnsmasq at home to monitor some things and have everything
working, but all my queries are initially appended with .home. All queries
are initially *.home, then forwarded to Google for final resolution.

Here is the query.log

Jan 15 06:18:21 dnsmasq[15124]: query[PTR] 29.1.168.192.in-addr.arpa from
192.168.1.21
Jan 15 06:18:21 dnsmasq[15124]: query[A] www.google.com.home from
192.168.1.21
Jan 15 06:18:21 dnsmasq[15124]: forwarded www.google.com.home to 8.8.8.8
Jan 15 06:18:21 dnsmasq[15124]: forwarded www.google.com.home to 8.8.4.4
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com.home is NXDOMAIN-IPv4
Jan 15 06:18:21 dnsmasq[15124]: query[AAAA] www.google.com.home from
192.168.1.21
Jan 15 06:18:21 dnsmasq[15124]: forwarded www.google.com.home to 8.8.8.8
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com.home is NXDOMAIN-IPv6
Jan 15 06:18:21 dnsmasq[15124]: query[A] www.google.com from 192.168.1.21
Jan 15 06:18:21 dnsmasq[15124]: forwarded www.google.com to 8.8.8.8
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.26
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.21
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.25
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.22
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.24
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.23
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.27
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is 63.88.73.20
Jan 15 06:18:21 dnsmasq[15124]: query[AAAA] www.google.com from 192.168.1.21
Jan 15 06:18:21 dnsmasq[15124]: forwarded www.google.com to 8.8.8.8
Jan 15 06:18:21 dnsmasq[15124]: reply www.google.com is
2607:f8b0:4004:80d::2004

Jan 15 06:18:27 dnsmasq[15124]: query[PTR] 29.1.168.192.in-addr.arpa from
192.168.1.21
Jan 15 06:18:27 dnsmasq[15124]: query[A] www.cnn.com.home from 192.168.1.21
Jan 15 06:18:27 dnsmasq[15124]: forwarded www.cnn.com.home to 8.8.8.8
Jan 15 06:18:27 dnsmasq[15124]: reply www.cnn.com.home is NXDOMAIN-IPv4
Jan 15 06:18:27 dnsmasq[15124]: query[AAAA] www.cnn.com.home from
192.168.1.21
Jan 15 06:18:27 dnsmasq[15124]: forwarded www.cnn.com.home to 8.8.8.8
Jan 15 06:18:27 dnsmasq[15124]: reply www.cnn.com.home is NXDOMAIN-IPv6
Jan 15 06:18:27 dnsmasq[15124]: query[A] www.cnn.com from 192.168.1.21
Jan 15 06:18:27 dnsmasq[15124]: forwarded www.cnn.com to 8.8.8.8
Jan 15 06:18:27 dnsmasq[15124]: reply turner.map.fastly.net is 23.235.39.73
Jan 15 06:18:27 dnsmasq[15124]: query[AAAA] www.cnn.com from 192.168.1.21
Jan 15 06:18:27 dnsmasq[15124]: cached www.cnn.com is <CNAME>
Jan 15 06:18:27 dnsmasq[15124]: forwarded www.cnn.com to 8.8.8.8
Jan 15 06:18:27 dnsmasq[15124]: reply turner.map.fastly.net is NODATA-IPv6

And here is my entire dnsmasq.conf file:

domain-needed
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=eth0
listen-address=127.0.0.1
cache-size=10000
log-queries
log-facility=/var/log/dns/query.log
local-ttl=300
log-async

Obviously I am trying to keep things VERY simple. Any and all help is much
appreciated!!!

Thanks...

Brad
Albert ARIBAUD
2016-01-15 12:00:17 UTC
Permalink
Hi BradBonjour,

Le Fri, 15 Jan 2016 06:24:03 -0500
Post by Brad
I am setting up dnsmasq at home to monitor some things and have
everything working, but all my queries are initially appended
with .home. All queries are initially *.home, then forwarded to
Google for final resolution.
[...]
Obviously I am trying to keep things VERY simple. Any and all help is
much appreciated!!!
Have you looked at the configuration of the querying client, especially
its /etc/resolv.conf file?
Post by Brad
Thanks...
Brad
Amicalement,
--
Albert.
Lukas Tribus
2016-01-15 12:49:16 UTC
Permalink
Post by Brad
I am setting up dnsmasq at home to monitor some things and have
everything working, but all my queries are initially appended with
.home. All queries are initially *.home, then forwarded to Google for
final resolution.
This should suffice:
domain=home
server=/home/


Lukas
Arseniy Skvortsov
2016-01-15 12:49:26 UTC
Permalink
I believe you need something like
server=/home/192.168.1.1#53
local=/home/
in your configuration in order to stop dnsmasq from forward *.home addresses.
BTW, it's not dnsmasq which creates these queries, it is system resolv lib.
Loading...