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
13 views

OpenWRT Chaos Calmer 15.05 DNS forwarding, custom DNS Server, DHCP option - nothing works

Okay, so essentially I'm trying to only forward one very specific address over one of those geo unblock dns proxy services. Namely Pandora.com. Don't judge, I like their raido stations better than ...
0
votes
1answer
21 views

Dynamically resolve hostname to multiple, prioritized IPs

I have a linux server connected to a VPN. At home, I use the same VPN on my laptop, while connected to the server directly through a wireless router. To do this, I have two entries in my /etc/hosts ...
0
votes
0answers
22 views

How do I disable a router-assigned IPv6 DNS server?

I am using dnsmasq on a network as a DHCP and DNS server. The DNS service is required in order to resolve names of hosts internal to the network. However, when interfaces supporting IPv6 configure ...
0
votes
0answers
24 views

Bypass DNS hijacking (Transparent DNS Proxy) with DNSMasq

So my ISP is blocking some site left and right, changing the DNS manually is not working due to Transparent DNS Proxy. The workaround is possible by installing DNSCrypt in my computer, however not ...
0
votes
0answers
9 views

Why does dnsmasq return different first answers

I'm running a local server with dnsmasq and unbound. The unbound is listening on 127.0.0.1:5300 on the server network.local. The dnsmasq is listening to 0.0.0.0:53 and has a config line stating ...
0
votes
0answers
5 views

dnsmasq; log querying process

I'm running dnsmasq in development and found that something on my laptop is putting forward queries for randomly generated domain names. Hence I'd like to display the PID/lsof -p output of the process ...
0
votes
1answer
7 views

How to correctly use dnsmasq with apache?

So I've configured my dnsmasq+hostapd and everything works pretty nice. And I also started apache with two virtual hosts on 127.0.0.1 and 127.0.0.2. My goal is to redirect users from one site to my ...
0
votes
0answers
13 views

Hostname resolution with DNSMasq on DD-WRT

I have been running a DD-WRT router with DNSMasq as my DHCP server and DNS for a long time. I had thought it was working well until I began to investigate some quirks which I thought had resulted from ...
0
votes
1answer
20 views

Connected to hostapd hotspot but no Internet

I'm setting up a Gentoo Linux home router with following configuration: eth0: connected to WAN (managed by systemd-networkd) wlan0: access point for LAN (managed by hostapd) I use dnsmasq as DNS ...
0
votes
0answers
16 views

dnsmasq not picking up requests

I recently bought a new smart TV and I'm trying to proxy all requests from it through my laptop. My setup is this: [TV] -> ethernet cable -> (enp0s25)laptop -> router -> internet My TV is connected ...
1
vote
0answers
36 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 ...
0
votes
0answers
8 views

Why am I not able to ping any host?

I'm running AP with hostapd and dnsmasq. Here's my dnsmasq.conf cache-size=0 port=53 domain-needed server=8.8.8.8 no-resolv no-hosts interface=wlan1 bind-interfaces dhcp-lease-max=640 ...
0
votes
0answers
8 views

Dnsmasq strange behaviour

I'm running AP with hostapd and dnsmasq. Here's my dnsmasq.conf cache-size=0 port=53 domain-needed server=8.8.8.8 no-resolv no-hosts interface=wlan1 bind-interfaces dhcp-lease-max=640 ...
0
votes
0answers
25 views

Distinguish between DNS-requests from local network and internet

I am using DNSmasq both for my local clients and some internet services. One service I provide is a dynDNS server. It receives IP updates via HTTP and writes it as simple hosts file but without ...
0
votes
0answers
62 views

Raspberry Pi Captive Portal

So there is a lot of information out there about Captive portals, a little less for the RPi. To put it simple, I'm not able to get it working. What I'm looking for specifically is getting a pop-up ...
0
votes
0answers
13 views

dnsmasq not resolving local domain

I'm trying to run dnsmasq for having a domain in my local network. The ns lookup results in nslookup mydomain.com Server: 192.168.0.100 Address: 192.168.0.100#53 ** server can't ...
0
votes
1answer
56 views

How to stop dnsmasq from adding ISP DNS servers to a VPN connection?

This is Ubuntu 15.10. The following lines from the log happen when connecting to the VPN: dnsmasq[983] setting upstream servers from DBus dnsmasq[983] using nameserver 1xx.xxx.xx.xx#53 <-- ...
0
votes
0answers
32 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
35 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
72 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
34 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
53 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
11 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
106 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
107 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
7 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
95 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
118 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
32 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
106 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
678 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
17 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
608 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
59 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
110 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
41 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
126 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
378 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
58 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
84 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
43 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 ...
1
vote
1answer
218 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
246 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
372 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
650 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
1answer
75 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 ...
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 ...
0
votes
0answers
93 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
167 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
146 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 ...