As of May 31, 2023, we have updated our Code of Conduct.

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

How to have dnsmasq resolve local domains, but also use DHCP-provided name servers?

I'm using Pi Hole on my local network, and in addition to providing DNS service, it's responsible for allocating IPs via DHCP, and clients are provided with its IPs to use for DNS. This all works fine ...
Synchro's user avatar
  • 3,128
0 votes
0 answers
12 views

Dual dnsmasq name resolution

For resilience, I have two dnsmasq instances providing both local DNS and DHCP. DHCP is configured to offer separate IP ranges from each instance. I then add IP reservations to the /etc/dnsmasq.d/99-...
Derek's user avatar
  • 1
0 votes
0 answers
26 views

Arista ceos dnsmasq

I'm using Arista cEOS 4.29.2F and I'm trying to use the dns proxy that this device allow. However, when I do systemctl status dnsmasq on the Arista's bash, its output is: ● dnsmasq.service - SYSV: ...
Aitor Encinas's user avatar
1 vote
1 answer
164 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
0 votes
0 answers
87 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
  • 1
0 votes
1 answer
234 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
153 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
324 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
0 votes
0 answers
26 views

Dnsmasq not resolving local domains with different port number [duplicate]

I have my dnsmasq config setup like: no-resolv address=/domain1.test/127.0.0.1 address=/domain2.test/127.0.0.1 port=53 And my system fails to resolve domain1.test but, domain2.test works fine. The ...
Erdss4's user avatar
  • 135
1 vote
0 answers
115 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
0 votes
0 answers
103 views

How to reset dnsmasq console settings?

I'm running the RaspAP on my Raspberry pi and changed some dnsmasq settings in the terminal. Since then I can't connect to any service running at the raspberry. I want to reset the settings I made but ...
Justin's user avatar
  • 1
0 votes
0 answers
215 views

Assigning single DHCP server for multiple subnets on vlans (dnsmasq.conf)

I have 3 hosts each connect to a different VLAN, the DHCP server is working fine, it gives all hosts dynamic IPs. My issue is when it comes to iptables rules I can't prevent host 2,3 from a specific ...
user995295's user avatar
-1 votes
1 answer
149 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
0 answers
151 views

Adding another TLD to dnsmasq installed with Laravel Valet

I've got Laravel Valet set up on my Mac (Monterey 12.5.1) to run PHP based sites locally on the .test TLD. This all works as expected and everything is fine. I'm trying to set up another fictional TLD ...
Tom Hayes's user avatar
0 votes
0 answers
211 views

