Skip to main content

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.

Filter by
Sorted by
Tagged with
158 votes
5 answers
1.0m views

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 ...
Asta-Risky's user avatar
  • 1,595
60 votes
8 answers
276k views

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 ...
Ram's user avatar
  • 601
50 votes
4 answers
109k views

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's user avatar
  • 1,743
46 votes
7 answers
29k views

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 ...
Jeff's user avatar
  • 911
43 votes
4 answers
158k views

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's user avatar
  • 1,978
31 votes
4 answers
14k views

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 ...
Roel van Duijnhoven's user avatar
29 votes
3 answers
65k views

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's user avatar
  • 60.9k
27 votes
5 answers
23k views

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 ...
Nick Rice's user avatar
  • 331
25 votes
3 answers
47k views

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 ...
Conor O'Neill's user avatar
23 votes
4 answers
53k views

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 ...
Martin Thoma's user avatar
  • 19.5k
22 votes
4 answers
57k views

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 ...
bakytn's user avatar
  • 738
18 votes
3 answers
75k views

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 ...
teracow's user avatar
  • 283
14 votes
5 answers
27k views

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's user avatar
  • 8,806
13 votes
3 answers
5k views

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?
leonard vertighel's user avatar
12 votes
6 answers
30k views

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/...
Adam Ryczkowski's user avatar
12 votes
1 answer
10k views

Is dnsmasq not loading because of a Network Manager conflict?

I'm on 12.10, and have always used dnsmasq. A few days ago I noticed strange messages during boot: NetworkManager[1316]: <warn> DNS: plugin dnsmasq update failed dnsmasq[1302]: failed to create ...
jasmines's user avatar
  • 11.1k
11 votes
1 answer
6k views

Chrome and Firefox can not resolve the same host name, dig can

Ubuntu 14.04. I am on a local domain, xxx.local. From the terminal I can use dig and host to lookup many names served from our local dns servers like zzz.yyy.xxx.local. When I type that same host ...
Dev Null's user avatar
  • 599
11 votes
4 answers
38k views

18.04: Bionic Beaver: enforce static /etc/resolv.conf

Previously, on Ubuntu 16.04, I felt betrayed when an Ubuntu update installed dnsmasq package, configured it, and gave it precedence over my own super-stable, ultra-fast, and own-configured BIND DNS ...
M  K's user avatar
  • 2,405
10 votes
1 answer
9k views

Configuring the dnsmasq instance started by connection sharing in NetworkManager

I've got a laptop running Ubuntu 12.04 that is sharing its wifi connection to another machine through the eth0 interface using NetworkManager. This seems to be done by dnsmasq. Now I need to set up ...
blaabjerg's user avatar
  • 133
10 votes
2 answers
22k views

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

I'm trying to configure dnsmasq to work along with NetworkManager, the problem is when I try to run the service it fails with: dnsmasq: failed to create listening socket for port 53: Address already ...
Ravexina's user avatar
  • 55.9k
9 votes
2 answers
13k views

Why do none of my local servers resolve?

When I try to ping or browse using a web browser certain domains names that we host on our local network, it does not work. Yet, dig and nslookup correctly return their details. What do I need to do ...
nelaaro's user avatar
  • 10.1k
9 votes
3 answers
5k views

DNS sometimes works, but it is very slow.

I am having DNS problems since upgrading to Ubuntu 12.04 (Precise Pangolin) from Ubuntu 10.04 (Lucid Lynx) yesterday. DNS sometimes works, but it is very slow. I have read the blog post DNS in ...
Jazzist's user avatar
  • 91
8 votes
6 answers
11k views

How do I enable DNS caching in the NetworkManager-controlled dnsmasq?

Ubuntu Desktop 12.04 uses dnsmasq to perform DNS lookups, but it is not configured to cache these results. (I have checked this by using dig to resolve names and I do not see a large improvement in ...
user avatar
8 votes
3 answers
35k views

Why did I have to remove resolvconf to get dnsmasq to work again?

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) ...
lightxx's user avatar
  • 211
