Questions tagged [dnsmasq]

DNSmasq is a lightweight DNS forwarder, DHCP and TFTP server, designed to provide DNS (and optionally DHCP and TFTP) services to a small-scale network.

It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP for network booting of diskless machines.

The developers of dnsmasq targeted home networks using NAT and connected to the internet via a modem, cable-modem or ADSL connection. But the system would function well in any small network where low resource-use and ease of configuration are important.

Supported platforms include Linux (with glibc or uClibc), BSD and Mac OS X.

236 questions
59
votes
8 answers

dnsmasq: failed to create listening socket for port 53: Address already in use

I was setting up a server as in the below link https://help.ubuntu.com/community/Dnsmasq root@user-desktop:/etc/init.d# sudo apt-get install dnsmasq Reading package lists... Done Building dependency tree Reading state information... Done The…
Ram
  • 591
22
votes
4 answers

Configure NetworkManager's dnsmasq to use /etc/hosts

I have installed DNSMASQ but it was not starting as 53 port was busy. I found out that ubuntu already had dnsmasq package and it's working. Now the problem is...I just want to be able to resolve my hosts in /etc/hosts through it i.e: nslookup…
bakytn
  • 738
2
votes
1 answer

dnsmasq less verbose?

Is it possible to make dnsmasq less verbose? I couldn't find any hints in the manual page / the internet. The only options I have found are already uncommented: # For debugging purposes, log each DNS query as it passes through #…
chris
  • 756
  • 1
  • 10
  • 20
2
votes
0 answers

dnsmasq configuration problem

Morning. Trying to setup dnsmasq on my little network, and having some trouble. Running dig cnn.com ; <<>> DiG 9.11.5-P4-5.1ubuntu2.1-Ubuntu <<>> cnn.com ;; global options: +cmd ;; connection timed out; no servers could be reached trying…
1
vote
1 answer

Slow program launching after editing nsswitch.conf

In a fit of rage of trying to resolve this, I removed the dnsmasq-base. After restart, I noticed program launch becomes very slow (> 5 seconds), even though I have SSD. It mainly affected firefox, but even apt-get in terminal took too long to prompt…
Saftever
  • 413
1
vote
1 answer

dnsmasq forwarding

I am trying to understand how dnsmasq's forwarding works. What I read from the manual is this: "[...]Dnsmasq accepts DNS queries and either answers them from a small, local, cache or forwards them to a real, recursive, DNS server.[...]" So…
1
vote
1 answer

nslookup keep using 127.0.0.1 specified in /etc/resolv.conf rather than using the name server specified in /etc/dnsmasq.conf

I want to use dnsmasq to specify some DNS name server for some domains (e.g. google) in /etc/dnsmasq.conf, server=/www.google.com/8.8.4.4. For the rest of the domains still use 127.0.0.1 which is defined in /etc/resolv.conf. But I found when I run…
1
vote
1 answer

how to set up dnsmasq wildcard to 127.0.0.1 on Ubuntu 19.10?

closely related to How can I set up local wildcard (127.0.0.1) domain resolution on 18.04? . here is what I have done, following the earlier 18.04 instructions on 19.10: Installed dnsmasq apt install dnsmasq edited NetworkManager.conf # head…
1
vote
0 answers

How to repair DNS resolution in Ubuntu 16.04

Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem) I know I should not be manually editing /etc/resolv.conf in 16.04 What package(s) can I…
flymike
  • 287
  • 4
  • 14
0
votes
3 answers

avoid DNSMASQ making changes in resolv.conf

not able to find a workaround for the dnsmasq to not make changes in /etc/resolv.conf file. editing the init.d/dnsmasq file is not a full option as not on all ubuntu version dnsmasq runs through init.d hope you can help !
0
votes
0 answers

Dnsmasq running in ubuntu virtual box guest

I am trying to install a DNSmasq server in an ubuntu virtualbox machine. I set it a static IP with a bridged network interface. The host has also another static IP. The DNSmasq config sends DNS servers to the clients when the IP is requested and…
Jab
  • 1
0
votes
0 answers

How to Install dnsmasq on Ubuntu?

I tried on ubuntu 16.04 and 20.04, however I cannot install dnsmasq. The error I get is: Package dnsmasq is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available…
tread
  • 325
  • 1
  • 5
  • 18
0
votes
0 answers

dnsmasq: failed to create listening socket for port 53: Permission denied

can anyone help me with this error message I get when I start dnsmasq? I have read another thread on askubtuntu.com but I couldn solve the problem. I want dnsmasq to block certain domains... Ihanks!
-2
votes
0 answers

How do I prevent dnsmasq from starting on Ubuntu 22.04

I have an ubuntu 22.04 system I'm running dnsdist on. It's easier to have dnsdist listen on 0.0.0.0, but it can't because dnsmasq it running. Here's the caveat, the dnsmasq apt package isn't actually installed, so I can't use systemctl to disable…
rory toma
  • 343