Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
17 views

How to dynamically update dnsmasq with openvpn clients

I have openvpn working, and I can ping via hostnames if they are in the dnsmasq hostfile, but currently I put them in the hostfile with a learn-address script. The problem is that this script only ...
user avatar
0 votes
1 answer
79 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=...
user avatar
0 votes
0 answers
13 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 ...
user avatar
-1 votes
0 answers
57 views

OpenWrt: Local Domain overridden by public DNS

I have made a weird observation regarding my local domain resolution using my OpenWrt router. My goal was to avoid needing a public DNS lookup, when going to my server in my home network, meaning www....
user avatar
  • 1
0 votes
1 answer
16 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 ...
user avatar
  • 178
0 votes
0 answers
27 views

DNSmasq: Assign address names to dhcp range

I'm currently assigning static host records in dnsmasq like this: host-record=test.example.com,192.168.1.1 dhcp-host=56:54:53:52:51:03,192.168.1.1,8h However i'd like to give my dynamically assigned ...
user avatar
1 vote
2 answers
213 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 ...
user avatar
0 votes
0 answers
28 views

dnsmasq as dhcp server using wrong src ip

I'm running dnsmasq as a DHCP server on an interface that has multiple IP addresses. The problem is that dnsmasq is not using its server IP (10.13.7.33) as the src IP in its replies but instead ...
user avatar
  • 778
0 votes
1 answer
33 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 ...
user avatar
  • 111
0 votes
0 answers
155 views

DNSMASQ DHCP with Multiple VLANS --- How to identify the originating VLAN?

I'm curious as to what best practice would be when serving DHCP to multiple VLANs from a single DNSMASQ instance. (The DNSMASQ server is a KVM guest.) Do I: A: Create a virtual NIC on the DNSMASQ ...
user avatar
0 votes
0 answers
102 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 ...
user avatar
  • 101
0 votes
1 answer
27 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 ...
user avatar
  • 101
0 votes
1 answer
32 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?
user avatar
0 votes
0 answers
298 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-...
user avatar
  • 101
0 votes
1 answer
2k 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) ...
user avatar
  • 185
0 votes
1 answer
77 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 ...
user avatar
0 votes
1 answer
2k 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). ...
user avatar
  • 101
1 vote
0 answers
86 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=...
user avatar
  • 111
0 votes
2 answers
150 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 ...
user avatar
  • 101
0 votes
2 answers
323 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 ...
user avatar
  • 361
0 votes
0 answers
17 views

on hotspot running openvpn how to share obtained dhcp-option DNS?

There is linux box being a hotspot for number of devices. It also runs openvpn client which is supposed to be shared with connected hotspot clients. Openvpn receives PUSH_REPLY dhcp-option DNS x.x.x.x ...
user avatar
  • 121
1 vote
1 answer
347 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 ...
user avatar
1 vote
1 answer
213 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 ...
user avatar
-1 votes
1 answer
157 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 ...
user avatar
0 votes
0 answers
24 views

Clients couldn't query DNS server listening on router interface's secondary IP

I have a router where its interface has two IPs $ ip addr br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000 link/ether <MA> brd ff:ff:ff:ff:ff:ff ...
user avatar
  • 167
0 votes
1 answer
44 views

Is it possible to merge host names on two Dnsmasq instances?