How to bypass DNSMASQ traffic redirect (address=/#/10.0.0.1) after Captive Portal Authentication?

I wanted to write a captive portal from scratch using the following: hostapd v2.10 to setup my wlan0 as an AP and eth0 is connected to the internet router. #/etc/hostapd/hostapd.conf ...
s4m0k's user avatar
  • 109
0 votes
1 answer
44 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
0 answers
15 views

Make JVM honor the TTL from a dns reply [duplicate]

I read the many articles that JVM has its own DNS caching and TTL. Like https://stackoverflow.com/questions/1256556/how-to-make-java-honor-the-dns-caching-timeout But is it possible for JVM to honor ...
nimdrak's user avatar
  • 29
0 votes
0 answers
78 views

Dnsmasq - Forward Upstream URL to a different IP

I would like to be able to forward an upstream/existing URL, say example.com to an external IP (like a vps) or other URL. Thanks.
TheAlphaReturns's user avatar
0 votes
1 answer
253 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
0 answers
99 views

How do I configure Dnsmasq or BIND multiple instances so that wildcard * BIND, or # for dnsmasq resolve to different IPs for different subnets?

I want * wildcard for BIND or better # for dnsmasq to resolve to DIFFERENT IP addresses depending on the subnet or interface over which the query came in. Like on interface a, all wildcards are 1.200 ...
Kim K. M's user avatar
0 votes
0 answers
82 views

How to configure Dnsmasq to respond to wildcard with different IP address depending on querying interface

I want Dnsmasq to respond with 1.100 for # if query comes in on iface1 and 1.200 if query comes in on iface2.
Kim K. M's user avatar
0 votes
1 answer
497 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
69 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
0 votes
1 answer
2k 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
0 votes
0 answers
348 views

Resolve DNS through SOCKS Proxy with Proxifier (similar to Firefox)

I am running an openshift cluster in virtual datacenter. The access-point to that cluster is a bastion-vm that I can connect to via SSH. Any other VM is hidden behind the firewall. On the bastion I ...
Victor Van Doom's user avatar
1 vote
0 answers
398 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
82 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
40 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
853 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
  • 43.2k
1 vote
0 answers
69 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
  • 249
0 votes
0 answers
362 views

dnsmasq -- Per-host dhcp-option disablement

I'm doing some firmware-related work and am using a --dhcp-hostsdir setup with dnsmasq to test several devices on my LAN. This was working fine, but I appear to have hit the limits of my dnsmasq-fu ...
BrianTheLion's user avatar
0 votes
0 answers
99 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
1 answer
3k 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
420 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
26 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
  • 178
1 vote
2 answers
699 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
442 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
0 votes
0 answers
423 views

Dnsmasq how to make captive portal pop up

I am trying to implement captive portal with dnsmasq. In dnsmasq config address=/#/10.42.0.1 doesn't work, so I have to use ugly: address=/com/10.42.0.1 address=/uk/10.42.0.1 address=/org/10.42.0.1 ...
user453575457's user avatar
0 votes
1 answer
90 views

How can I implement single letter domains for LAN internet browsing using dnsmasq?

In our LAN I have several services running in multiple hosts, and clients using DHCP with dnsmasq. My goal is that any user can type a single letter (e.g. c) in the browser search bar and get in ...
Sebastian's user avatar
  • 101
0 votes
1 answer
35 views

Does Long DNS TTL matter if you can shut down the server using the old IP?

If we retain the old IP when we transition a website to a new IP, would browsers/ISP servers be smart enough to refresh the DNS record if the server using the old IP is offline?
Zack Light's user avatar
0 votes
0 answers
1k views

dnsmasq DHCP not working, not replying to DHCP requests

I have setup dnsmasq as DHCP server on a CentOS VM, however it is not replying to DHCP requests. What could be the issue? Following is the configuration and tcpdump logs. interface=ens224 listen-...
asm_nerd1's user avatar
  • 101
1 vote
1 answer
5k views

Dnsmasq server does not work when configured as the primary DNS in my router

I have a LAN with IP range 192.168.2.* and the following configuration: There is a router of address 192.168.2.1 There is a MacOS machine of address 192.168.2.11 There is a vagrant (virtual box) ...
cr001's user avatar
  • 195
0 votes
1 answer
219 views

How to blacklist private dns resolution inside docker?

Problem I want to block DNS resolutions that return private range IP addresses. What I've found so far is that to do such thing you need to setup a cache/recursive DNS server. However since I want to ...
itasahobby's user avatar
1 vote
1 answer
7k views

Using dnsmasq in a Docker container for the host and for Docker internal DNS resolution

I'm working on a web project that consists of multiple services. Every service has it's own docker-compose.yml file that declares it's "app" and it's possible dependencies (databases etc). ...
Bram's user avatar
  • 111
1 vote
0 answers
255 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
2 answers
675 views

dnsmasq: serve DHCP on bridge whose IP is out of subnet

I want to use dnsmasq to serve DHCP on a Linux bridge: only one VM is expected to connect to the bridge the VM's MAC is fixed VM should get a static IP via DHCP the bridge itself should not take any ...
fengye87's user avatar
  • 111
0 votes
3 answers
3k views

configure dnsmasq to give out addresses in different ranges

I'd like to give unknown clients an ip address in one range and known clients in another (that is a static one). I tried quite a lot now and don't seem to get it working. All I get is an "no ...
Scheintod's user avatar
  • 381
1 vote
1 answer
882 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
539 views

Setting up dnsmasq as a DNS and DHCP server on a LAN

My routers: Main Router: 192.168.100.1 Second Router: 192.168.101.1 The Main Router is provided by my ISP(a modem/router combo all in one). I don't have control over its settings. Except for ...
Kavish Gour's user avatar
-1 votes
1 answer
664 views

Is it possible to resolve a public domain in local network?

Is it possible to resolve a public domain (ex: http://example.com/ ) in local network ? The local network has a server which hosted a website with domain http://example.com/. The local network is ...
krishna's user avatar

1
2 3 4 5
9