Skip to main content
Share Your Experience: Take the 2024 Developer Survey
31 votes

How to log all DNS requests made through OpenWRT router?

You can edit the config file: vi /etc/dnsmasq.conf # /etc/dnsmasq.conf log-dhcp log-queries log-facility=/tmp/dnsmasq.log Or edit another config file: vi /etc/config/dhcp config ...
kev's user avatar
  • 12.8k
12 votes
Accepted

Get all the IP addresses given out by DHCP Server with dnsmasq and hostapd

I believe /var/lib/misc/dnsmasq.leases is the file you want If not then use dhcp-script= and write your own see manpage At startup, dnsmasq reads /etc/dnsmasq.conf, The format of this file ...
Ross's user avatar
  • 1,336
11 votes
Accepted

Verify dnsmasq configuration

--no-daemon dnsmasq will print errors to the terminal if you run it directly. i.e. dnsmasq --no-daemon, or with all logging options: $ dnsmasq --no-daemon --log-queries=extra --log-dhcp --log-debug -C ...
mwfearnley's user avatar
  • 7,493
11 votes
Accepted

Ubuntu 18.04: Disable dnsmasq-base and enable full dnsmasq

You have systemd-resolved enabled as the local DNS server. You can disable it by setting DNSStubListener=no in /etc/systemd/resolved.conf and then restart the systemd-resolved service. It will then ...
yosi1984's user avatar
  • 226
9 votes
Accepted

DNSMASQ not answering DNS queries from routed subnet

Ok so after reading the manual better I need to add in something to override the default of only answer local sub-nets (--local-service) a default option which has no negation so for example I tried ...
Ross's user avatar
  • 1,336
6 votes

How to log all DNS requests made through OpenWRT router?

You can install tcpdump and sniff the packet going to the port 53 tcpdump -i eth0 -l -vvv dst host 192.168.1.100 and dst port 53 >> dump.log This file will grow really fast and your router ...
Joe's user avatar
  • 683
6 votes

is there any Public DNS Server (except openDNS) that have port open other than 53?

I found the answer after stumbled upon this github page DNS that not using 53 port. i hope this little list can help the others that got blocked by the ISP's transparent DNS.
Kaze Nakazawa's user avatar
5 votes

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

bigjosh is right - except there's been an update to dnsmasq, and there's now an option at the end of /etc/default/dnsmasq which you can un-hash: IGNORE_RESOLVCONF=yes
Maynard's user avatar
  • 51
5 votes

My router false positively detects DNS-rebind attack