8 votes
2 answers
3k views

Dnsmasq has changed the way it works in 12.10 - can someone point me to documentation or info on the changes

The way dnsmasq works with 12.10 has changed again, from 12.04. I have searched the Ubuntu documentation and Google for further info , without success. Basically in 12.04 you could see the list of ...
Nick's user avatar
  • 101
7 votes
1 answer
9k views

dnsmasq sometimes resolves things, sometimes it doesn't

Trying to resolve: nslookup testserverinlocaldns Server: 127.0.0.1 Address: 127.0.0.1#53 ** server can't find testserverinlocaldns: NXDOMAIN After 10 seconds everything is ok:...
kay's user avatar
  • 71
7 votes
1 answer
9k views

How can I redirect *.localhost to 127.0.0.1 in Ubuntu 14.04?

I used to be able to make foo.localhost, bar.localhost, etc. resolve to 127.0.0.1 by adding address=/localhost/127.0.0.1 to /etc/dnsmasq.conf But dnsmasq.conf doesn't exist in Ubuntu 14.04, and ...
Alex Henrie's user avatar
6 votes
3 answers
4k views

Which upstream nameservers do dnsmasq/NetworkManager use really?

I'm trying to do some troubleshooting and installing dnscrypt(-proxy) on my Laptop. I want to find out which DNS servers effectively are used by my standard Ubuntu installation (w/ NetworkManager and ...
Florian Heinle's user avatar
6 votes
4 answers
7k views

dnsmasq giving out IPs in the static range

I have the following in my dnsmasq.conf: dhcp-range=set:red,10.1.1.2,10.1.1.69,72h,static dhcp-range=set:blue,10.1.1.70,10.1.1.100,72h,static dhcp-range=set:white,10.1.1.101,10.1.1.200,12h dhcp-range=...
sinister.groupon's user avatar
6 votes
2 answers
4k views

Why do my DNS settings keep having to be reset?

I have a laptop that I use on my home LAN, my work LAN and my work VPN via my home LAN through OpenConnect. In addition, I also sometimes use TorGuard, which is a OpenVPN connection. All of these are ...
pugs_are_death's user avatar
6 votes
1 answer
7k views

Internet connection sharing without Network Manager

I followed these instructions for setting up a shared internet connection with iptables. Specifically, I: Added a network interface for my second NIC in /etc/network/interfaces like so: auto eth1 ...
Big McLargeHuge's user avatar
6 votes
1 answer
5k views

cat: /var/lib/misc/dnsmasq.leases: No such file or directory

I've searched all over the internet, but couldn't find any answers of my problem.. I want to connect my Raspberry Pi to my laptop. But whenever i try to check the ip address of my raspberry, i get ...
lup0's user avatar
  • 61
6 votes
1 answer
4k views

Do I need dnsmasq?

When I nmap localhost get this: 53/tcp open domain dnsmasq 2.59 What is it and do I really need it? I tried to remove it with sudo apt-get remove dnsmasq-base but it said if I would continue it will ...
user113527's user avatar
5 votes
4 answers
11k views

How to prevent Juniper Network Connect breaking DNS resolutions

