Questions tagged [dnsmasq]

a lightweight server providing DHCP and DNS capabilities

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

Why does systemd-resolvd fail to transparently query its upstream DNS resolver for short hostnames?

I use dnsmasq to provide DHCP service on my LAN. dnsmasq is also providing DNS service. When host foo acquires a an IP address via DHCP, dnsmasq will respond to DNS queries for the name foo by ...
user avatar
  • 1,226
1 vote
0 answers
27 views

hostapd disables and enables interface

My hostapd, after some minutes of execution, it does this: wlan1: INTERFACE-DISABLED wlan1: INTERFACE-ENABLED then, connected clients lose connection and, if i try reconnecting, it wont't connect ...
user avatar
1 vote
0 answers
41 views

My computer resolves itself to 127.0.0.1 instead of its outer ip

I recently installed dnsmasq in two of my machines. The service works all right but the trouble is that when consulted they return only their loopback ip. @Machina ~]$ nslookup continua continua ...
user avatar
1 vote
0 answers
711 views

Pihole warning elaboration: "reducing DNS packet size for nameserver ADDRESS to SAFE_PKTSZ"

Could anyone elaborate a little on this warning? Reading the unbound comment it references, I guess it's some configuration in place for security reasons (?), but I'm not clear on what the tradeoffs ...
user avatar
  • 141
0 votes
1 answer
1k views

dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use

I'm trying to set up dnsmasq on AWS Ubuntu 20.4 by following this link. However, I can't seem to get around the error dnsmasq: failed to create listening socket for port 53: Address already in use I'...
user avatar
  • 101
0 votes
1 answer
53 views

Why /#/ doesnt work in dnsmasq?

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
  • 123
1 vote
2 answers
513 views

libvirt/qemu guest VM sometimes needs several tries for DNS resolution

I'm running libvirt/qemu, with arch host OS and win10 guest OS. For a while I was using the default network configuration, but I started having problems with certain domain names not resolving. I have ...
user avatar
  • 123
0 votes
0 answers
62 views

DNSMasq Retries

Is it possible to configure DNSMasq to retry multiple (configurable) times with configurable delay between each attempts if a DNS lookup with downstream server fails? and be able to see the retries in ...
user avatar
1 vote
1 answer
492 views

How to make dnsmasq work on Alphine(docker)?

On Debian-based Linux, dnsmasq works by replacing the nameservers in /etc/resolv.conf with 127.0.0.1 (referring to "Linux for Wireless Engineers: How to Do DNS Caching with dnsmasq"). But I ...
user avatar
0 votes
1 answer
90 views

dnsmasq doesn't handle default DNS for unqualified names as expected

I'm trying to setup DoH for all hostnames except some local domains that should be resolved by DNS provided by DHCP. It works with fully-qualified names as expected, that is, local names are sent to ...
user avatar
  • 121
0 votes
0 answers
85 views

dnsmasq causing problems on Debian 11 during migration

Server A (Debian 8.2; IPv4: 192.168.155.20) is going to be replaced by server B (Debian 11; IPv4: 192.168.155.50)). Both servers are in the same LAN (192.168.155.0/24). Migration from A to B is step-...
user avatar
  • 21
0 votes
1 answer
135 views

why has dnsmasq started running and taking up 53 so that my unbound can't start

Arch up to date. Through QEMU manager I had recently created a NAT network mapped to my wireless device. The plan is to use the wireless for the VM and the ethernet for the host. Before that the VM ...
user avatar
0 votes
1 answer
37 views

detect if DHCPOFFER has been received

The Linux box with DHCP client does not know beforehand if it is connected to access or trunk port, so it has to determine it somehow. So I'm thinking of the following: have the box send a ...
user avatar
  • 1,409
0 votes
0 answers
10 views

Resolve MXDomain into specific address [dnsmasq]

How to redirect all hosts (A-Record) that doesnt not exists, in specific domain, (and its authoritative dns server return NXDomain) into specific IP address? For example, example.org, www.example.org ...
user avatar
  • 1
1 vote
1 answer
25 views

From which server did i get query response in dnsmasq

I'm running a test machine with dnsmasq in it. Dnsmasq uses dns servers 8.8.8.8 and 4.2.2.1 for testing purposes. I'm not using strict order in config. Is it possible to see which of these configured ...
user avatar
1 vote
1 answer
73 views

Help with dnsmasq pxeproxy while using orbi RBR20 mesh router as DHCP server

I've read a small number of blogs with admins leveraging DNSProxy to respond to DHCP clients with additional options (such as PXE) without having to do any configuration on the primary DHCP server. On ...
user avatar
1 vote
0 answers
356 views

Linux Mint 20.2 DNS not resolving internal hosts

Clean install of Linux Mint Uma (20.2) yesterday. All is well except for local network DNS resolution. I have dnsmasq running on a Pine64 primarily so that I can use Steven Black's block list. It has ...
user avatar
1 vote
1 answer
72 views

name_servers= from resolvconf.conf are not prepended, they're used alone

