Questions tagged [dnsmasq]

a lightweight server providing DHCP and DNS capabilities

265 questions
361
votes
18 answers

How do I set my DNS when resolv.conf is being overwritten?

Most of the info I see online says to edit /etc/resolv.conf, but any changes I make there just get overridden. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND…
Seán Hayes
  • 4,511
  • 4
  • 15
  • 11
126
votes
12 answers

How to avoid conflicts between dnsmasq and systemd-resolved?

I recently installed dnsmasq to act as DNS Server for my local network. dnsmasq listens on port 53 which is already in use by the local DNS stub listener from systemd-resolved. Just stopping systemd-resolved and then restart it after dnsmasq is…
vic
  • 2,012
  • 4
  • 14
  • 23
30
votes
6 answers

How to clear DNS cache on DD-WRT

How can I clear the DNS cache in DD-WRT on my router? DD-WRT uses the dnsmasq daemon.
Bobo
  • 403
  • 1
  • 4
  • 6
22
votes
2 answers

How to measure DNS cache efficiency / cached items?

I've configured dnsmasq as a caching-only DNS server on a Debian server, and it's working well (I'm seeing improved DNS response times via dig). However, I'd like to understand what dnsmasq is caching at any one time, so that I can start to think…
newtovaux
  • 353
  • 1
  • 2
  • 6
18
votes
1 answer

How to disable dnsmasq?

From time to time when I'm switching from eth0 to wlan0 (or vice versa) interface domain name resolving breaks and /etc/resolv.conf contains nameserver 127.0.1.1 I commented #dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf and restarted…
humkins
  • 1,137
  • 4
  • 14
  • 26
14
votes
4 answers

I can resolve a *.local domain, ping the IP, but I can't ping this domain

I am trying to get *.local domains to use the DNS server with vagrant-dns. In order for that to work I set up dnsmasq to run in front of it. NetworkManager is installed but is set to dns=none resolve.conf: nameserver 127.0.0.1 #this points to…
DAB
  • 465
  • 1
  • 3
  • 10
13
votes
1 answer

Is there anything wrong with using dnsmasq as a dhcp server instead of isc-dhcp-server?

So I've configured my home connections to work with dnsmasq since it bundles a dhcp server with it and is quite nice to set up. There is another package - isc-dhcp-... that also does this and perhaps is its intended purpose. What am I losing out on?
gontadu
  • 233
  • 1
  • 2
  • 6
12
votes
3 answers

Why dig reports the dns server as 127.0.0.1 when I'm using a external DNS?

I use unbound and usually use openDNS as my DNS server. When I run dig google.com say I get SERVER: 127.0.0.1#53(127.0.0.1). What exactly is this thing listening on port #53? is this unbound or is it something to do with dnsmasq (do I even have…
fpghost
  • 727
  • 2
  • 8
  • 21
12
votes
3 answers

How to assign multiple fixed ip address for one domain?

I'm running dnsmasq, address=/chat.freenode.net/130.239.18.172 address=/chat.freenode.net/140.211.167.105 But seems dnsmasq only recognize the last record, what should I do?
daisy
  • 53,527
  • 78
  • 236
  • 383
12
votes
3 answers

How to get networkmanager to configure domain specific name servers with openresolv + dnsmasq

I often connect to multiple network simultaneously. Each of these networks provide nameserver configuration via dhcp. E.g. Network 1: (eth0): domain company1.corp # nameserver 192.168.0.253 nameserver 192.168.0.254 Network 2 (tun0): domain…
Gary van der Merwe
  • 1,630
  • 2
  • 14
  • 28
10
votes
2 answers

Using DNSMasq for Local Hostname Resolution

I'm working on setting up a home intranet for me and my roommates. My idea is that we'll be able to store things like past utility bills in a place that's more accessible than a drawer in the kitchen etc. Anyway, I have Apache 2 running on a…
c.maclean
  • 201
  • 1
  • 2
  • 4
10
votes
3 answers

How can I block a subdomain with dnsmasq?

I use dnsmasq as a whitelist on my network. My dnsmasq.conf file looks like this: bogus-priv domain-needed no-resolv server=/stackexchange.com/8.8.8.8 #etc... I would like to be able to block a subdomain, for…
Big McLargeHuge
  • 3,044
  • 11
  • 35
  • 49
8
votes
4 answers

DNSMASQ refuses to start with "unknown interface error" even though the interface is up

A bizarre problem that I haven't found anywhere else on the internet, hinting it's probably me f'ing something up, but what? Trying to start dnsmasq.service, no matter if on boot or from user session when all network services are available and…
Deuxis
  • 323
  • 2
  • 10
7
votes
1 answer

Why is dnsmasq putting my router IP in /etc/resolv.conf instead of 127.0.0.1?

I'm having DNS resolution issues in various contexts which appear to trace back to my networking configuration. I'm running just the dnsmasq-base installation of dnsmasq on two Linux installations (Lubuntu 12.04 and 12.10). I haven't done anything…
Mike B
  • 171
  • 1
  • 6
7
votes
3 answers

Get the external IP address in shell without dig in 2016?

This question: "How can I get my external IP address in bash?" Solves the question with a call to dig: dig +short myip.opendns.com @resolver1.opendns.com; that is the fastest resolution possible, as it involves a single udp packet. However, that…
user79743
1
2 3
17 18