Skip to main content

Questions tagged [dnsmasq]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

Debian NAT Gateway with dnsmasq DHCP, reachable via internal IP

I have setup a Debian 12 machine as an IPv4 NAT Gateway / Router by following the various tutorials on the internet (mostly following arch wiki) and tried to do it the most modern way possible. I use ...
kingspride's user avatar
0 votes
1 answer
31 views

How do I revert to default address in dnsmasq if the override addresses fail?

for example, if I have something like address=/steamcontent.com/192.168.0.225 which redirects to my server (192.168.0.225), how do I make it go back to steamcontent.com if my server goes down? ...
Pickle Tickle's user avatar
0 votes
1 answer
52 views

How to set a local custom domain name without a top level domain with dnsmasq?

Currently I'm following https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-domains-with-dnsmasq on my router. I've created a dnsmasq.conf.add file with address=/g/192.168.0.96 in it. I can access ...
Pickle Tickle's user avatar
0 votes
0 answers
117 views

Resolve different subdomains for different subnets with dnsmasq

I have a dnsmasq server with DHCP and DNS enabled. It serves multiple subnets. My goal is to dynamically register connected machines from different subnets on different subdomains. All of my subnets ...
Bnr's user avatar
  • 11
0 votes
1 answer
693 views

Set up dnsmasq as a DHCP Proxy for UEFI HTTP(S) boot

Can I set up dnsmasq as a DHCP Proxy for UEFI HTTP(S) boot? It appears hard to impossible, as dnsmasq only seems to support being a proxy for the older TFTP-based PXE Boot, and I don't want to send ...
MikeBeaton's user avatar
0 votes
1 answer
243 views

How to allow a domain and block all subdomains in dnsmasq?

In my dnsmasq.conf file, I have either one of two sets of rules: Set 1: no-resolv server=8.8.8.8 server=/firebaseio.com/# address=/*.firebaseio.com/ Set 2: no-resolv server=8.8.8.8 server=/...
ellat's user avatar
  • 5
0 votes
1 answer
36 views

Is there anyway to include an external rules file other than hosts in dnsmasq.conf?

In my dnsmasq.conf, I include thousands of rules, e.g. address=/example.net/ I know that it is possible to include an external hosts file using the line addn-hosts=/etc/hosts But is there a way to ...
ellat's user avatar
  • 5
0 votes
0 answers
66 views

What is the maximum size of entries I can have in dnsmasq.conf

What is the maximum size of entries, e.g. server=/allow.com/# and address=/block.com/# can I have in my dnsguardian config file /etc/dnsmasq.conf? I already have hundreds inside. I would like to ...
ellat's user avatar
  • 5
0 votes
1 answer
42 views

DNS lookups using dnsmasq on a different network

I have a local network with a server running dnsmasq that acts as both a DHCP and DNS server. Let's call this network A. This is all working very well. I have it set up to not have a domain, so I can ...
Eric Sokolowsky's user avatar
0 votes
2 answers
205 views

Difference between modifying /etc/hosts vs using dnsmasq service

After reading the man pages of dnsmasq it seems either way it checks /etc/hosts so what exactly is the difference between adding IP: domain names in /etc/hosts and doing the same plus run dnsmasq on ...
CupOfGreenTea's user avatar
2 votes
2 answers
948 views

dnsmasq reads addn-hosts config but ignores it, falls back to system's /etc/hosts

I'm running dnsmasq installed as a NetworkManager plugin on my local Fedora 39 machine. All I need from dnsmasq is basically support for additional hosts files that I can organise by topics. My ...
vrs's user avatar
  • 143
2 votes
1 answer
501 views

How to configure DHCP relay when NAT is also used?

I have a multi-homed application server that serves multiple networks that are not connected with each other (other than being all connected to the server, each one on its dedicated network interface)....
raj's user avatar
  • 512
0 votes
0 answers
84 views

How to exclude dnsmasq used by libvirt from Mullvad VPN's "local network sharing" block

I don't use the local network except dnsmasq for libvirt. With blocking local network I have no DNS on my VM. For that reason I want to exclude dnsmasq from the local network sharing block with split ...
clooney's user avatar
0 votes
0 answers
42 views

Meaning of "Flags" column in dnsmasq log output

I sent a SIGUSR1 signal to the dnsmasq process to make it write statistics to the system log. Here's an excerpt of what dnsmasq wrote to the system log: daemon.info dnsmasq[1]: Host ...
Flux's user avatar
  • 115
1 vote
0 answers
314 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
0 votes
0 answers
361 views

DNSMasq server returns no answer section when queried with dig