I enabled rc-manager=resolvconf in NetworkManager.conf and now resolvconf is used to maintain resolv.conf. Currently, I have just one wired connection and my dhcp server returns 2 search domains and 4 ...
user avatar
  • 1,791
0 votes
1 answer
100 views

Why does the DNS server resolv DNS queries only for itself?

I have a problem with my own DNS server, which runs dnsmasq. Here it is /etc/dnsmasq.conf (only un-commented lines): # If you don't want dnsmasq to read /etc/resolv.conf or any other # file, getting ...
user avatar
1 vote
0 answers
63 views

multiple DNS services

On my Fedora system : a simple PC workstation behind a provider box with an extra laptop also on Fedora, I have dnsmasq, avahi-daemon and systemd-resolved which all manage DNS connections. avahi-...
user avatar
  • 907
0 votes
1 answer
82 views

Why does NetworkManager pushes .in-addr.arpa domains to dnsmasq when connecting to a VPN?

I'm trying to setup NetworkManager/dnsmasq combo on an ArchLinux box and connect to a VPN (OpenVPN). It seems to work as expected, except a bunch of weird entries in the log related to dnsmasq, e.g. ...
user avatar
0 votes
0 answers
115 views

dnsmasq container on ARM OMV5

Would like to ask for your help with something i'm working on these days. I'm running Openmediavault 5 on an ODROID HC2 (ARM). It uses systemd-resolve. I use docker containers and access everything ...
user avatar
1 vote
1 answer
360 views

dnsmasq wrongly binds to 0.0.0.0:67 for DHCP while correctly listening on 10.0.0.1:53 for DNS queries

I have two DHCP servers, running on different two interfaces. (Only eth0/10.0.0.1 is using dnsmasq.) According to the manpage, the following options should make it listen on only 10.0.0.1, for both ...
user avatar
  • 579
0 votes
1 answer
468 views

Configure split DNS resolver to always use VPN-internal nameserver for fixed list of domains

What's the most reliable configuration to have a fixed list of internal domains always resolved through an internal nameserver, even if it's unreachable because the VPN is down, while still using the ...
user avatar
  • 5,625
1 vote
0 answers
206 views

PROBLEM with dnsmasq

Hi there I'm having problems with this command... I made the dnsmasq.conf file this way: interface=wlan0mon dhcp-range= 192.168.1.2, 192.168.1.30, 255.255.255.0, 12h dhcp-option=3, 192.168.1.1 dhcp-...
user avatar
  • 11
0 votes
1 answer
95 views

Blocking domain on host, results in blocking domain on guest VM (QEMU/KVM)

Desired Outcome I want to block a.com on a host machine, but allow it on a guest VM. (I would also like to use dnsmasq to re-point domains on the guest machine independently.) Details On a Linux Mint ...
user avatar
  • 109
0 votes
0 answers
41 views

dnsmasq does not resolv dns subdomains that are forwarding to the domain

i have a strange problem with dnsmasq. It does not resolv dns subdomains that are directing to domains. Example: https://t.newsletter.otto.de/r/?id=h494cd19e%2C323e1c29%2C25c7c155&p1=1&p2=...
user avatar
0 votes
0 answers
762 views

Ubuntu 20.04 hotspot connection not resolving DNS for iPhone device

I have a wired connection on Ubuntu 20.04. I create a Hotspot connection. I believe NetworkManager automatically creates the following for my wireless interface: inet 10.42.0.1 netmask 255.255.255.0 ...
user avatar
  • 101
4 votes
1 answer
3k views

UFW blocks DHCP

I am on Debian Buster. I have two network devices in my server. Wifi which is connected to the internet, and a ethernet card which is connected to a small intranet at home. I have installed dnsmasq, ...
user avatar
0 votes
1 answer
20 views

Move service to another partition [closed]

