Questions tagged [dnsmasq]

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

146 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
7k views

Remove libvirt's dhcp lease entry using virsh

Using: $ virsh version Compiled against library: libvirt 1.3.1 Using library: libvirt 1.3.1 Using API: QEMU 1.3.1 Running hypervisor: QEMU 2.5.0 $ $ $ lsb_release -a No LSB modules are available....
Amir Keibi's user avatar
3 votes
0 answers
2k views

dnsmasq: How to set alias domain / multiple DNS suffixes for local hostname resolution?

Is it possible to set multiple search domains via dnsmasq/DHCP? Due to some migration, I need multiple clients to be able to: ping server.old-domain ping server.new-domain # both should work, .old-...
ramo's user avatar
  • 31
3 votes
0 answers
4k views

Dnsmasq unable to resolve local host

I'm unable to get my local DNS server to work and totally stumped. Here's what I have done so far to make it work... Dnsmasq configured on Ubuntu 18.04 ( Static IP: 192.168.1.100) /etc/resolv.conf ...
Geary's user avatar
  • 41
3 votes
0 answers
456 views

dnsmasq: return default IP address if address cannot be resolved

dnsmasq allows to return an IP address for all DNS request: address=/#/192.168.1.1 This will overwrite all requests. But is there a way to return this address only if a query could not be ...
user497004's user avatar
3 votes
0 answers
669 views

dnsmasq and lxc with wildcard DNS subdomains

I'm using LXC to create a new containers. All of them are using dnsmasq with DHCP to get their IP address and to have local DNS server. I setup a domain .lxc in dnsmasq. So every container will get ...
martin.malek's user avatar
3 votes
0 answers
2k views

How to config libvirt network setting about disabling dnsmasq "except-interface=lo"?

Here is the thing. My VMs run with libvirt and use default network libvirt-provide, and I've mad each VM registers its hostname to dnsmasq set by libvirt. so I want to look up its hostname for ...
Chen OT's user avatar
  • 131
2 votes
1 answer
910 views

Wildcard CNAME record specified by libvirts dnsmasq:options namespace doesn't work, only specific subdomains works

Since v5.6.0, libvirt added a dnsmasq namespace with the element, which allows to specify options directly to the underlying dnsmasq server. I'd like to create a wildcard DNS entry for my applications ...
Lion's user avatar
  • 508
2 votes
0 answers
3k views

dnsmasq dhcp ignoring dhcp-host definitions

I am currently puzzled by the dnsmasq configuration, and I hope someone here can help me... I've setup successfully the DHCP-Server with dnsmasq, and I've tried to include some static Host ...
Martin's user avatar
  • 2,374
2 votes
0 answers
3k views

Dynamic DNS (DDNS) updates from dnsmasq for use with bind9

Previously I ran dnsmasq on an OpenWRT to provide DNS and DHCP functionality, because this is, what it is intended for. I want to offload the DNS part to an already configured bind9 (running on Ubuntu)...
zeus's user avatar
  • 21
2 votes
0 answers
2k views

Cannot resolve some domains with dnsmasq

My machine runs ArchLinux, with NetworkManager and dnsmasq. Dnsmasq should forward all requests to Google's DNS 8.8.8.8, and therefore should simply act as a local cache in front of Google's DNS. For ...
user168317's user avatar
2 votes
0 answers
1k views

Send a negative response to any AAAA DNS lookups

Neither my local networking equipment neither my ISP support IPv6. While some applications support restriction of DNS lookups to IPv4 addresses some others don't so these applications end up waiting ...
tur11ng's user avatar
  • 121
2 votes
0 answers
905 views

AWS AmazonProvidedDNS appears to not respecting TTL - can we do anything?

We have several servers on AWS EC2 that are not obeying TTL values from DNS. Route tables are set up to us "AmazonProvidedDNS" It appears the the "AmazonProvidedDNS" limits TTL to 60 seconds. Q: Is ...
Robbie's user avatar
  • 289
2 votes
0 answers
772 views

dnsmasq not caching for non-public dns servers

I tried to configure my dnsmasq to forward requests to different dns servers depending on the domain. server=/a.example.org/192.168.a.a server=/b.example.org/b.b.b.b server=/c.example.org/8.8....
greyjedi's user avatar
2 votes
0 answers
1k views

Android not detecting captive portal on access point