Your Tomato router is using dnsmaq for resolving DNS queries (actually to forward them to a resolver, but don't mind me). dnsmasq has a built in protection which you find out. It forbid upstreams ...
Huygens's user avatar
  • 1,469
5 votes

Dnsmasq cache dump

SIGUSR1 works for me, but you must have log-queries parameter enabled in dnsmasq configuration.
mehturt's user avatar
  • 103
5 votes

Tell docker to use the DNS server in the host system

You can use the host's local DNS resolver (e.g. dnsmasq) from your Docker containers if they are on a user defined network. In that case a container's /etc/resolv.conf will have the nameserver 127.0.0....
Eugene Yarmash's user avatar
4 votes

Get dnsmasq to automatically register hostnames in its DHCP network on its DNS

The problem is that you are specifying a static address on the client. From man 5 dhcpcd.conf: Configures a static value. If you set ip_address then dhcpcd will not attempt ...
Bob's user avatar
  • 61.8k
4 votes
Accepted

Is it possible to round robin DNS requests?

This is not possible with dnsmasq or bind. There might be other DNS services that perform some load balancing. If I had to do this, I would look at a load balancer, or 'traffic manager' service to ...
madacoda's user avatar
  • 475
4 votes
Accepted

Dnsmasq not resolving hosts that have static IP

Use the host-record option to define names that aren't associated with DHCP. host-record = proxy, 192.168.10.61
grawity_u1686's user avatar
3 votes
Accepted

dnsmasq fails to answer queries on ubuntu 16.04

From the v2.69 changelog: Add --local-service. Accept DNS queries only from hosts whose address is on a local subnet, ie a subnet for which an interface exists on the server. ...
Darren's user avatar
  • 2,742
3 votes

Why does Windows 10 seem to ignore the DNS query replied from my router?

OK, thanks to the "Secure DNS" feature of Avast! Antivirus, I have wasted 2 days to troubleshoot the problem. I found that when my computer send a DNS query to my router, a query to a strange IP ...
user1556811's user avatar
3 votes

Using dnsmasq with NetworkManager

In addition to the previous replies to this post I would like to add, that Network-manager's dnsmasq-base instance, will also follow the addn-hosts directive, (placed in a configuration file created ...
Bernie D's user avatar
3 votes

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

Local name resolution is a simple feature and it's been part of most routers that I used. It's also implemented in DD-WRT firmware. Netgear doesn't care for this feature that is constantly requested. ...
Oleg Mikheev's user avatar
3 votes

Get all the IP addresses given out by DHCP Server with dnsmasq and hostapd

As an addendum to Ross' answer, you can specify the lease file in your dnsmasq.conf (or conf file in /etc/dnsmasq.d) file with the option dhcp-leasefile=<lease file>. E.g. dhcp-leasefile=/var/...
Darren's user avatar
  • 2,742
3 votes
Accepted

How do I configure dnsmasq to resolve local hostnames with dualstack ipv4 & ipv6?

If you don’t use a custom OpenWrt image, the default DHCP/DNS constellation is as follows: dnsmasq does DHCPv4 and DNS dnsmasq ships without DHCPv6 support (dunno why that’s different for you) odhcpd ...
Daniel B's user avatar
  • 63.5k
3 votes

dnsmasq DNS resolution issues

Based on your problem statement, you have something like this, yes? Client <---> LAN-Router <---> WAN-Router <---> Internet 192.168.1.181 192.168.1.1 192.168....
Lewis M's user avatar
  • 347
3 votes
Accepted

Best choice for private/home network TLD? Overlap with mDNS?

I would say that there are only two acceptable options: 1) .home.arpa or another explicitly reserved domain; 2) your own domain registered in the DNS or its subdomain. Anything else is bad practice. ...
grawity_u1686's user avatar
3 votes
Accepted

dnsmasq DHCP server on Mac OS - not working

I found the cause. dnsmasq binds both as a DHCP and DNS server, and I did not disable the DNS server (because I was planning to configure it later). When I run the VM, Mac OS starts its own DNS, to ...
ghik's user avatar
  • 141
2 votes

How to skip pushing the default gateway via DHCP in OpenWRT?

Building off of Daniel B's answer, for OpenWRT, modify /etc/config/dhcp to add the appropriate options: config dnsmasq ... # To disable setting the default gateway option dhcp_option '3' ...
MrMas's user avatar
  • 192
2 votes

How do I manually configure DNS name resolution on Ubuntu 16.04?

I think you should make changes to interfaces file instead of NetworkManager.conf file. Add dns-nameservers to interfaces file. location of interfaces file should be /etc/network/interfaces I hope ...
JPS Bhullar's user avatar
2 votes

How do I configure DNS when sharing a VPN connection in linux?

You have not clarified whether you wish the DNS servers to be specific to your Windows machine, to all of the OpenVPN clients, or perhaps even to you RPI, and whether you wish the DNS querying to go ...
MariusMatutiae's user avatar
2 votes

Why is Chromium bypassing /etc/hosts and dnsmasq?

One other obscure possibility is that your system is setup to use an automatic proxy *.pac file. This would normally be the case if you were issued a computer in a corporate environment and the *.pac ...
Elijah Lynn's user avatar
  • 1,524
2 votes
Accepted

using dnsmasq to resolve all dns queries in my local LAN

I postulate you have a firewall on the machine you are using as a server which is blocking inbound requests on port 53 [ DNS ]. From a command line, run iptables -vnL to have a look at the setup of ...
davidgo's user avatar
  • 71k
2 votes
Accepted

DNSMasq refuse to assign correct address

OK, so I found the cause. DNSMasq remembered to lease the IP in the past to different MAC so it refused to assign it to the new one even though it was directly told so, the little insubordinate jerk. ...
Ren's user avatar
  • 186

Only top scored, non community-wiki answers of a minimum length are eligible