(I am using a Raspberry Pi 3b+) I have the config of the service "dnsmasq" on my /etc-partition. /etc is read-only-mounted, so I need to mount it everytime so the service actually runs (by ...
user avatar
1 vote
1 answer
543 views

How do I set up dnsmasq so a device connected to the router can ssh into a device connected through the desktop?

I was experimenting with some setups to allow my devices to be physically beside each other, and speed up my workflow so I wouldn't need to sit next to my router in the cold part of the house to send ...
user avatar
  • 15
0 votes
1 answer
217 views

Raspberry pi 4 + share wifi to ethernet + pi hole

I want to setup my raspberry pi 4 like this: Raspberry connect to wifi and share network to second router throught ethernet Run pi hole I searched the internet to find out if it was possible to do ...
user avatar
1 vote
1 answer
2k views

How to disable Dnsmasq listening on Port 53, to run a Dnsmasq instance in Docker?

i want to have a dockerized Dnsmasq network-wide DNS-Server-solution on my Debian 10 system. Problem: sudo lsof -i -P -n | grep LIST dnsmasq ... TCP 192.168.122.1:53 (LISTEN) There is already an ...
user avatar
1 vote
0 answers
61 views

Tool to manage and set right domain resolution

This horror story began a week ago when after an update, my Arcolinux install started behaving erratically and some sites (at random) won't open (they would after I left them for a while and tried ...
user avatar
3 votes
0 answers
40 views

Raspberry pi (running Debian) Access Point - Another Pi Crashes It

I have a Pi3b+ hooked up to my router running hostapd, dnsmasq and openvpn running an airvpn config, it is solid as a rock. It has a static IP on wlan0 192.168.4.1 and serves a local IP range, ...
user avatar
  • 31
2 votes
2 answers
7k views

How to correctly disable systemd-resolved on port 53 for avoiding clash with dnsmasq in Ubuntu 20.04…?

I'm trying to use dnsmasq on Ubuntu 20.04 and I get a port clash on port 53 with systemd-resolved. So I've found a few suggestions on solutions, but they seem to be dated or not applicable to my case. ...
user avatar
0 votes
1 answer
912 views

Setting up TXT records in dnsmasq does not work

I want to configure some TXT records in my local dnsmasq which runs on a singleboardcomputer and servers DHCP and DNS in my local network. I use it to make my services that I selfhost at home ...
user avatar
  • 21
1 vote
1 answer
71 views

Should DNS queries for the time servers be encrypted?

When it comes to encrypting DNS queries using dnscrypt-proxy, people also tend to use dnsmasq on their linux machines. The main goal of this setup in the past was to provide cache for DNS queries, but ...
user avatar
0 votes
0 answers
1k views

How to get netplan to set the dns server in /etc/resolv.conf based on info coming from the dhcp server?

I'm setting up a 4 x RPi Cluster with the following simple network topology: All 4 RPi nodes have the latest Ubuntu Server LTS 20.04 OS. rpi1 is my primary/gateway node. I did the following on rpi1: ...
user avatar
  • 482
1 vote
0 answers
40 views

dnsmasq - prevent resolving non-existent hosts

I've installed dnsmasq DNS server on ubuntu instance and added domain name in the configurations. It is working fine except that it is resolving unkown hosts the same way it will do for the domain ...
user avatar
3 votes
1 answer
3k views

How to force libvirt to use the host dnsmasq service?

Libvirt has one defined network, which uses dnsmasq as DHCP/DNS server. But this dnsmasq is a separate instance (config in /var/lib/libvirt/dnsmasq/default.conf), which creates additional dnsmasq ...
user avatar
1 vote
1 answer
6k views

Static IP and DHCP Lease in dnsmasq?

I'm setting up a couple of Raspberry Pi's on my router's DMZ (don't worry all the ports are closed); my router uses DNSMasq for DNS and so I added the MAC addresses; hostnames and IPs of the pi's to ...
user avatar
  • 4,039
1 vote
1 answer
508 views

dnsmasq config forwarding queries for domain.net but keeping local.domain.net queries non forwarded

What would be correct config for situation where I would want to forward queries of everything under domain.net except local.domain.net? I have set my /etc/dnsmasq-resolv.conf to have my local DNS ...
user avatar
0 votes
0 answers
44 views

Weird : Can't ping another machine by its hostname but ONLY from a specific machine

I have a machineA, ip 192.168.0.171. I can ping it from all the machines on the network, but not from machineB - by hostname. Using its IP address, it is pingable. From MachineB, I can ping all the ...
user avatar
  • 113
1 vote
1 answer
418 views

Dnsmasq can't forwarding .local DNS query

I have a windows AD/DNS server. Domain is xxx.local. IP 192.168.3.100 At a same time I have a special subnet use dnsmasq service. these subnet computers can't get any xxx.local records from server ...
user avatar
  • 13
0 votes
0 answers
263 views

Delay on first DNS lookup (and after long idle), timeout on AAAA record, but why?

I have a small home LAN with dnsmasq running on a Raspberry Pi to provide DHCP and DNS services. I have two systems running xubuntu 19.10 and on these systems I see a 5 second delay the first time I ...
user avatar
0 votes
1 answer
46 views

Strange cache on DNS forward zone

I have a corporate DNS server using Bind. I have 3 consul servers. Consul is listening on localhost port 8660 for DNS. On these servers I have also DNSmasq to forward DNS request from public IP port ...
user avatar
0 votes
1 answer
126 views

How do I route traffic back over a VPN to other servers

I am currently setting up an environment in 2 sites. all servers are linux/ubuntu. First site is my office and second site is AWS. I have 2 servers in AWS within a VPC with site to site VPN Web01 - ...
user avatar
0 votes
1 answer
670 views

Getting hostapd and dnsmasq working together

I have both hostapd and dnsmasq running but for some reason any connected host does not get assigned an IP. tcpdump shows the client pinging the broadcast IP but no response. hostapd config ...
user avatar
0 votes
2 answers
6k views

Connection timed out no servers could be reached, port is open but connection refused

I'm trying to set up a dnsmasq on a CentOS 7. The machine is on local IP 192.168.0.50. From the DNS server I get the answer when using nslookup. But, when I use nslookup from another machine in same ...
user avatar

1
2 3 4 5