[Dnsmasq-discuss] Why is dnsmasq reading /var/run/dnsmasq/resolv.conf twice when it starts up?

Simon Kelley simon at thekelleys.org.uk
Thu Oct 3 16:42:59 BST 2013


On 03/10/13 16:29, Chris Green wrote:
> When I start dnsmasq I see the following in syslog:-
>
> Oct  3 16:09:03 revo dnsmasq[2819]: started, version 2.63rc6 cachesize 150
> Oct  3 16:09:03 revo dnsmasq[2819]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6>
> Oct  3 16:09:03 revo dnsmasq-dhcp[2819]: DHCP, IP range 192.168.1.80 -- 192.168.1.150, lease time 1h
> Oct  3 16:09:03 revo dnsmasq[2819]: using local addresses only for domain zbmc.eu
> Oct  3 16:09:03 revo dnsmasq[2819]: reading /var/run/dnsmasq/resolv.conf
> Oct  3 16:09:03 revo dnsmasq[2819]: ignoring nameserver 192.168.1.2 - local interface
> Oct  3 16:09:03 revo dnsmasq[2819]: using nameserver 194.72.0.114#53
> Oct  3 16:09:03 revo dnsmasq[2819]: using nameserver 212.159.6.10#53
> Oct  3 16:09:03 revo dnsmasq[2819]: ignoring nameserver 127.0.0.1 - local interface
> Oct  3 16:09:03 revo dnsmasq[2819]: using local addresses only for domain zbmc.eu
> Oct  3 16:09:03 revo dnsmasq[2819]: read /etc/hosts - 12 addresses
> Oct  3 16:09:03 revo dnsmasq-dhcp[2819]: not giving name revo.zbmc.eu to the DHCP lease of 192.168.>
> Oct  3 16:09:03 revo dnsmasq-dhcp[2819]: not giving name revo to the DHCP lease of 192.168.1.148 be>
> Oct  3 16:09:05 revo dnsmasq[2819]: reading /var/run/dnsmasq/resolv.conf
> Oct  3 16:09:05 revo dnsmasq[2819]: ignoring nameserver 192.168.1.2 - local interface
> Oct  3 16:09:05 revo dnsmasq[2819]: using nameserver 194.72.0.114#53
> Oct  3 16:09:05 revo dnsmasq[2819]: using nameserver 212.159.6.10#53
> Oct  3 16:09:05 revo dnsmasq[2819]: ignoring nameserver 127.0.0.1 - local interface
> Oct  3 16:09:05 revo dnsmasq[2819]: using local addresses only for domain zbmc.eu
>
> Why is it doing everything twice?
>
Probably because whatever populates /var/run/dnsmasq/resolv.conf alters 
the modification time just after it starts dnsmasq.

>
> While I'm about it, what creates/populates /var/run/dnsmasq/resolv.conf?

We need more context to have a hope of answering that.


Simon.

>




More information about the Dnsmasq-discuss mailing list