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

dnsmasq to provide public DNS service

If I'm to provide DNS service to the public using dnsmasq, how to set the listen-address? I changed mine from 192.168.1.1 to 0.0.0.0 and it stops working: $ cat /etc/dnsmasq.d/public.conf # listen to ...
0
votes
0answers
9 views

dnsmasq requires a restart of the networking system on BeagleBone Black (Debian 8.5)

I am currently trying to configure a BeagleBone Black running debian 8.5 as a WiFi Access Point. The programs used are hostapd and dnsmasq. I've made huge progress, in principle the access point is ...
0
votes
0answers
14 views

Redirecting wildcard domain to local ip address

I try to have my local workstation redirect a complete wildcard subdomain to a specific ip address. I run VirtualBox on my CentOS 7.2-1511 which provides a VM on 192.168.11.11 (for those interested: ...
0
votes
1answer
20 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 ...
0
votes
1answer
3k 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....
0
votes
1answer
42 views

Can't connect local server by public domain name

I have my server (Debian Wheezy) in my local home network. On that server I have my own DNS server (dnsmasq) for other local servers (so I can type name instead of local IP) and reverse proxy (nginx). ...
0
votes
1answer
123 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 ...
1
vote
0answers
16 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
43 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 ...
8
votes
2answers
31k 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 ...
0
votes
1answer
45 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 ...
1
vote
1answer
745 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
64 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
72 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
22 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 server=...
0
votes
0answers
24 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
11 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
1answer
51 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
53 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 ...
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 ...
0
votes
0answers
20 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 ...
2
votes
2answers
175 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....
1
vote
0answers
45 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 ...
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 ...
0
votes
0answers
11 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 dhcp-range=10.0....
0
votes
0answers
10 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 dhcp-range=10.0....
0
votes
0answers
33 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 domain....
0
votes
0answers
103 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 ...
1
vote
1answer
249 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
0answers
24 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
102 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
321 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 ...
0
votes
1answer
52 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: server=/msecnd.net/...
0
votes
1answer
112 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 ...
5
votes
2answers
6k 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
64 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....
0
votes
1answer
52 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. ...
0
votes
0answers
15 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
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 ...
0
votes
0answers
131 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, ...
2
votes
2answers
737 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
116 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
0answers
167 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 http://mail.mydomain.com,...
0
votes
1answer
157 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 ...
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/...
0
votes
1answer
36 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
129 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 /etc/...
1
vote
1answer
847 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 ...