I have a router and a dump AP that are connected with a wire. The router has two interfaces, one is for LAN (192.168.1.1/24) and the other for WAN. The AP also has two interfaces, one is for LAN (192....
user avatar
  • 167
0 votes
0 answers
48 views

How do I run dnsmasq and samba ad dc on the same server?

I am able to run dnsmasq with no issues but only when I don't have samba (ad dc) running. With dnsmasq running I am able to resolve both internal and external hostnames within my network. However, ...
user avatar
-1 votes
1 answer
238 views

IPv6 dnsmasq dig refused

I'm trying to enable both IPv4 and IPv6 stack on SUSE 15 environment. I've assigned both IPv4 and IPv6 addresses to the same interface using /opt/vmware/share/vami/vami_set_network. Both IPv4 and IPv6 ...
user avatar
1 vote
1 answer
196 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, ...
user avatar
  • 111
0 votes
0 answers
131 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:/...
user avatar
0 votes
1 answer
45 views

Do nodes in a single-switch ethernet network governed by dnsmasq communicate directly, or via the router?

Variations on this question exist, but I cannot be certain my exact situation has been asked. I am setting up a simple ethernet network that looks like this: On Node 0 ("rpi1") I am running ...
user avatar
  • 113
0 votes
1 answer
440 views

Use dnsmasq as DNS for OpenVPN

So to the best of my understanding, I have all the pieces, namely, DNSmasq and OpenVPN working fine, although independently. What I've done? Installed OpenVPN using this: https://github.com/Nyr/...
user avatar
  • 53
0 votes
0 answers
117 views

Local network domain resolution times out with DNSMasq, but works fine remotely

For some reason, I can't get this to reliably work the way I want it, across both Linux and Windows, and even across different machines running the same OS. Let's assume I have a local machine running ...
user avatar
  • 11
0 votes
0 answers
251 views

pihole won't start: failed to create listening socket for port 53: Permission denied

Pi hole was working fine on CentOS 7 until I used pihole -up Now it fails with failed to create listening socket for port 53: Permission denied Pi-hole version is v5.3.1 (Latest: v5.3.1) AdminLTE ...
user avatar
  • 209
0 votes
1 answer
106 views

Force host to use alternate DNS servers on unresolvable queries with dnsmasq

So here is the situation. I have an IOT device running a Digital Signage system. I am trying to set it up so that it hosts it's own WIFI network and a user can connect to that WIFI, enter an http ...
user avatar
1 vote
0 answers
294 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 ...
user avatar
1 vote
1 answer
266 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 ...
user avatar
  • 496
0 votes
0 answers
35 views

Dnsmasq to resolve its own host name to one of its own ipaddr

On a multihome system how to configure Dnsmasq so it resolves its own host name to its own ip address, preferably choosing the right address depending on the requestor address? I see the option --...
user avatar
  • 538
1 vote
0 answers
832 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-...
user avatar
  • 11
0 votes
1 answer
592 views

Using DNSMasq, how do I provide a single static route for an IPv6 network?

Assuming I am running two Dual stack IPv4/IPv6 networks: Network 1: Internet connected IPv4 - 192.0.2.0/24 provides a default route via 192.0.2.1 IPv6 - 2001:db8::0/64 provides a default route via ...
user avatar
0 votes
0 answers
27 views

dnsmasq config file, folding long lines possible?

Is there an escape character, or any other way, to fold long dnsmasq.conf lines for better readability? Eventually also adding comments on the lines? For example, I have a dhcp-option line (option 121,...
user avatar
0 votes
1 answer
137 views

Linux: How to setup dns server via dnsmasq and connect a second machine with it?

Setup: I have two vms running: prime and second. On the prime dnsmasq is installed. What I need to accomplish: Setting a second(machine) so it connects and looks for domain names on the dns server. (...
user avatar
0 votes
1 answer
312 views

Does dnsmasq honor no-resolv when resolv-file is specified?

Do these dnsmasq options conflict? The router wants to write resolv-file to the config, but allows me to append no-resolv. Will dnsmasq agree to ignore resolv-file in this case? resolv-file=/tmp/...
user avatar
  • 2,339
1 vote
0 answers
137 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 ...
user avatar
-4 votes
1 answer
913 views

How to disable dnsmasq cache [closed]

I just want to disable the caching functionality, I do not need it and it only creates bad behavior in my environment. Not interested in any other solution, if you do not know, do not comment.
user avatar
0 votes
1 answer
1k views

Resolving Domain Name to Private IP AND Public IP Simultaneously [closed]

Background (Skip if not interested) I have a dev server running in my local network. I can reach it easily by private IP (192.168.2.4). I have my firewall ports open on the server for :80 so I can ...
user avatar
  • 133
0 votes
1 answer
430 views

UEFI-based laptops not displaying the iPXE boot menu

UEFI-based laptops not displaying the iPXE boot menu I'm testing iPXE to replace the old PXE solution. For my test environment, I'm using CentOS 8 with iPXE, Dnsmasq and Apache installed from the ...
user avatar
  • 1
1 vote
0 answers
120 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 ...
user avatar
  • 11
3 votes
0 answers
234 views

Q: Configuring dnsmasq to filter A or AAAA queries

Can I configure dnsmasq to respond to either ipv4(A) or ipv6(AAAA) queries only? I am using dnsmasq to forward queries from an internal subnet to a WAN connection. Unfortunately, sometimes I will only ...
user avatar
0 votes
1 answer
322 views

Is there a DNS cache that can automatically re-resolve its cache around the TTL timeout?

This is for a server setup with a wobbly upstream DNS for company internal server names. Sometimes, when an entry has fallen from the cache due to TTL, and our system tries to resolve it, the upstream ...
user avatar

1
2 3 4 5
8