[Dnsmasq-discuss] About 127.0.0.1 in resolv.conf [WAS: Web hang ups after repeated access to one site - dnsmasq related?]

Hugo Heden hugoheden at gmail.com
Tue Feb 17 20:43:23 GMT 2009


Good day all,

On Fri, Feb 13, 2009 at 3:55 PM, Chris G <cl at isbd.net> wrote:
[snip]
>
> My /etc/dnsmasq.conf file has only the following lines (apart from
> comments):-
>
>    domain-needed
>    bogus-priv
>
>    expand-hosts
>    domain=isbd.net
>    dhcp-range=192.168.1.80,192.168.1.150,1h
>
>    dhcp-option=3,192.168.1.1
>
>
> /etc/resolv.conf is:-
>
>    nameserver 127.0.0.1
>    nameserver 195.74.113.58
>    nameserver 195.74.113.62
>
>
> That's about it, pretty standard dnsmaq installation.
>

How is this supposed to work? Does not dnsmasq (by default) use the
nameserver-entries in /etc/resolv.conf as "upstream" nameservers, to
forward ("non-local") dns-queries to? But what happens if dnsmasq then
forwards a ("non-local") dns-query to 127.0.0.1, i.e to itself? Could
that not result in some kind of infinite loop weirdness?

Best regards

Hugo Heden



More information about the Dnsmasq-discuss mailing list