I have an access point hosting a login page (which doesn't have actual internet access) and I'm using dnsmasq to answer all DNS requests with the IP address of this page. If an android device connects,...
Awais Chishti's user avatar
2 votes
0 answers
562 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 ...
DurkD's user avatar
  • 21
2 votes
1 answer
2k views

Prevent postfix appending search domain

I have postfix running on OpenBSD, and I'm having trouble with it appending a search domain when none is configured in either postfix or the local DNS server (dnsmasq). My domain has a wildcard CNAME ...
Synchro's user avatar
  • 3,210
2 votes
0 answers
259 views

How to configure servers on LAN to emulate no-ip.com functionality with dnsmasq and apache wildcard subdomains?

I have a multi workstation LAN with Apache2 serving a website at 10.0.0.3:80 and running on Ubuntu Linux. This LAN is segmented from another LAN via a router, from which all machines on this LAN ...
Aeon's user avatar
  • 21
2 votes
1 answer
2k 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 ...
Fake Name's user avatar
  • 587
2 votes
0 answers
848 views

Assign IPv6 addresses to kvm virtual machines using DHCP

I created a bridge using brctl called dhcp_test_br, and bind my new created kvm virtual machine to this bridge. Then I ran dnsmasq: dnsmasq --strict-order --bind-interfaces --interface=dhcp_test_br -...
can.'s user avatar
  • 191
2 votes
0 answers
472 views

How do I make dnsmasq serve IP addresses via IPoIB?

I have a cluster farm that I'm setting up. The nodes (computers in the farm) are connected via ethernet & IP over Infiniband. I'm needing to netboot the nodes and thought dnsmasq would fit well ...
hookenz's user avatar
  • 14.6k
2 votes
1 answer
3k 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". ...
canon's user avatar
  • 55
1 vote
0 answers
255 views

How to use dnsmasq in another docker container as a DNS server?

I need to create a local DNS server just for containers, for whitelist domain addresses. dnsmasq.conf port=53 domain-needed bogus-priv bind-interfaces no-resolv strict-order server=/google.com/8.8.8....
Lucifer's user avatar
  • 11
1 vote
1 answer
961 views

dnsmasq DHCP server not responding

I have connected a HikVision camera to a raspberry pi through two ethernet power line adapters TP-Link TL-PA4010. I have configured the eth0 interface of the raspberry to have a static ip address. In /...
Luke Skywalker's user avatar
1 vote
0 answers
519 views

Forward subdomain to another dns-server with dnsmasq

I have dnsmasq as main dns-server in localnet(192.168.0.14). It's serve local domain 'example'. Also I have another dns-server(bind9 - 192.168.222.67) that serve domain 'virt.example' Here part of ...
cppmm's user avatar
  • 11
1 vote
0 answers
281 views

How to configure dnsmasq per interface nameservers from DHCP leases

I am working on an IoT device that has three network interfaces: Ethernet, WiFi, and LTE. The interfaces provide redundancy and fail-over for network connectivity, and any combination of the ...
timothy.godfrey's user avatar
1 vote
0 answers
590 views

dhcp-relay cannot recieve DHCPOFFER packet from DHCP server in shared network

I'm using the dnsmasq service as a DHCP server. I have a bridged interface per node named br0 that has two ip addresses assigned to it. One is the public IP address and the other one is considered the ...
Mohammadreza Nasrabadi's user avatar
1 vote
0 answers
1k views

dnsmasq, one host on multiple vlans

I have dnsmasq configured to serve static dhcp on two networks; one on the primary interface and one on a vlan attached to the primary interface. The interface config looks like this: 3: enp2s0: <...
larsks's user avatar
  • 44.7k
1 vote
0 answers
128 views

libvirt and dnsmasq does not allow to start Kea DHCP server

I have libvirt installed which instantiates dnsmasq process per each virtual bridge interface, e.g. virbr0, however for some reason I can't start kea-dhcp server on other interfaces in the system, ...
Mark's user avatar
  • 259
1 vote
0 answers
491 views

Why do I get an error when connecting to a tftp server PXE-T00 pxelinux.0 filename too long?

As a DHCP server, I have a Mikrotik configured with options 66 and 67. /ip dhcp-server option add name="option66" code=66 value="s'10.10.14.200'" add name="option67" code=...
Vadim's user avatar
  • 111
1 vote
1 answer
1k views

Container DNS resolutions works only after restarting dnsmasq

[Update] add software versions I have a home server which runs docker and DNS/DHCP for my home network. It's all working quite nicely except for one thing: Containers can't do DNS resolution after ...
flypenguin's user avatar
1 vote
1 answer
724 views

How run a dnsmasq inside QEMU, providing netboot service to other VMs

EDIT: WIP: The core reason for the failures explained below is due to me not bringing up the host TAP interfaces at the right time, if I allow QEMU to handle the creation of the tap devices, ...
Charles's user avatar
  • 111
1 vote
0 answers
2k views

How I can configure my local machine to use a docker hosted dns server alonsside with ant other dns settings for specific domains?

I have the following docker-compose.yml used as php web app local solution: version: "3.1" services: nginx: image: nginx:1.13 volumes: - "./configuration/nginx.conf:/...
Dimitrios Desyllas's user avatar
1 vote
0 answers
936 views

dnsmasq ignores result from IPV4 upstream servers when there is IPV6 upstream server (non reachable) also configured

We have configured dnsmasq for caching dns responses to improve the dns response time. It woks fine until there was only an IPV4 upstream server is configured. In a different environment with IPV4 and ...
Mahudees's user avatar
1 vote
0 answers
479 views

dnsmasq - detect mx-host changes without service restart

I have a mailserver on ubuntu with postfix and dnsmasq. It has a bunch of mx-host records on the /etc/dnsmasq.conf config file. I need to dynamically update (add/remove) these mx-host entries (and the ...
Santosh Ghimire's user avatar
1 vote
0 answers
307 views

DNSMASQ serve different dns results to different subnets

In my network infrastructure I have multiple subnets intended to segregate different types of devices. I would like the ability to serve different DNS responses from different DNS servers based on the ...
dvrhax's user avatar
  • 11
1 vote
0 answers
456 views

Setting up a client to use a local DNS server

I have an Ubuntu Server (20.04) (SERVER) on which I'm running dnsmasq. This machine has a local IP of SERVERADDRESS I have a Macbook Pro (CLIENT) on the same network - and I updated the DNS rules on ...
SimaPro's user avatar
  • 111
1 vote
0 answers
457 views

KVM DNS forwarding not working / reply: REFUSED

I've set up a couple of VMs for development purposes for a project. The setup includes a local CA for the past, current and future project VMs. On the guest if can do dig staging.testing.lan and get ...
Chocobo's user avatar
  • 43
1 vote
1 answer
1k views

lxd: dnsmasq not resolving containers ip anymore

I have Lxd installed on an Arch system (from packages, not snapd), yesterday I rebooted the system after an upgrade and the name resolution of the fake domain .lxd stopped working; dns is provided on ...
Spuria's user avatar
  • 11
1 vote
1 answer
1k views

dnsmasq fails to resolve queries and restart after sleep mode

i'm yet another user trying to unwrap systemd-resolved, NetowrkManager and dnsmasq horror with addition of proprietary vpn that messes with /etc/resolve.conf. I want to have dnsmasq as my only ...
Etki's user avatar
  • 129
1 vote
0 answers
3k views

resolving `address` records in dnsmasq does not work

We set up a dnsmasq to act as a central dns and dhcp service. We configured the following /etc/dnsmasq.conf: conf-dir=/etc/dnsmasq.d/,*.conf port=53 /etc/dnsmasq.d/dnsopt.conf: # do not read resolv....
Christian Meißner's user avatar
1 vote
0 answers
1k views

Route private network traffic through VPN

I use a RaspberryPi as a DHCP and DNS server for my home network as well as a wireguard server to gain remote access to my network. My setup is as follows: 192.168.1.4 - ISP Router 192.168.1.1 - ...
Adrixan's user avatar
  • 11
1 vote
2 answers
3k views

How to serve custom DNS server to DHCPv6 clients in OpenWRT?

How to serve custom dns to dhcp clients in openWrt? explains how to serve custom DNS server for DHCP clients on IPv4. But how to do it for IPv6? I tried adding DNS server's IPv6 address but it doesn'...
Hikari's user avatar
  • 117
1 vote
1 answer
2k views

Docker-compose with VPN and DNS not resolving properly

I made a deal with my son where in, if he built a fully-working, 3 way traffic light in minecraft, I would host him his own minecraft server so he and his friends could play anytime. He upheld his end ...
Christian Bongiorno's user avatar
1 vote
1 answer
3k views

dnsmasq pxe boot not working

Maybe someone can point me into the right direction here I have a dnsmasq DHCP Server in a separate Subnet (10.17.131.42) and another Network that has NO local DHCP Server (10.33.0.0/16) The Switch ...
Daywalker's user avatar
  • 495
1 vote
0 answers
319 views

dnsmasq using separate dhcp server

I've been a happy user of dnsmasq on my SOHO LAN for years, providing both DNS services and dhcp services. However, after switching to AT&T's fiber service, I need to separate responsibility for ...
Mark Olbert's user avatar
1 vote
2 answers
7k views

dnsmasq not forwarding request to nameserver

I'm trying to run two instances of dnsmasq on a raspberry pi, I've gotten quite far. I'm currently trying to get the first dnsmasq server to forward any request it doesn't know the answer to to the ...
Gelunox's user avatar
  • 149
1 vote
0 answers
2k views

dnsmasq: Job for dnsmasq.service failed

I cannot get dnsmasq working after the installation. The installation produces Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details. error message. ...
BentCoder's user avatar
  • 331
1 vote
0 answers
203 views

Using DNSMasq to route hostname traffic to local hostname address

I have a particular setup where a Minishift VM is publishing some URLs accessible locally in a format such as: http://some_app.192.168.64.2.xip.io/ This address is only accessible locally and is the ...
Talisker's user avatar
1 vote
0 answers
329 views

Fedora 26: Docker, NetworkManager, dnsmasq startup order

I am using Docker with Consul. I have configured NetworkManager to use dnsmasq and I configured dnsmasq to listen on the Docker interface docker0. When the machine is booting, dnsmasq cannot find the ...
Thorsten Boock's user avatar
1 vote
0 answers
207 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 ...
Kerry Knopp's user avatar