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.

Filter by
Sorted by
Tagged with
59 votes
4 answers
56k views

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 ...
thiagowfx's user avatar
  • 1,748
40 votes
3 answers
194k views

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

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 this: google.com cnn....
exvance's user avatar
  • 321
7 votes
1 answer
17k views

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 ...
JetpackJohn's user avatar
4 votes
1 answer
4k views

Local hostname not working without the trailing dot

I noticed all my local hostnames have a trailing dot at the end when I use some LAN scan tool on my Android phone. And without it, I can't get a ping to work from my Windows desktop (it works fine ...
dan's user avatar
  • 504
0 votes
1 answer
2k views

Wi-Fi access point with login page

Currently I'm using hostapd and dnsmasq. And I want to add something like login page: user connects to ap, opens any site and my wifi/dns-program automatically redirects him to the login page till he ...
desu's user avatar
  • 113
11 votes
3 answers
39k views

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 ...
Florentin Stemate's user avatar
6 votes
1 answer
20k views

I don't want my DHCP to be a default gateway

I have a device which runs a DHCP server. When I connect it with USB to my computer, the PC gets an IP address and the device becomes the default gateway. I just want the device to agree on IP ...
user1190's user avatar
  • 620
6 votes
2 answers
15k views

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 ...
Sirex's user avatar
  • 11.1k
5 votes
1 answer
23k views

DNSMASQ not answering DNS queries from routed subnet

I have two sub-nets connected together using two DD-WRT APs - The remote AP is in Client-Routed mode so it has a separate subnet its IP are 192.168.2.1/24 and 192.168.0.5/24. The local AP is in AP ...
Ross's user avatar
  • 1,326
4 votes
4 answers
22k views

dnsmasq not working to point .local addresses to 127.0.0.1

I'd like to get .local addresses (such as test.local) to point to 127.0.0.1 but it isn't working. I'm on latest Ubuntu. In /etc/NetworkManager/NetworkManager.conf I commented out dns=dnsmasq then did ...
user779159's user avatar
3 votes
0 answers
3k views

DNS solution for LAN or local home network

This is about how to provide a total solution for a local home network -- I've found a good one here about dnsmasq configuration. I managed to use the above article to have dnsmasq server set up ...
xpt's user avatar
  • 8,651
3 votes
1 answer
2k views

RADVD for IPv6 assignement, DNSMasq for DHCP handing out DNS for IPv6 clients - how to do?

As you know, Windows does not support setting up DNS via Router Advertisements (RDNSS) for IPv6. So it should use a DHCPv6 server to somehow get the needed address. I'm using DD-WRT on my router ...
Evengard's user avatar
  • 1,784
2 votes
1 answer
2k views

Configure dnsmasq to selectively resolve domains using two DNS providers

I want to use two different DNS providers, a.com and b.com. I want a list of domains like google, youtube, superuser (and more) to be resolved with a.com. And I want all other domains to be resolved ...
Shayan's user avatar
  • 1,524
2 votes
1 answer
2k views

How to setup dnsmasq on Ubuntu 18.04 to allow windows clients to find hosts without trailing dot

I've got dnsmasq setup on Ubuntu 18.04. Its working fine and everything seems to be going swimmingly. What I want is for all of the Windows hosts on my network that use the DNS server to be able to ...
ahackney's user avatar
  • 113
2 votes
1 answer
2k views

dnsmasq not working without internet connection in OS X Yosemite

No0b here. I have been trying to setup a local environment for web development on OS X Yosemite using these approaches (http://passingcuriosity.com/2013/dnsmasq-dev-osx/ and http://mallinson.ca/osx-...
user avatar
2 votes
0 answers
503 views

how to pick addresses and DNSMasq server for PPTP VPN client (in DD-WRT)?

I must be confused about terminology for addresses my remote network uses, but I could not get my DD-WRT (build 20548) connect to the PPTP server. At least I could not even verify that I am connected (...
László's user avatar
  • 139
2 votes
2 answers
4k views

In OS X, how can I prepend 127.0.0.1 to the list of DNS servers obtained through DHCP?

I am trying to use dnsmasq to resolve certain known domains using its configuration, but let the rest of the requests go through to the normal DNS server assigned by DHCP. I cannot get this to work. ...
Michiel van Oosterhout's user avatar
2 votes
1 answer
3k views

Subdomains for server behind NAT

I have server (ip: 192.168.1.2, openSUSE 12.2, Apache 2) behind router (ip: 192.168.1.1, TomatoUSB Toastman Build). I'm using FreeDNS (afraid.org) and I assigned subdomain (say x.afraid.org) to router,...
rominf's user avatar
  • 220
2 votes
1 answer
3k views

Ping to dnsmasq's host resolvesto 127.0.0.1

I've just set up dnsmasq in my home lan for the first time. I got it as DHCP and DNS. Something strange is that when I ping DEV01 (which has dnsmasq) it resolves to 127.0.0.1 and I don't know why it ...
JorgeeFG's user avatar
  • 416
1 vote
1 answer
2k views

WiFi Conflict with dnsmasq (OSX)

I recently installed dnsmasq so I could use wildcard lookups for *.local addresses using these instructions. The only difference was that mine was setup to resolved .local instead of .dev, like so: ...
Yes Barry's user avatar
  • 135
1 vote
1 answer
1k views

Can dnsmasq resolve specific domain by more than one server?

Consider company compx has the domain compx.com and without special configuration, dnsmasq can resolve computers in this domain just fine. Now I log into the VPN of compx.com with vpnc. Instead of ...
Harald's user avatar
  • 206