Questions tagged [dnsmasq]

Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network.

Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small 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/TFTP/PXE for network booting of diskless machines. Dnsmasq is targeted at home networks using NAT and connected to the internet via a modem, cable-modem or ADSL connection but would be a good choice for any smallish network (up to 1000 clients is known to work) where low resource use and ease of configuration are important.

294 questions
59
votes
4 answers

Why is Chromium bypassing /etc/hosts and dnsmasq?

I'm using hostsblock together with dnsmasq on Arch Linux to block some websites, one of them is facebook.com and www.facebook.com. I know everything is working properly because a simple ping to facebook.com (or www.facebook.com) returns 127.0.0.1.…
thiagowfx
  • 1,808
44
votes
3 answers

How can I set up a 'local' domain so that everyone on my local network can view a locally hosted site?

I want to set up MediaWiki on one of my home machines, and then have all requests made on the local network for 'wiki.home' or 'wiki.local' point to that box. I know that this can be done by editing each /etc/hosts file individually, but I want…
Dan
  • 443
23
votes
4 answers

How to log all DNS requests made through OpenWRT router?

I have an OpenWRT router that is running dnsmasq. I want to create a file that has each domain that has been requested through the router. My output should looks something like…
exvance
  • 331
22
votes
7 answers

Using dnsmasq with NetworkManager

It was well known that NetworkManager does not play well with dnsmasq (ref: here). I've skimmed throught the lengthy discussion here but still not sure what the recommended way to deal with the situation is. All that I want is to do is to use…
xpt
  • 9,385
  • 44
  • 120
  • 178
16
votes
2 answers

DD-WRT: DNSMasq expand-hosts not working

I have a Linksys router running DD-WRT (Firmware: DD-WRT v24-sp2 (09/08/09) mini). I have it successfully resolving the DNS names for my DHCP-assigned systems, but only when I fully-qualify those domains. This is despite using the "expand-hosts"…
13
votes
4 answers

resolv.conf keeps getting overwritten when dnsmasq is restarted, breaking dnsmasq

I'm running Debian Jessie and I'm trying to configure dnsmasq as a caching DNS server. I used a guide to come up with the following…
nullUser
  • 763
12
votes
3 answers

Verify dnsmasq configuration

How to verify dnsmasq's configuration? dnsmasq used to be able to give verbose info about itself in /var/log/daemon.log, as explained in dnsmasq testing. However, when I restarted my dnsmasq service, nothing is logged to /var/log/daemon.log: %…
xpt
  • 9,385
  • 44
  • 120
  • 178
11
votes
3 answers

Ubuntu 18.04: Disable dnsmasq-base and enable full dnsmasq

I just installed Ubuntu 18.04, and after i configured my web server i wanted to also replace the base dnsmasq since i needed support for wildcards. After I installed dnsmasq using this quide, the dnsmasq couldn't start because the port 53 was…
11
votes
1 answer

Tell docker to use the DNS server in the host system

I have dnsmasq running in the host, and I want the docker containers to use that, instead of the default Google servers (8.8.8.8) My host /etc/resolv.conf looks as follows: » cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3)…
blueFast
  • 2,876
10
votes
8 answers

DD-WRT serving additional DNS servers instead of just the router’s IP

I have a DD-WRT (using DD-WRT v24SP2-MULTI (03/21/11) std) router set up with DNSMasq to resolve certain domains to internal addresses and pass everything else thru. The router itself is configured to use Google’s public DNS servers to resolve…
9
votes
0 answers

What are the real world differences between bind, systemd-resolved, dnsmasq, etc.?

I'm trying to achieve three simple goals (on our CentOS8 server)... local DNS resolution/caching DNSSEC DNSoverTLS At first I went straight for dnsmasq because that was what it seemed most people were using in my research. It was a trivial…
oucil
  • 286
  • 4
  • 12
8
votes
3 answers

How to use dnsmasq with DHCP-assigned DNS servers?

TL;DR version: How do I configure dnsmasq to fall back to the DNS servers pointed to by the DHCP server on my LAN, to enable switching wireless networks? On my developer laptop I've recently started using dnsmasq so that I can capture all traffic to…
7
votes
1 answer

Using dnsmasq to address machines by name and resolve external hostnames

I'm having some trouble with my dnsmasq setup. All I want it to do is resolve certain hostnames to certain ip addresses for any machine on my network. More specifically, I'm trying to enable all devices on my network to be able to reach some of the…
BrDaHa
  • 243
7
votes
1 answer

DD-WRT: dnsmasq headaches with static hosts

I am using dd-wrt (r23503, for the record) on my new Asus RT-AC56U router. Unfortunately, dnsmasq configuration is giving me nothing but headaches. Here's what I want: DNS queries from the LAN/WLAN for hosts on the LAN/WLAN should be answered for…
7
votes
2 answers

dnsmasq without altering /etc/hosts file manually

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information…
Sirex
  • 11,214
1
2 3
19 20