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

4
votes
2answers
3k views

OpenVPN: Not all DNS entries get pushed to clients from server. (dnsmasq)

I have been trying to find a solution to this problem, but have found no answer so far, so I hope you guys can help me out. I have a server running Ubuntu 10.04, which has a static IP address and an ...
-2
votes
2answers
53 views

Configure DC & Firewall/ Router such that clients can use Internet even if DC is down?

How do Windows domain clients behave if the DC is offline? Read this and am getting some symptoms. Curious about the answer for this scenario. When my Windows Server 2012 R2 Essentials is down, ...
0
votes
0answers
4 views

DNS issue opewn WRT mwan3

I have a router on which I have installed open WRT and mwan3 to use it as a load balancer. There are two routers which it is connected to for WAN traffic. So there are two wans setup wan and wan2 On ...
0
votes
0answers
17 views

xinetd TFTP remap file & dnsmasq as PXE server

I'm playing with Openstack Ironic for the last few days. I am interested primarily in IPMI+PXE boot. So, in Ironic installation guide I have found the following xinetd tftp map file: re ^(/tftpboot/) ...
0
votes
0answers
27 views

Resolve a domain name to CNAME alias locally using dnsmasq

I'd like to resolve a domain name somedomain.com to a CNAME (AWS load balancer, e.g. some-balancer-1213231237.ap-southeast-2.elb.amazonaws.com), but only locally. What I mean to achieve is that ...
1
vote
1answer
2k views

Spacewalk, Kickstart, Cobbler, PXE, Dnsmasq

I have installed a Spacewalk server. One of the final features I am trying to configure is Kickstart. I cannot seem to find any definitive documentation on how to set this up in a "real environment". ...
0
votes
0answers
17 views

How to forward specific domain queries to different dns server using dnsmasq?

I want that all http requests on the browser be directed to my local apache server but direct some https queries like facebook.com to google's dns 8.8.8.8 using dnsmasq. I've already tried adding an ...
1
vote
0answers
12 views

Get dnsmasq to respond with the local dynamic IP address

We're using dnsmasq on our Macs for local development to send all traffic for *.dev to 127.0.0.1. We're working on moving to Docker for local dev, but still need to support running MySQL on the Macs ...
2
votes
1answer
1k views

Set gateway per interface in DNSMasq

I have dhcp set up using DNSMasq, which looks like this: dhcp-range=interface:eth0,10.1.0.50,10.1.0.250,255.255.255.0 dhcp-range=interface:eth1,10.1.20.50,10.1.20.250,255.255.255.0 What I need to ...
0
votes
1answer
24 views

force dnsmasq to bind an interface for DHCP

I want to use dnsmasq with two configs on two interfaces, which should be bound locally. If you read the manpage, it looks like interface=wlan0 bind-interfaces should do the trick. But it always binds ...
1
vote
1answer
1k views

DNSMasq wildcard top level domain/suffix

I'm running DD-WRT on my router and I need to block certain websites and all their potential suffixes, is that possible or would I have to list them all out individually? What I have is this address=...
0
votes
1answer
20 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
33 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
48 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 ...
0
votes
1answer
291 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 ...
1
vote
2answers
117 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: ...
1
vote
0answers
33 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
78 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 ...
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 -...
0
votes
0answers
91 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
40 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 ...
1
vote
1answer
1k views

Get OpenVPN clients names to resolve through dnsmasq

I have a PFSense box running as an OpenVPN server. There are several remote devices that connect through the VPN (as tap devices). The VPN stuff is working, I can access the remote hardware by ...
0
votes
1answer
42 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
77 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 ...
0
votes
3answers
3k views

Dnsmasq on Tomato firmware won't reply from simple name address

I want to be able to access computer 192.168.0.3 from the simple name "pos". Not "pos.com" or anything. With my setup below I can ping dev.pos, just not pos. I have to ping mydomain.pos to get a ...
2
votes
0answers
34 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
113 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
83 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
67 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 ...
1
vote
2answers
128 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\....
-2
votes
1answer
511 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 ...
-1
votes
1answer
131 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
14 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 ...
0
votes
0answers
89 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 ...
5
votes
4answers
1k views

Don't automatically include all subdomains in DNSMasq address

It is possible to configure DNSMasq such that it returns a fixed IP address only for a request for that exact domain, and not for its subdomains? That is, I want it to return a fixed IP when resolving ...
0
votes
1answer
204 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 ...
0
votes
1answer
104 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

dnsmasq(as DHCP server) isn't working in KVM+libvirt envirmont

I'm using dnsmasq as DHCP server in VM environment. But It didn't working. I disabled basic DHCP feature in libvirt. <network> <name>default</name> <uuid>84da0678-e56d-...
1
vote
2answers
135 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. ...
4
votes
2answers
12k views

dig & nslookup can't resolve local hosts unless I specify the (local) DNS server to use

I am setting up a small private network within my University network. I have a Centos 6 box (sun) sitting between my private network and the university WAN. eth0 on the sun is connected to the WAN and ...
1
vote
0answers
45 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 ...
3
votes
1answer
233 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
1answer
178 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
1answer
276 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 ...
0
votes
0answers
392 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 ...
1
vote
2answers
135 views

Specify destination DNS server based on subnet

Our office subnet is 10.1.10.0/24. I have a gateway (10.1.10.1) that is forwarding DNS requests to a server running DNSmasq (10.1.10.2). I have an IPsec tunnel to our Parent Company's network (10.2....