Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3950  / 3 Years ago, wed, september 22, 2021, 12:03:17

I discovered an instance of dnsmasq running on my fresh install of xubuntu desktop. The general purpose of dnsmasq is known to be a DNS relay and DHCP server. The running process is reported as follows:




/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec




Looks like it is spawned by network-manager. Contents of mentioned files are:




#cat /var/run/nm-dns-dnsmasq.conf

server=192.168.2.1




In my local network 192.168.2.1 indeed is a DNS server.
I cannot understand why this instance of dnsmasq listens on 127.0.0.1 since I see no way to serve DNS relay and DHCP server on 127.0.0.1 interface.


More From » networking

 Answers
0

127.0.0.1 is the loopback address, it is not accessible by other machines, just the machine itself. According to the post http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/, this dnsmasq instance exists to improve performance by trying multiple DNS servers if one is too slow.


[#38549] Thursday, September 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inaterested

Total Points: 500
Total Questions: 104
Total Answers: 92

Location: Virgin Islands (U.S.)
Member since Fri, May 7, 2021
3 Years ago
inaterested questions
Fri, Aug 12, 22, 21:24, 2 Years ago
Wed, Apr 27, 22, 17:14, 2 Years ago
Tue, Oct 26, 21, 20:41, 3 Years ago
;