I am trying to get dnsmasq working in CentOS 7 using the tutorial https://linuxhint.com/configure_dnsmasq_centos/ here are the relevant config files /etc/dnsmasq.conf port=5353 domain-needed bogus-...
xbuccaneer's user avatar
0 votes
0 answers
36 views

Do Zabbix docker containers rely on dnsmasq in host?

In Subspace docker installation instructions they tell me to remove the dnsmasq package "because it will run inside the (Subspace) container" . On the same machine I want to run a Zabbix ...
ñull's user avatar
  • 121
0 votes
0 answers
92 views

How to stop bind to do a separate CNAME query again?

I have a local DNS server like the following: client -> bind (only handle local names) -> dnsmasq (handle other names) This problem is when a name is a CNAME, dnsmasq return both CNAME and IPs, ...
Hoping White's user avatar
0 votes
2 answers
124 views

Unable to poison DNS with `dnsmasq`

In my Tomato router, I added address=/example.com/192.168.1.200 to my dnsmasq.conf so that https://example.com in my browser works even if the internet is down. After adding it, ping example.com would ...
bilogic's user avatar
  • 154
0 votes
1 answer
50 views

Issue with Bind9 and wildcards

I set up both bind9 and DNSMASQ servers to forward public-ubiservices.ubi.com to my IP address, but client kept failing to connect to it, I checked bind9 logs and found out the client is trying to ...
elifes's user avatar
  • 1
0 votes
1 answer
80 views

Change DHCP range and tcpip connections

I want to change the dynamic range of my DHCP server for a network e.g. it is at the moment from 192.168.0.2 to 192.168.0.100 I want to move it from 192.168.0.101 to 192.168.0.200 but I don't want to ...
AAB's user avatar
  • 13
0 votes
1 answer
372 views

How to allow subdomain in dnsmasq

In my dnsmasq.conf file, I use the following rule o block all domains ending with .be: address=/be/ But I would like to have an exception for youtu.be. How can I do this?
ellat's user avatar
  • 5
0 votes
0 answers
237 views

Error DNS over HTTPS Setup "Unable to Find the DNS Parameter"

I am having problems finding a guide that provides what I need to setup DoH on a self-hosted server. In the end, my final error is "Unable to find the DNS parameter" when using POWERDNS ...
user2569708's user avatar
2 votes
1 answer
441 views

DNS Proxy/cache that query multiple DNS, ignore NXDOMAIN

The question is as follow: how can I set up a DNS proxy/cache that queries in a strict order a series of DNS servers (of which some might be unavailable), and that does not stop on the first NXDOMAIN ...
Tiller's user avatar
  • 123
0 votes
0 answers
256 views

How to troubleshoot PXE boot from DD-WRT dnsmasq not sending tftp server info?

I have a MikroTik hEXs router (firmware v6.47.1) which I want to flash with OpenWRT. The OpenWRT wiki site has detailed instructions on the procedure, and it requires that one netboot the router. My ...
PattMauler's user avatar
0 votes
1 answer
267 views

Is it possible to add ip address to dnsmasq.conf instead of url

I'm very novice on this so please answer if you can. Is it possible to add ip address instead of url/domain to dnsmasq.conf file Here is an example of what I tried. bind-dynamic bogus-priv domain-...
Simon's user avatar
  • 101
0 votes
1 answer
883 views

dnsmasq on ubuntu 22.04.: listen-address ignored

Currently 2.86-1.1ubuntu0.3 is running on ubuntu 22.04. I used listen-address=127.0.0.1 listen-address=[public-ip-1] listen-address=[public-ip-2] port=53 But dnsmasq binds on all IPs: netstat -tulpn |...
Thilo Schwarz's user avatar
0 votes
1 answer
1k 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
601 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
0 votes
1 answer
1k views

Dnsmasq forward refused to other Dnsmasq in Docker container

Given two DNS servers, one runs on localhost (127.0.0.1:53) and the other in a Docker container (172.18.0.3:5300). When I tried to check domain resolve through at localhost DNS with dig or nslookup ...
adampweb's user avatar
  • 121
2 votes
2 answers
416 views

Setting up PXE server in an school environment

I am starting the research phase of setting up a PXE server to cover a Junior High School campus but have never done so and have a few questions that pertain to our School District networking setup ...
user21442189's user avatar
0 votes
0 answers
905 views

dnsmasq not resolving hosts properly

Using DD-WRT, dnsmasq seems to be failing to correctly resolve hosts, and I can not understand why. root@gcs:~# cat /etc/resolv.conf nameserver 192.168.1.1 root@gcs:~# cat /tmp/dnsmasq.conf ... dhcp-...
Matt Clark's user avatar
1 vote
0 answers
346 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 votes
1 answer
270 views