Juniper Network Connect has been an issue on 64bit Linux for quite sometime. I have found 2 solutions to the Java issue (Could anyone provide a step by step for getting juniper netconnect and citrix? ...
psypher246's user avatar
5 votes
1 answer
44k views

Something is listening on port 53

I want to set up bind9, but something is listening on port 53. It's local address is ubuntu.ubuntu-do:domain. How to disable it, so it wouldn't listen anymore? I think it is dnsmasq, but still I don't ...
fufs's user avatar
  • 51
5 votes
2 answers
5k views

How do I change the order in which systemd services are started up

Ubuntu 18.04 server on my home network I'm running: dnsmasq for DHCP and DNS nginx as a reverse proxy to some web applications (running on localhost and on other hosts) The nginx reverse proxy ...
J. le Roux's user avatar
5 votes
1 answer
7k views

Hotspot with dnsmasq to resolve local hosts

I have a Hotspot configured to share my wired Internet connection with other devices, the hotspot is started using nmcli con up Hotspot ifname virtual. The hostspot is up and use the IP 10.42.0.1 ...
rafrsr's user avatar
  • 1,306
5 votes
1 answer
4k views

DNSMASQ - Why is this running?

So, I was poking around htop, and looked at what processes were running. For some reason, a process called dnsmasq is running. The full command is /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --...
James Bond's user avatar
5 votes
4 answers
4k views

Global DNS change

How do I change my DNS server globally without having to do it manually through network manager for every connection I have. I want to use OpenDNS, whether its at home, university, wifi hotspot, ...
Abdul Hamdy's user avatar
4 votes
2 answers
2k views

dnsmasq is not logging dns queries

Here's how I am debugging this issue from the command line: $ dnsmasq --no-daemon --log-queries Putting the log-queries option in the config file and running it as a daemon still showed nothing on ...
Saad Ahmed's user avatar
4 votes
1 answer
18k views

How to set the upstream servers of dnsmasq on ubuntu 15.10?

I want to set the upstream servers of dnsmasq on ubuntu 15.10. I've read a lot of documentations or resources about dnsmasq, in which they referred to a configuration file called /etc/dnsmasq.conf, ...
Searene's user avatar
  • 4,410
4 votes
1 answer
15k views

Clear dnsmasq cache without restarting the service

I have cache enabled in my dnsmasq, because it is fast. In some situations (for example, with VPN off), dnsmasq caches wrong results. I want a quick way to clean the cache (when I connect to the VPN ...
blueFast's user avatar
  • 848
4 votes
1 answer
4k views

dnsmasq not starting on 16.04

I just upgraded an RPi configured as a wireless router to from 15.10 to 16.04. dnsmasq is failing during startup with an unknown interface br0. Before the upgrade, the log showed a wait for auto ...
Jim Starkey's user avatar
4 votes
4 answers
6k views

Unable to access the Internet at Starbucks - used to work with Ubuntu 16.04

For close to 6 months I haven't been able to have access to the Internet with the Starbucks wifi. Ubuntu sees the Wifi and is able to establish a connection. But then when I click access/accept... it ...
jnbdz's user avatar
  • 428
4 votes
2 answers
14k views

How to change dnsmasq port?

I am using port 53 for my vpn, and I need to use port 53. I changed the port of dnsmasq, connected openVPN, and now request are unable to resolve errors. sudo dnsmasq -p 5642 . Is there a way to ...
Jürgen Paul's user avatar
  • 2,107
4 votes
1 answer
9k views

How do I disable local DNS caching?

I have a small private LAN with 6 Ubuntu systems. To improve performance and simplify maintenance I implemented a DNS server on my Debian firewall/router (dig shows 0ms on repeat lookups). Will I ...
keepitsimpleengineer's user avatar
4 votes
1 answer
10k views

Configure reverse DNS using Dnsmasq

So I have my DNS by dnsmasq up and running. I can resolve my internal domain name but I cannot resolve the IP to my domain. What I mean to say is I can use dig rameez-ubuntu and it works fine but ...
Rameez Raza Riaz's user avatar
4 votes
1 answer
1k views

Using Juju with private Openstack cloud deployment?

I'm seeing a number of problems trying to use Juju with our internally deployed Openstack cloud. Most of this appears to be centered around DNS host resolution as well as the need to deal with our ...
skibum's user avatar
  • 101
4 votes
0 answers
4k views

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

I'm trying to set up dnsmasq on AWS Ubuntu 20.4 by following this link. However, I can't seem to get around the error dnsmasq: failed to create listening socket for port 53: Address already in use I'...
L23P's user avatar
  • 163
4 votes
0 answers
1k views

How can I prevent DNS leakage when using a VPN in Ubuntu 18.04?

I recently installed Ubuntu 18.04. I want to ensure that my DNS requests use my VPN DNS rather than my ISP DNS. In 16.04, preventing DNS leakage was easy: just disable the dnsmasq entry in /etc/...
user203748's user avatar

1
2 3 4 5