dnsmasq is a lightweight DHCP, DNS and TFTP server application for *nix platforms intended for use on small and home networks.

learn more… | top users | synonyms

0
votes
1answer
17 views

How to view dnsmasq client MAC addresses dynamically?

If I have already known the client IP, I know there's /var/log/dnsmasq.log and it contains logs such as Jun 13 12:22:42 dnsmasq-dhcp[499]: DHCPACK(wlan0) 172.24.1.110 34:12:98:11:80:bd ones-iPad ...
0
votes
0answers
27 views

How to prevent disconnection / reconnection attempts on private LANs without internet connectivity?

I am developing an appliance system which is meant to be transportable, used monthly in a different location, for ~100 simultaneous users, with laptops and tablets. The system includes a server (http,...
0
votes
0answers
27 views

Dnsmasq - assign different subnets based on MAC address “family”

I have an experimental network with about 60 client machines. The client MAC addresses are all divided into 3 "families" with different address beginnings. The server is an Ubuntu machine running ...
1
vote
2answers
77 views

How to conditionally redirect DNS queries with dnsmasq?

I would like, in my network, the host 10.10.10.1 to resolve names via 8.8.8.8 and 10.10.10.2 via 8.8.4.4. They receive their DNS settings via the dnsmasq DHCP service. I can imagine two solutions: ...
0
votes
0answers
16 views

replicate lxd bridge in /etc/network/interfaces and dnsmasq

I have a Ubuntu 16.04 server and default LXD configuration. Typically, when an image comes up, this happens: eno1 Link encap:Ethernet HWaddr b8:ae:ed:ea:69:41 inet addr:192.168.0.3 ...
0
votes
1answer
43 views

resolvconf coupled with dnsmasq and lxd

Q: How do I programmatically add a persistent resolvconf entry for my lxd based dnsmasq? I have a very base installation of Ubuntu 16.04 server. I have installed and configured lxd and created a ...
-1
votes
0answers
5 views

Can't connect local server by public domain name [migrated]

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
0answers
47 views

Use Windows RSAT DHCP Server MMC SnapIn with Linux Samba 4 AD to manage dnsmasq/isc-dhcpd

This particular Active Directory installation uses a Samba 4 Domain Controller Forest running on up2date (05-2016) Debian Linux Jessie VMs. Remote Server Administration Tools (RSAT) are used from ...
0
votes
0answers
5 views

How to tag requests for a specific interface?

I will have a WiFi access point (wired to eth0) which will broadcast two SSIDs. Each of them will be in its own VLAN, and each of these VLANs will be defined on eth0 as eth0:10 and eth0:20. I would ...
0
votes
1answer
16 views

Redirection or Name server addresses

I asked my new webhost: "I need my domain languagematerial.com to point to my new host: http://languagematerial.altervista.org/ so I must know which are the name server addresses in altervista. I ...
2
votes
0answers
39 views

DNS forwarder that always resolves [closed]

I would like to set up a basic DNS forwarder that does two things. First, it simply forwards DNS queries upstream. Second, if the upstream DNS servers can not resolve a hostname then this DNS ...
0
votes
1answer
26 views

Separate Servers for TFTP and DHCP for PXE Boot

This seems like it should be simple, but I can't find any actual information: Is it possible to have two separate servers, one running dnsmasq doing DHCP while the TFTP (or HTTP) server is running on ...
0
votes
0answers
15 views

How do I redirect connections to a local mailserver in fail case to a online mailserver (with dns?)

Situation: I administrate a small business network (10 employees) with a bad internet connection (satellite, limited traffic volume, weather-dependent), so some services like mailserver are organized ...
0
votes
0answers
54 views

dnsmasq use LAN ip for resolvable LAN hosts, forward to external DNS otherwise?

This may be a duplicate but I was unable to find the exact answer, so I apologize in advance if it is. I have a dnsmasq instance running on my router, as well as some hosts which are accessible on ...
2
votes
0answers
29 views

DNSMasq lookup dns for domain by interface

I have DD-WRT running dns-masq to use different name servers for a wireless access point. I want to take this one step further but I can't seem to get it working. My current setup (which works ...
3
votes
1answer
87 views

Does a Windows host correctly interpret dnsmasq parameters?

I have a network of Windows 10 machines served (DNS and DHCP) by a dnsmasq instance on a Ubuntu server (Ubuntu 15.10, dnsmasq 2.75). The setup basically works (dnsmasq provides addresses and manages ...
0
votes
0answers
82 views

configure host to use private DNS server when result is not found?

Is there a way to configure a Linux host to resolve hostnames using a primary DNS server but if the result is not found, resolve using a secondary DNS server? The reason is that I have some hosts ...
0
votes
2answers
57 views

How to discard a DHCP request's old IP address (and provide a new one)?

I switched from a 192.168.0.0/24 network to 10.10.10.0/24. The addresses are provided by dnsmasq-dhcp. The switch went fine for all devices but one - a printer (called PRINTER). This printer was ...
-2
votes
1answer
335 views

dnsmasq failed to restart

Whenever I want to restart dnsmasq service, I receive this error root@ipm:/tftpboot# /etc/init.d/dnsmasq restart [....] Restarting dnsmasq (via systemctl): dnsmasq.serviceJob for dnsmasq.service ...
0
votes
0answers
13 views

Double DNS resolution at Squid proxy

I wanted to check if anyone faced this scenario or not. Any input if someone can share greatly appreciated. Following is scenario:- I have set of workstations are accessing internet directly but for ...
1
vote
2answers
92 views

Regular expression in not working in dnsmasq config

I have dnsmasq version 2.66 installed on CentOS. As per release notes, dnsmasq supports regular expressions starting 2.60 I have following enty in my config file: address=/:clients[0-9]*\.google\....
-1
votes
1answer
107 views

Captive portal with iptables and local dns server

I'm trying to redirect all the browser's requests from my wifi interface wlan1 to a captive portal. I have a node web server running on my target on 10.4.30.34:4040. It has to redirect the browser ...
0
votes
0answers
72 views

Custom captive portal on Android

I'm trying to setup a captive portal system with Dnsmasq. Basically when a user connects a device to my network, I redirect all request to my webserver. On iOS it is working fine but I have a problem ...
0
votes
1answer
162 views

dnsmasq proxy mode and efi boot

So, I already have DHCP server in my local network. But I want to setup new VMs with network boot (PXE). I've setup dnsmasq in proxyDHCP mode to provide PXE info to booting clients while using other ...
1
vote
2answers
124 views

Some IPv6 hosts send all traffic, even in same subnet, to router

I noticed a routing issue with IPv6 with our LAN. Most of the client PCs are LTSP thin clients. They get one address through SLAAC. Tracepath6 to hosts on the same subnet shows all traffic is direct. ...
1
vote
0answers
40 views

dnsmasq dhcp-range for different access points

Is there a way to configure dnsmasq to hand out IPs from different range to different wireless access points? I have a basic Asus router configured as access point (it does no routing and doesn't run ...
0
votes
1answer
253 views

Enable DHCPv6 in dnsmasq to distribute fixed range IPv6 addresses but failed

Help wanted! I want to create a AP in my Raspbian PI. And i choose dnsmasq as the dhcpv4 and dhcpv6 server. However, my laptop can acquire IPv4 successfully but fail to get a IPv6. Why the dnsmasq ...
0
votes
1answer
168 views

How to automatically add localhost DNS server (dnsmasq) to resolv.conf

I did the steps at https://wiki.archlinux.org/index.php/OpenVPN#DNS to set up DNS with OpenVPN so that anytime the OpenVPN connects or disconnects, it automatically updates /etc/resolv.conf. The ...
1
vote
0answers
18 views

dnsmasq causes “Bad request syntax”

I need to wildcard localhost for dev purpose and I'm really green on dns and network things. With wildcard localhost I mean that I need to test my python and node.js applications with: localhost.dev, ...
0
votes
0answers
361 views

Setting up softether with dnsmasq on aws server

I am following this guide http://blog.lincoln.hk/blog/2013/05/17/softether-on-vps-using-local-bridge/ to setup softether vpn in bridge mode with dnsmasq on an aws ec2 server. I got this working fine ...
0
votes
1answer
14 views

Is it possible to split a domain using dns Bind9

I have a domain (example.com) that the hosts are split in several different networks/places. Most of these hosts are hosted in our office. What i am trying to do is configure a zone that resolves ...
0
votes
1answer
479 views

dnsmasq on virbr0 (libvirt) and network manager

I want to run dnsmasq on my local machine in order to configure a wildcard to resolve to 127.0.0.1 for testing purposes. However, when I went to start dnsmasq with systemd I got the following error ...
2
votes
1answer
55 views

Dnsmasq being used as server's DNS server when it shouldn't be

I have the box's DNS nameserver hardcoded in /etc/network/interfaces with dns-nameservers 8.8.8.8 (I just have to google DNS during testing, using another DNS live.) And then I have dnsmasq ...
0
votes
1answer
253 views

Nova network DHCP not releasing ip with force_dhcp_release=True

The problem I am seeing is that when nova-network calls dhcprelease upon instance termination (due to forcedhcp_release=True) the address is not always released(syslog are not showing DHCPRELEASE ...
1
vote
0answers
497 views

dnsmasq doesn't automatically reload when entry is added to /etc/hosts

I am struggling for a few days to configure dnsmasq to automatically reload or take into knowledge the new hosts added to /etc/hosts or to another configured file /etc/hosts.dnsmasq. Is this even ...
3
votes
1answer
213 views

dnsmasq returns (false) “bogus” result for DNSSEC validation

I'm running a local Debian 8.1 installation with a DNSSEC-validating DNS-Resolver called dnsmasq (version 2.72-3+deb8u1). I set it up to return a SERVFAIL if it isn't able to validate a DNSSEC-...
0
votes
0answers
58 views

How to enforce dnsmasq to use internal dns for apex domain

We host example.com at Amazon and use Route 53 which works well outside VPN. From inside VPN we need to access to multiple internal subdomains, such as test.example.com, dev.example.com etc. which ...
0
votes
0answers
65 views

dnsmasq classless reverse forwarding

I'm currently using a dnsmasq as DNS forwarder for a handful of classless zones and the A record forward is working fine. But I now do have some trouble with the PTR query forwarding, since I don't ...
1
vote
1answer
136 views

Forward dns request to another dns server

How can I forward configure my local dnsmasq so requests with hostnames ending with .docker are forwarded to another nameserver, while other requests are still handled locally ? I have looked for an /...
0
votes
0answers
90 views

Why Windows not get DHCP properly?

I have a VM that installs Windows Server 2008 R2 Enterprise. It configures both DHCPv4 and DHCPv6 clients. The VM locates on an isolated network, where a dnsmasq offers both DHCPv4 and DHCPv6 servers....
0
votes
0answers
24 views

dnsmasq, dynamically add addresses?

Is it possible, with dnsmasq, to dynamically add/remove addresses ? For instance, executing a script from php (it's maybe bad, but theorically, is it possible ?) to add: address=/altern.org/100.2.3.4 ...
0
votes
1answer
98 views

Dnsmasq , redirect all but google.com

My router uses dnsmasq. In my dnsmasq.conf, I write: address=/#/127.0.0.1 in order to resolv any domain to my local server. It works. Now I'd like to make possible to join www.google.com. Any other ...
0
votes
1answer
2k views

Using dnsmasq to service multiple subnets

I'm pretty new to using dnsmasq, and I would like to keep utilizing it in my lab environment. However, being new, I am unsure what commands/files to use. I've spent two days doing research and ...
0
votes
1answer
125 views

Assigning different IP from range on dnsmasq DHCP server

I have an installed dnsmasq DHCP server. I want to assign different IP address from defined range. For instance my IP range is 10.11.12.10 - 10.11.12.50 but I want to assign different IP (192.168.1.15)...
1
vote
0answers
93 views

Ubuntu 12.04 Router Firewall TTFB Delay

I use Ubuntu Server as my router/firewall for my network for a number of reasons. Until recently, I was using 10.04 with great success for this purpose. The OS provides DNS lookup and DHCP using ...
4
votes
2answers
2k views

How long does dnsmasq cache dns?

I looked up the man page and couldn't find how long dnsmasq cache a dns. what's the rule for caching and expiration? I am having a problem that request send to an external service sometimes takes ...
0
votes
1answer
94 views

Linux DNS caching for performance and safety

I am trying to figure out how to do this properly. My servers use search-domain to find the FQDN, so my code can connect using redis as the host, etc. I ran into a problem where the DNS provider for ...
0
votes
1answer
407 views

Linux: nslookup and dig resolve $HOSTNAME, but ping doesn't

In our private network we have a Consul service discovery server (10.241.232.14) that provides a DNS interface (port 8600). We would like to set our common DNS servers to forward some queries to the ...
1
vote
1answer
46 views

DNSMasq Not Respecting Hostfiles [closed]

I have dnsmasq running inside docker under a Fedora 22 Hyper-V guest. I have it configured to read from a directory containing hosts-format files. Yes, I know DNS servers use zones, but dnsmasq ...
0
votes
1answer
4k views

dnsmasq: failed to create listening socket for port 53: Address already in use

I got this error when i done the setup dnsmasq. ashokkrishna@krishna:~$ sudo dnsmasq dnsmasq: failed to create listening socket for port 53: Address already in use ashokkrishna@krishna:~$ netstat -...