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

0
votes
0answers
22 views

DHCP: Temporarily Reserve An IP to A specific Mac or machine for a specifc time

I m using OPENWRT DNSMASQ/ every machine should have a Dynamic IP.(it is OK) after that he gets a captive portal page to enter credentials. ( it is done too) Question is If credential is ...
0
votes
1answer
8 views

dnsmasq different replies based on source

I want to override the DNS configuration for some domains by using dnsmasq so that queries are forwarded elsewhere to be resolved. I can do this with this configuration snippet: ...
0
votes
1answer
21 views

Can I use /etc/hosts file to block ads when using Ubuntu 14.04.3 OpenVPN server?

I have an OpenVPN server hosted on Digital Ocean. I've uploaded a hosts file to the server to help filter a lot of unwanted domains. When using the server, it filters the domains. However, when I use ...
0
votes
1answer
17 views

iptables: is it possible to combine “string” and “mac” modules results?

I have a raspberry pi running dnsmasq. I configured all my local devices to use this device to resolve DNS queries. I like to block certain devices using their MAC address from certain queries. ...
3
votes
2answers
41 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 ...
0
votes
0answers
6 views

Configure dnsmasq to allow certain external hosts

This is probably (really really) easy, but I can't seem to figure out how to tell dnsmasq to allow non-local connections from a certain list of IPs. In general it should only be used on the local ...
0
votes
0answers
54 views

Pass the ISP DNS to your DHCP clients on OpenWRT

Basically I need my DCHP clients to have their DNS pointing to the ISP ones rather than pointing to the OpenWRT/Router's IP. On (latest) DD-WRT, you can check the option to disable DNSMasq local DNS, ...
0
votes
0answers
48 views

dnsmasq: Redirect all urls * except* one

I have the following situation: Inside my LAN, I want to redirect all traffic going to http://*.mydomain.com to one of my internal servers (10.0.0.17). The only exception is ...
0
votes
0answers
6 views

Dnsmasq syntax errors

In the file where I have my IPs and corresponding domain names for dnsmasq, when the domain name is www.something.something it works; but when it is just something, it doesn't work, and the query is ...
2
votes
1answer
64 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 ...
0
votes
1answer
49 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 ...
0
votes
1answer
30 views

Wifi interface ask the gateway about an address located on a totally different (and private) network

Initially fighting against DNS Leak, for both knowledge and privacy, I end with a computer that asks the FAI box for a local address located outside of its scope (another network)... I've spend hours ...
0
votes
1answer
77 views

Disable or change port of ASUS RT-AC56U DNS server

I need the outside facing UDP port 53 of my ASUS router for something else than a DNS server. Here is what i have tried so far: Look for a setting in the GUI, i cant find one. Tried editing ...
1
vote
1answer
422 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 ...
0
votes
0answers
15 views

Map subdomains and path to localhost?

