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

1
vote
0answers
87 views

Ask dnsmasq the hostname used to find to an IP address

I know I can find a DNS name from an IP address by using a reverse translation DNS query. But that just gives me a DNS name for that IP. Instead, I'd like to find the DNS name that was used to find ...
1
vote
2answers
1k views

dnsmasq fails to start on boot Ubuntu 13.10

dnsmasq fails to start on boot of Ubuntu 13.10, showing the error in the syslog: dnsmasq failed to create listening socket for 192.168.0.10: Cannot assign requested address When I start it manually,...
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
714 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
813 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
283 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
1k 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
271 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
3answers
2k views

fritz!box doesn't reply on dnsmasq rules that point to IPs within 192.168.178.### range

To ensure better monitoring of my home network (parental control) I tried and set up a Raspberry Pi with dnsmasq and added in some rules to the dnsmasq.conf, that basically come down to the following: ...
0
votes
2answers
639 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
1k 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
43 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
54 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
53 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
1answer
163 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
751 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
1answer
80 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 subnets,...
0
votes
1answer
5k 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 ...
0
votes
1answer
207 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
643 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
4answers
6k views

How to skip pushing the default gateway via DHCP in OpenWRT?

I have a router with OpenWRT that I want to resolve IP addressing with DHCP without setting a default gateway. I have added a DHCP-Option parameter with value 3,0.0.0.0 that is supposed to set the ...
0
votes
1answer
636 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
10 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
14 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
15 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
23 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
129 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
48 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
65 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
79 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
25 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
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 ...
0
votes
1answer
55 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
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 ...
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
104 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
25 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
106 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
118 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
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
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, ...
0
votes
0answers
168 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
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
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 ...