Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 34186  / 3 Years ago, sun, may 2, 2021, 8:29:55

Yesterday I upgraded to Precise and dnsmasq stopped working. That is, DNS queries to localhost where dnsmasq is listening (127.0.0.1) were refused.



Removing resolvconf (apt-get remove resolvconf) and rebooting solved the issue (found that suggestion somewhere on Google). /etc/resolv.conf looked fine with and without resolvconf in place. No difference at all.




  1. Why would I use resolvconf? Are there any benefits? The Wikipedia article covering resolvconf sucks.

  2. Why did resolvconf interfere with dnsmasq? Is this a known issue?


More From » resolv.conf

 Answers
7

The simple answer to (1) is: resolvconf sets itself up as the intermediary between programs that supply this information (such as ifup and ifdown, DHCP clients, the PPP daemon and local name servers) and programs that use this information (such as DNS caches and resolver libraries). As of Ubuntu 12.04 resolvconf is part of the default installation in both the server and desktop variants. It is never necessary to remove resolvconf and people who do remove it usually don't understand it, generally because they haven't read resolvconf(8) and /usr/share/doc/resolvconf/README.gz.



The answer to the second question is that resolvconf most probably did not interfere with dnsmasq. My guess is that you were running into bug #959037.



Explanation: In Ubuntu 12.04 there are two ways in which dnsmasq gets run. There is the traditional standalone version of dnsmasq which listens on all addresses. And there is the new NetworkManager-controlled dnsmasq process which listens only on 127.0.0.1. The latter conflicts with the former unless the former is reconfigured. This problem was solved in Ubuntu 12.10 by having the NM-controlled dnsmasq process listen on 127.0.1.1 instead of 127.0.0.1 and by forcing the standalone dnsmasq process to listen only on addresses assigned to interfaces.


[#38735] Tuesday, May 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arkcker

Total Points: 296
Total Questions: 111
Total Answers: 104

Location: Nepal
Member since Tue, Sep 8, 2020
4 Years ago
arkcker questions
Tue, Aug 17, 21, 00:08, 3 Years ago
Sun, May 14, 23, 01:04, 1 Year ago
Wed, Nov 16, 22, 03:12, 1 Year ago
Tue, Jun 1, 21, 01:29, 3 Years ago
;