Discussion:
[Dnsmasq-discuss] Curious with default upstream server and /etc/resolv.conf
Igor Kapushkin
2018-09-16 03:19:59 UTC
Permalink
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-***@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Geert Stappers
2018-09-16 06:51:44 UTC
Permalink
Hi,
I'm playing with new DNSMasq instalation in a raspberry pi and one thing I
notice is that by default the DNSMasq service will forward everything to my
<<<
Sep 14 07:41:53 dnsmasq[32]: query[A] google.com from 192.168.1.10
Sep 14 07:41:53 dnsmasq[32]: forwarded google.com to 192.168.1.2
192.168.1.10 is my raspberry pi (DNSMasq). 192.168.1.2 is my router. I ran that
I didnt change anything in the original config files. My question is why is
DNSMasq forwarding the queries to the router by default? This is just because
I'm curious, theres nothing broke with my DNSMasq.
In the dnsmasq.conf file, I see that DNSMasq gets its upstream server from /
<<<
# Generated by resolvconf
nameserver 127.0.0.1
So I'm curious why DNSMasq is not sending those requests to 127.0.0.1 if that's
what configured in /etc/resolv.conf. Why is log saying "forwarded google.com to
192.168.1.2" instead of "forwarded google.com to 127.0.0.1"?
The thing Original Poster probably missed: '# Generated by resolvconf'

And the '# Generated by resolvconf' should be read as
# at some point in time written by resolvconf"
Thanks
Sorry the brief reply



Groeten
Geert Stappers
--
Leven en laten leven
Loading...