Access Internal IP by Sub-domains

I'm trying to access applications with internal IPs via subdomains from outside. From my research, when it comes to http running apache, it seems feasible with a DNS server inside. How to point sub-...
Seandex's user avatar
  • 99
0 votes
1 answer
70 views

OpenVPN clients' DNS, unwanted ip routes added by dhclient

I've set up an OpenVPN gateway that provides access to a large cloud of IoT devices. Each device has a unique certificate, and upon connection, I grab the "common name" from the cert to ...
Richard Krehbiel's user avatar
0 votes
1 answer
943 views

How to resolve DNS using Network Manager?

I am using Network Manager(nmcli) to establish network connection to a Linux based embedded device. But the client application is having issues connecting to aws backend. In the /etc/NetworkManager/...
Preeti 's user avatar
  • 101
0 votes
1 answer
1k views

Securing DNS: Is combining Unbound with DNSMASQ and DNSCrypt Proxy necessary or beneficial on a Debian 11 system?

I've recently taking an intrest in DNS security and have opted to use the "dnsrypt-proxy", "dnsmasq" and "unbound" packages on my Debian 11 system chained together in the ...
Lil Cyanide's user avatar
1 vote
1 answer
126 views

Ethernet connection disables WIFI

Our company makes a 3d printer built around a Jetson Nano. The printer connects to the internet using a wifi dongle, but for the initial setup the user must connect to the printer using an ethernet ...
Peter Davis's user avatar
1 vote
1 answer
6k views

How to disable /etc/hosts from resetting after reboot

Using Ubuntu 20.04 LTS on a Raspberry Pi and trying to setup a DNS and DCHP Server on it using DNSMasq Got to the point where I want to add static DNS results in the /etc/hosts file however when I ...
jacoboneill2000's user avatar
1 vote
0 answers
625 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
0 votes
1 answer
183 views

Variable ip needed in address field of dnsmasq.conf

I have 2 ethernet interfaces eth0 and eth1 which are connected to 2 access points. my dnsmas.conf dhcp-range=interface:eth0,192.168.190.5,192.168.190.200,255.255.255.0,24h dhcp-range=interface:eth1,...
krishna's user avatar
-1 votes
1 answer
207 views

Chaining DNS Servers, looking for the single positive answer and ignoring the negative ones

I have a situation where I need to use 4 DNS servers + 1 external server(ISP or 8.8.8.8). While the normal DNS client is only considering the first answer from the DNS Servers whatever that is an IP ...
USER_RANDOM_010101NR'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
  • 45.5k
1 vote
0 answers
145 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
0 votes
0 answers
166 views

Routing between 2 networks on Linux

My system topology: On an ubuntu machine with 2 ethernet ports (eth0, eth1) i have connected another ubuntu machine as client and an OCRCamera (also client). the requirement is that the main ubuntu ...
Yves Halimi's user avatar
0 votes
2 answers
5k views

dnsmasq - failed to bind DHCP server socket: Address already in use - DHCP proxy

I have some issue with dnsmasq. I'm trying to use the existing dhcp that is provide by my router to create a pxe server but dnsmasq give me an errror. /etc/dnsmasq.conf : port=0 log-dhcp dhcp-range=...
Stickman's user avatar
0 votes
1 answer
1k views

dnsmasq: Change DHCP range based on group of MAC address

Is it possible to change the DHCP range dnsmasq gives out based on the MAC address block. For example, I want all MACs in the block 00:0C:29 to have a different DHCP range compared to every device on ...
foxtdev's user avatar
0 votes
1 answer
33 views

Can I install dnsmasq on lamp web server?

Is it possible to install and run dnsmasq on a shared host webserver (standard lamp stack)? And how would one do this? I use Siteground and Dreamhost. I think I can run a lamp stack on my NAS too ...
AutoBaker's user avatar
  • 188
3 votes
2 answers
1k views

DNS problems on pool of preemptible-only nodes on GKE: endpoints of kube-dns service keeps failed pods

I do have a GKE k8s cluster (k8s 1.22) that consists of preemptible nodes only, which includes critical services like kube-dns. It's a dev machine which can tolerate some broken minutes a day. Every ...
lena_punkt's user avatar
0 votes
1 answer
944 views

How to dynamically resolve domains?

I've got a zone .default.svc.cluster.local with a separate server for it, but I don't want to type all that. Instead, I want to type XXX.localhost to get to the XXX.default.svc.cluster.local. I've ...
akond's user avatar
  • 111

1
2 3 4 5
9