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.

learn more… | top users | synonyms

14
votes
2answers
10k 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 ...
10
votes
2answers
8k views

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 ...
8
votes
2answers
32k 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 ...
6
votes
3answers
3k views

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 ...
5
votes
7answers
28k views

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 ...
5
votes
2answers
7k 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 ...
5
votes
2answers
7k views

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 ...
5
votes
3answers
2k views

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 /etc/dnsmasq.conf: listen-address=127.0.0.1 bind-interfaces domain-...
3
votes
2answers
6k views

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 ...
3
votes
1answer
1k views

How to register subdomains on dnsmasq

how can I register subdomains of my web development server into my DNS automatically? I mean, I wouldn't like to edit the DNS config file, but send something from the client that says 'Hey, I have a ...
3
votes
1answer
2k views

OpenWRT based gateway with dnsmasq and internal server with bind

I have router based on OpenWRT which has dnsmasq 2.59. Inside my local area network I have a NS server bind. This server has internal and external views for a couple of my domains. My router forwards ...
3
votes
2answers
67 views

How do I figure out what's caching the DNS for a specific domain?

I'm using linux (openSUSE 13.2) on my computer and my router is DD-WRT. There is a domain that, when I ping, keeps returning the wrong IP address. My Router has the domain name server as Google's 8.8....
3
votes
1answer
2k views

how can I combine dnsmasq and urlblacklist?

Is there a way to integrate dnsmasq and the popular urlblacklist.com list? I thought about adding all the entries with the -A flag, but that's a lot of hosts for dnsmasq to process, especially on a ...
2
votes
2answers
2k 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. ...
2
votes
1answer
9k 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/...
2
votes
1answer
1k views

linux dnsmasq: how do I increase the ttl?

Is it possible to dictate the TTL of resolved entries? In other words, is it possible to override the received TTL for resolved entries and make those higher? Reason: I find that dnsmasq tries to ...
2
votes
1answer
1k 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,...
2
votes
2answers
418 views

making dnsmasq listen on only one interface

I have dnsmasq running on a raspberry pi w/Raspbian. The pi has a wifi stick on wlan0 and is connected to the local network/internet on eth0. My goal is to have dnsmasq resolve all hosts to the pi's ...
2
votes
1answer
793 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-...
2
votes
1answer
4k views

Where to set external DNS in DNSMASQ?

I am getting "Query refused" from my network when I use nslookup google.com. The DNS Server is 192.168.1.2 who runs dnsmasq. It was working yesterday. How can I solve it? I bet it's something about ...
2
votes
2answers
181 views

Block (nullroute?) an IPv6 hostname using /etc/hosts

I'm trying to prevent my web browser from communicating with certain hosts (mostly ads and tracking). I have a list of such hosts in my /etc/hosts file. For IPv4 I can do: 255.255.255.255 example....
2
votes
2answers
932 views

What do I need to make Linux host names resolvable on LAN?

What do I need to get local host names to be resolvable? BIND? DHCP? dnsmasq? With the needed components, how do you configure it? We use Vyatta 6.4 as our router and we have CentOS 6.3 boxes. I ...
2
votes
1answer
298 views

Replacing stock dnsmasq with optware dnsmasq

This question if for DD-WRT installed on e3000 with optware. I have replaced the stock dnsmasq to get logging, using this: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=660694 I installed optware on ...
2
votes
1answer
129 views

No connection between devices in local network

I have home server that also works as router (gateway). It has 2 interfaces one for internet (enp4s0) and another (enp4s1) looks into local network. All devices from local network uses internet from ...
2
votes
0answers
421 views

Windows 7 DHCP flooding server with requests

Am attempting to connect a Windows 7 laptop to a Debian server running dnsmasq. The Windows 7 machine doesn't seem to like the DHCP info it's getting as it re-requests it every ~10 seconds. The log ...
2
votes
2answers
758 views

reverse usb tethering in strict dns environment

In the environment, all DNS query is blocked by firewall. And wifi or 3G is not allowed I want to let a rooted Android(192.168.42.2) accessing internet by plug usb on PC(192.168.42.1 for usb0 ...
2
votes
1answer
790 views

Create alias to local hostname

I have the following scenario: A host machine (OS X) and a guest machine (Ubuntu). The guest is running through Virtual Box, and the network configurations is set to "Bridged adapter". Both machines ...
2
votes
0answers
379 views

Using dnsmasq on OS X when not connected to the Internet

I'm routing dns requests through dnsmasq so that domains I'm using for local development point to 127.0.0.1. This works great when I'm connected to the Internet via Wi-Fi or ethernet, but I start to ...
1
vote
3answers
2k 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 ...
1
vote
1answer
4k views

dnsmasq: how to handle the local domain (A, PTR)?

(adapted from the dnsmasq mailing list which archive seems to be down so I am not sure it is still active) Hello, I set up dnsmasq on my home network to replace the isc/bind legacy system :) when ...
1
vote
1answer
271 views

