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.

242 questions
162
votes
6 answers

How do I configure my DNS settings in Ubuntu server?

According to this page it appears to be simple. However, /etc/bind does not exist on the default installation of Ubuntu 12.04.3 LTS server. So, without installing any further software, how can configure DNS and remove dnsmasq on ubuntu server? I am…
Asta-Risky
  • 1,635
64
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
  • 641
54
votes
4 answers

How to disable systemd-resolved and resolve DNS with dnsmasq?

Ubuntu 16.10+ uses systemd-resolved as DNS resolver. I prefer the setup 16.04 uses, dnsmasq as the resolver. How can I do that on 16.10+, especially on 17.04?
Artyom
  • 1,803
46
votes
7 answers

How can I tell which DNS servers DNSMasq is using?

How can I tell which DNS servers DNSMasq is using to resolve a name to an IP address? I can't figure it out. All of the existing questions here seem to just go as far as telling users that they are using DNSMasq.
Jeff
  • 911
43
votes
4 answers

How do I restart dnsmasq?

I can't figure out how to restart dnsmasq. service dnsmasq restart dnsmasq: unrecognized service SOLUTION Restart the network manager (his parent) sudo service network-manager restart
Rucent88
  • 2,058
30
votes
4 answers

Route complete TLD (*.dev for example) to 127.0.0.1

For development purposes I want all DNS requests to the .dev TLD to forward to my own PC. The hosts file does not suffice. I use multiple domains and also multiple subdomains. I would have to add a line for each combination. I have read that a DNS…
29
votes
3 answers

How can I disable the DNS that Network Manager uses?

Ubuntu uses a DNSMasq instance for Network Manager starting in 12.04 - how can I disable it?
jrg
  • 61,707
27
votes
5 answers

How can I set up local wildcard (127.0.0.1) domain resolution on 18.04..20.04?

On Ubuntu 14.04 I'm using dnsmasq to resolve wildcard example.com domains to the local machine (desktop computer at home). After much reading around I cannot for the life of me sort out the same on a clean install of 18.04. All I want to achieve at…
Nick Rice
  • 331
25
votes
3 answers

DNS not working after upgrade 17.04 to 17.10

I've just upgraded my laptop from Xubuntu 17.04 to 17.10. After the final reboot, DNS has stopped working. This is obviously a problem! I can ping known IP addresses; just no DNS resolution. I've not fiddled with any DNS settings; as far as I know,…
23
votes
4 answers

What is my DNS server?

My /etc/resolv.conf looks like this: # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 # OpenDNS Fallback (configured by Linux…
Martin Thoma
  • 20,535
23
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
  • 748
18
votes
3 answers

ubuntu server not resolving LAN hostnames

Bit stuck here. I have 2 machines that cannot resolve LAN hostsnames, unless there are specific entries in /etc/hosts But other machines on the LAN can resolves hostnames. My LAN: 1 x Cisco router runnning DD-WRT v24-sp2 with DNSMasq enabled.…
teracow
  • 283
17
votes
5 answers

How to Add dnsmasq and keep systemd-resolved (18.04 to 20.04)

I want to get fast dns resolution with dnsmasq and keep the default systemd-resolved. Looking for an elegant way to do this
cmak.fr
  • 8,976
13
votes
3 answers

systemd-journal + systemd-resolve + dnsmasq high cpu usage

on Ubuntu 16.10, for some minute after wifi connection, systemd-journal, systemd-resolve and dnsmasq tend to use almost 150% of CPU. Is this normal?
12
votes
6 answers

How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address

I know, that I can assign static IP manually, using /etc/network/interfaces. I also know, that I can read the MAC address of the LXC container (e.g. by looking for lxc.network.hwaddr entry in /var/lib/lxc//config and assign the IP…
1
2 3
16 17