[Dnsmasq-discuss] dnsmasq-2.18: ignoring nameserver 127.0.0.1 - local interface
Fri, 26 Nov 2004 12:49:32 -0800
I am moving this discussion from private Email between me and Simon so
that google searches can find the answer for others with the same
g>> I cannot believe the answer to this is not in the FAQ or to be found
via google, but it isn't.
g>> From the man page:
g>> 'In order to configure dnsmasq to act as a cache for the host on
which it is running, put "nameserver 127.0.0.1" in /etc/resolv.conf to
force local processes to send queries to dnsmasq. Then  specify the
upstream servers directly to dnsmasq using --server options'
g>> No matter what I do in /etc/dnsmasq.conf, dnsmasq always says
"ignoring nameserver 127.0.0.1 - local interface".
SK> It looks like the problem is that you read the documemtatiom too
fast, and you've confused /etc/resolv.conf and /etc/dnsmasq.conf. Put
127.0.0.1 in /etc/resolv.conf to tell the machine to use itself as the
nameserver. Then put your ISP's nameservers in /etc/dnsmasq.conf so it
can forward to them.
I _THINK_ I understand the docs correctly <g>. Herewith all the facts I
believe are pertinent:
The linux box has 2 NICs. eth0 faces the LAN and eth1 faces the
internet. Its name is ns.chsoft.biz, from which you will correctly
assume that it is the name server. There is a block of 5 usable IPs and
this machine is on the last usable IP (.158). It runs axfrdns and
tinydns but *not* dnscache because I believe dnscache is abusive of the
root servers. I want dnsmasq to provide DNS for the entire LAN,
I hope it is safe to ignore the fact that this machine uses proxyARP so
that it listens to all 5 of the external IPs on eth1 and then forwards
to the correct machine via a complex routing table on eth0. If we have
to "go there", it really complicates this discussion. It should not be
relevant, but what do I know?!!
When I put localhost ("nameserver 127.0.0.1") into /etc/resolv.conf
(refer to the above resolv.conf) and start dnsmasq, dnsmasq reports this
"ignoring nameserver 127.0.0.1 - local interface"
Side note: a google search finds many instances of this error message.
I cannot figure out how to configure dnsmasq to act as a cache for the
host on which it is running. Frankly, this is not "a must" because this
Linux box runs only sshd, axfrdns and tinydns. Nevertheless, I want
this to work.