Secure dnsmasq dns daemon with whitelist

I'm using dnsmasq on a server (bound to wan IP) and would like to add an acl/whitelist for ip ranges/ip address allowed to resolve dns using my server. I can't seem to find anything from Google, is ...
1
vote
1answer
581 views

Domain Resolving To Wrong IP Using DNSMASQ

I have two VMs, one with my application which talks to the other vm running asterisk (and centos). The config for the application server needs to point to the asterisk box. To avoid having to change ...
1
vote
1answer
797 views

Redirect all http & https requests with lighttpd

I have a spare Raspberry Pi so I decided to check out PirateBox. I have it all working however the default behaviour is to not redirect https requests. Given the PirateBox will be never connected to ...
1
vote
1answer
126 views

dnsmasq circular loop error

I know I am missing a configuration somewhere, but I just can't find it. I have two routers, A is upstream of B, both running dnsmasq. A has domain A.com B has domain B.A.com A has in dnsmasq.conf ...
1
vote
1answer
3k views

Cannot access internet and local DNS server using OpenVPN on DD-WRT router

I tried to setup Dnsmasq and OpenVPN server on my DD-WRT router. My goal is to connect to my dd-wrt (v24-sp2 (03/25/13) mega) router via openvpn and: use my local resources, address to them using ...
1
vote
1answer
321 views

DNS server returns valid IP, but browser can't find server?

OK so I have my Raspberry Pi running a DNS server (dnsmasq), and I have my router set up to use it as the DNS server for the whole network. This was working perfectly until a few hours ago when I ...
1
vote
3answers
2k views

Setting up DNS server inside network

OK so here's a little problem I have: I'm trying to set up my Raspberry Pi as a DNS server (for filtering and caching). The Raspberry Pi is in my network, and has a DHCP IP from the router. The DNS ...
1
vote
1answer
484 views

Restrict static IPs (Only DHCP) on Debian Squeeze

How can i restrict access to the Internet for users with static IPs? Can i disable free dhcp leasing? I'm running Debian Squeeze with dnsmasq as dhcp server. All users has their own ip, mapped to mac....
1
vote
1answer
2k views

Debian 6 Internet connection sharing aka IP masquerade not working

The problem: the computers [Xbox 360 and a Kubuntu 12.04.1 laptop] can't access Internet through a recently-installed desktopless Debian 6 laptop (which is wirelessly connected to a WLAN station) but ...
1
vote
1answer
123 views

Outside lookups broke when using DNSMasq on inside AP

I have DNSMasq providing DNS and DHCP on 192.168.1.3. Gateway is 192.168.1.1. I turned off DHCP on 1.1. Any clients on the net can't resolve outside hosts... Clients can't resolve outside ...
1
vote
0answers
25 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 ...
1
vote
0answers
18 views

How to set up dnsmasq on PC to mimic router's comfort functions?

I want to move the DNS functionality from my router to a PC running dnsmasq on the network. The basic setup is up and running, but I am missing the following functions the router had implemented: ...
1
vote
0answers
78 views

How to configure dnsmasq to send DNS server Info via DHCPv6

There is a known problem with a IPv6 Windows Client that it does not accept the DNS Server Info sent by Server via Router Advertisements, even though the IPv6 address assignment works. DNS Server ...
1
vote
0answers
48 views

Set proxy while sharing internet from dnsmasq server

I have a raspberry pi from which I am sharing internet to other hosts connected to it. Raspberry pi has internet connection on "wlan0" and other hosts are connected to "eth0". I have installed ...
1
vote
1answer
934 views

OpenWRT router's dnsmasq settings block lan name resolution?

I have a version 15.05 OpenWRT router which is a member of a local network. This network has its own DHCP and DNS servers which dnsmasq should automatically use for domain name resolution. However ...
1
vote
0answers
47 views

DD-WRT DNSMasq Stops working when advanced options entered

I used the suggested version for my router and the latest beta and in both cases with Local DNS enabled, Used Domain Set to Lan AND WLAN and domain set accordingly everything works fine. However I ...
1
vote
1answer
154 views

Native IPv6 on Debian Router

After my old Tomato USB router died I started using an old netbook with Debian Wheezy installed as my home router. I have two WLAN interfaces and one LAN interface. wlan0 has internet access and wlan1 ...
1
vote
1answer
141 views

Running ipv6 tunnel on windows 7 alongside local dns server

I am running an IPv6 tunnel via Hurricane Electric in Windows 7, which has been working fine for ages. My router does not support IPv6 at all natively. I am also experimenting with running a local ...
1
vote
1answer
7k views

How do I configure DNSMasq on DD-WRT when using Active Directory?

I have a server running Windows Server 2012R2. It is a domain controller. I have a router running DD-WRT version DD-WRT v24SP2-EU-US (08/19/10) std (SVN revision 14998). The router is configured with ...
1
vote
0answers
210 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 (...