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

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
2answers
6k 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 ...
4
votes
6answers
22k 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 ...
4
votes
1answer
19k 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 ...
3
votes
2answers
2k 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 ...
3
votes
2answers
5k 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 ...
3
votes
1answer
1k 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
1answer
814 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
1answer
864 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 ...
2
votes
1answer
424 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 ...
2
votes
1answer
943 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 ...
2
votes
2answers
2k 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 ...
2
votes
2answers
673 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
259 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
453 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
636 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
362 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
2answers
1k 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. ...
1
vote
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 ...
1
vote
1answer
375 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
2k 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 ...
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
52 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
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
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
111 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
1answer
51 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
71 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
2k 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
1answer
74 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 ...
1
vote
0answers
128 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 ...
1
vote
0answers
81 views

dnsmasq doesn't get udp queries

I'm trying to setup dnsmasq on debian box to serve in my local network. dnsmasq seems to work. It listens on 53 port UDP and TCP. It answers queries (nslookup or dig) locally, but when I try to query ...
1
vote
1answer
1k 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 ...
1
vote
0answers
491 views

Windows not recognizing local network domain name

I'm setting up a small network for a club that I'm a member of. The layout is a single server with two ethernet interfaces, connected to a wireless router and a wireless bridge. The bridge connects to ...
1
vote
1answer
681 views

Two DNS servers, one Windows, one Linux

I've got an issue with my home network - I have a DDWRT router running as a gateway and primary DHCP/DNS Server on 192.168.1.1 and a Windows Server 2008 machine running as a domain controller and ...
1
vote
0answers
245 views

Send local IP from VPN instead of remote IP

I'm trying to setup a server with L2TP and Apache. Some folders in the Apache config will only be accessible to those connected to the VPN. I do know that I can use the allow and deny rules with the ...
1
vote
0answers
817 views

IPv6 addresses in dnsmasq

As I need to use dnsmasq to route all requests on *.local to my local machine (and use there an IPv6 addresses), i set up the dnsmasq like this: /etc/dnsmasq.d/my-local.conf address=/local/::1 ...
1
vote
1answer
269 views

Request forwarding

I have a WRT54G router running with a sub-domain pointed to it, e.g.: sub.domain.com. Now I want to forward external requests (but also local) to computers which are connected to my router so if I ...
0
votes
2answers
2k 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 ...
0
votes
1answer
893 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: ...
0
votes
1answer
19 views

How to share names with dnsmasq?

I have two subnets A and B, and their respective name servers both forward queries to local name server M, which finally forwards queries to the internet. All name servers run dnsmasq. On both ...
0
votes
1answer
1k 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 ...
0
votes
2answers
566 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 ...
0
votes
1answer
4k 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 ...
0
votes
2answers
307 views

router dhcp config for pxe boot

I want to set up pxe/tftp server in my network. I already have a dhcp server on my isp router wich has dhcp option 60 and dhcp option 240. I nee to know if can i set it up in order to lease pxe info ...
0
votes
1answer
166 views

Why are only some hosts resolved using DNS?

I have a DD-WRT router configured with DNSmasq. The config is local=/myhome.local/ expand-hosts addn-hosts=/jffs/hosts.dnsmasq This way I can resolve network hosts (e.g. ping macbookair), but other ...
0
votes
1answer
416 views

Home Router (DD-WRT) and using DMASQ for a host via dynamically assigned via DHCP

I have a home Home Router (DD-WRT) and I want to be able to look up machines via hostname. However, I would like to do this with machines where the IP Address id dynamically given via DHCP. Example ...
0
votes
1answer
455 views

How do I add custom DNS server and preserving default DNS of ISP in OS X Mountain Lion

I'm using OS X Mountain Lion. I'm using dnsmasq to set up wildcard localhost domain names, such as http://local.dev, to point to localhost. But I have to add 127.0.0.1 in my system preference -> ...
0
votes
1answer
2k views

Logging HTTP traffic on Linux

A bit of a backstory, my brother (in his early teens) has an attention disorder. Often I find him when he is supposed to be doing his homework instead surfing the web. We would ideally like to ...
0
votes
0answers
20 views

DNSMASQ redirecting LAN user to webserver but this doesn't work on wifi

Iam trying to create wifi captive portal on raspberry pi so i've installed nginix server and DNSMASQ,after using dnsmasq for traffic redirecting it works only on LAN but not on WiFi..? how would i do ...