For a particular development task, I need this mapping to happen: mysub.myservice.com/a/b/* -> localhost/* mysub.myservice.com/anything else should route as normal. What is the simplest way to ...
0
votes
1answer
396 views

How to prevent local host name resolving from DHCP names in OpenWRT/dnsmasq

I have OpenWRT 14.07 running on my home router. It has DNS and DHCP services enabled for the local LAN devices. However, this also "leaks" the name of each device connected to the router, even if ...
0
votes
0answers
47 views

Wildcard DNS with libvirt/dnsmasq

I've seen, that when a network gets created all guests in that network get "guestname.networkname" as a hostname by dnsmasq. I need to get another A-Record with "*.guestname.networkname" pointing to ...
-2
votes
1answer
86 views

DNS host name not resolving without http:// prefix

I am using DnsMasq on raspberry pi. On the /etc/dnsmasq.conf configuration is as follows: interface=eth0 domain-needed bogus-priv strict-order addn-hosts=/etc/hosts.dnsmasq And the ...
1
vote
0answers
33 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 ...
0
votes
1answer
99 views

DNS for home network with dnsmask: doesn't change IPs

I've got a home network: three hosts on OS X and printer. All the devices are wireless and connected into a network via Actiontech T1200H router which is also provides internet. One computer(MacPro) ...
0
votes
1answer
220 views

How do I simulate a DNS server returning a SERVFAIL in response to a A query?

Goal When an A query returns an NXDOMAIN response, my java app throws an UnknownHostException. I would like to know if a SERVFAIL response from DNS servers caused java to throw this error as well. ...
0
votes
1answer
45 views

How can I bypass dns for one hostname on one wifi network

I'm a complete beginner when it comes to network administration, and am trying to speed up a connection when possible. I have a service on my laptop configured to connect to my server over the ...
0
votes
0answers
72 views

dnsmasq pass a url using dhcp option 43

I have been reading the documentation of dnsmasq and different examples found on internet but I have been unable to succeed. I am trying to pass a URL to the CPE using dhcp option 43. The CPE is ...
0
votes
0answers
33 views

How to redirect, ignoring path in url.com/path/path

In dnsmasq.conf, I redirect any domain url to an IP. If I enter "url.com/path/path", I get redirected to "IP/path/path". How can I redirect to IP only ? // NB : If I manage to work it out, I guess ...
0
votes
1answer
166 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 ...
0
votes
1answer
160 views

hostapd & dnsmasq Obtaining IP forever

I'm trying to set up a wireless access point using hostapd and dnsmasq but I can't get it to work. The AP works, but when I try to connect to it gets stuck on "Obtaining IP address". I see the ...
2
votes
2answers
294 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 ...
1
vote
1answer
453 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 ...
0
votes
0answers
108 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 ...
0
votes
1answer
61 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 ...
3
votes
3answers
1k 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 ...
0
votes
0answers
89 views

Change dnsmasq from .dev to .local

I originally tried asking this question on apple.stackexchange.com, but I think it may be a bit beyond the scope of being just for macs (and therefore more of a server config issue), so had no ...
0
votes
0answers
156 views

How to get DD-WRT (dnsmasq) to serve DNS but *not* DHCP?

I want to configure a DD-WRT router just for local DNS resolution of a few names, and then fall back to my ISP's DNS server. I am using a separate router, the sole purpose of this DD-WRT router is as ...
1
vote
1answer
133 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
122 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
421 views

Locate Host Name on LAN with DNSMasq

I am running DNSMasq as both my DHCP and DNS server on my DD-WRT router. I had thought that DNSMasq was adding hosts that it registered in DHCP to the DNS server automatically, but I have a few ...
0
votes
0answers
130 views

LAN access to home server using dnsmasq

I set up an OwnCloud server on a Raspberry Pi. To access it easily, I used a dynamic dns solution which points to my public IP. Every port is open and it works just fine when I access the server ...
0
votes
1answer
34 views

Restarting BIND service getting error

When I restart the BIND service getting this error from syslog named[4960]: /etc/bind/named.conf:15: couldn't add command channel 127.0.0.1#953: address in use Even when I execute nslookup ...
0
votes
1answer
384 views

dnsmasq: DNS request timed out for machines in local network

I have a vagrant machine running on my mac with virtual hosts I want to make available to my local network. I installed dnsmasq via brew and have the following in its /usr/local/etc/dnsmasq.conf: ...
0
votes
1answer
29 views

Custom entry in hosts file not directing to correct IP

I have an entry in my local hosts file pointing to: $my-server-ip development.$client-domain.com When I ping development.$client-domain.com, I get $server-ip, but when I visit it in a browser, I do ...
2
votes
0answers
312 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
1answer
726 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 ...
0
votes
1answer
3k views

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 ...
1
vote
1answer
5k 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
135 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
1answer
95 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 ...
0
votes
1answer
2k 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
1answer
141 views

dd-wrt translates DNS queries sent from LAN from public IP to private IP – how to stop this?

I recently got a router that has dd-wrt firmware installed into it. I'm running a HTTP server behind that router, and as it has a NAT, I have set the appropriate port forwardings. I also have a ...
1
vote
3answers
1k 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
0answers
197 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 ...