Skip to main content

Questions tagged [dnsmasq]

a lightweight server providing DHCP and DNS capabilities

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Subdomains only work sometimes when accessing homeserver in local network

i'm in the process of setting up a little homeserver for my family on a 1L pc. Its running debian and a couple of docker containers like immich, jellyfin and paperless-ngx. The server should be ...
user avatar
0 votes
0 answers
25 views

Android SELinux: start dnsmasq on startup

I have had this question on android.stackexchange.com for more than a month, but I just realised that my problem isn't related to Android as much as it is related to SELinux and Android security. I’m ...
ellat's user avatar
  • 37
0 votes
0 answers
37 views

systemd-networkd: Start service after network device is up

Based on ubuntu, I built a home router/access point. Network configuration is done completely with systemd-networkd (NetworkManager is disabled). For the local network I have a bridge (bridge0) that ...
IanH's user avatar
  • 101
0 votes
1 answer
102 views

Have dnsmasq resolve multiple domains form local hostnames

I am running dnsmasq 2.90 inside a Debian 11.0 based docker container as part of Pi-hole 5.18.2. I would like to configure dnsmasq to serve the addresses of my local hostsnames for multiple local ...
Spritsail Arrow's user avatar
0 votes
0 answers
23 views

Which program started dnsmasq?

So I used dnscrypt-proxy which controlled by systemctl/systemd but when computer boot up, i noticed that there's 2 instance of dnsmasq that occupies port 53 in different interfaces, 1 spawned by ...
Kokizzu's user avatar
  • 9,931
0 votes
0 answers
20 views

Make dnsmasq use a function to resolve a hostname to a dynamic IP?

I've installed dnsmasq on my laptop. I would like to use dnsmasq to make the myrouter hostname always resolve to the IP address of the router I'm currently connected to. On some networks, the router's ...
minseong's user avatar
  • 837
0 votes
1 answer
29 views

dnsmasq pool without assigned ip

I have a simple dnsmasq v2.80 in an embedded device which I want to use as DHCP server for autoprovisioning purposes. I want two pools (one static and one dynamic) What I have is this one: # # main ...
Radu Radu's user avatar
0 votes
1 answer
30 views

Optimal scheduler for a raspberrypi only running dnsmasq

What would be the optimal scheduler settings for a RaspberryPi2 running as a DHCP/DNS only server (dnsmasq). How to minize wear on the SD card?
theking2's user avatar
  • 231
0 votes
0 answers
11 views

Can I I manually edit the records dnsmaq offers?

I use dnsmasq to provide DHCP to the household and to cache DNS records (and an odd TFTP) Now I'm trying to debug a fetchmail config file and I noticed my mailhost appears to have a broken server (or ...
GraemeV's user avatar
  • 168
0 votes
0 answers
47 views

Dnsmasq - Do not log certain queries/websites?

I have dnsmasq logging to my systemd-journal on a machine hosting an apache server. The server is quite busy, causing around 600.000 log lines to accumulate within 4-5 hours. Out of these logs, 94% ...
Elekam's user avatar
  • 1
0 votes
0 answers
49 views

Does dnsmasq have a functionality to create the DNS entries automatically for the addresses it is listening on?

I'm running dnsmasq as a caching name server on a LAN facing bridge named br4. /etc/dnsmasq.conf contains "bind-interfaces" and "interface=br4". Currently I'm running a script ...
Martin's user avatar
  • 7,636
0 votes
1 answer
147 views

Linux 5GHz access point REGULATORY DOMAIN problem (debian+ hostpad + dnsmasq)

I am getting problems setting a 5GHz access point with a lattepanda 3d. I run the following setup: Debian Hostapd Dnsmasq iw (for set/get reg dom) In the end I am able to successfully test a 2,4 GHz ...
enon's user avatar
  • 3
2 votes
1 answer
165 views

Can't ping devices on LAN

I've got 2 Access Points attached to my laptop's ethernet port via a PoE switch. I've assigned static IPs & names to them with dnxmasq (successfully, I believe). However, ping and ssh say they're ...
Tommy Jollyboat's user avatar
2 votes
0 answers
169 views

Application does DNS outside of its Network Namespace?

I am using unshare to create a network namespace: unshare -rn bash I already have the a working setup with veth-interfaces as described in this guide: https://josephmuia.ca/2018-05-16-net-namespaces-...
Aykut's user avatar
  • 21
0 votes
1 answer
122 views

Prevent hotspot clients from using the DNS/prioritising an offline hotspot

I'm hosting a hotspot on a device (e.g. Raspberry Pi) that has no internet connection running Ubuntu 20.04. I use the hotspot so that other devices can connect it to and make HTTP requests to a server ...
kekpirat's user avatar
  • 101
0 votes
1 answer
350 views

Dynamic IP with dnsmasq

I am building a black box NAS for a friend, that is going to run a few docker containers with things like NextCloud and a few other services. By black box I mean that it should be setup in a way that ...
dbergloev's user avatar
0 votes
0 answers
723 views

Moving IP masquerade configuration from Debian 10 to 11

Am in the process of moving form Debian 10 to 11 and I'm setting up by network. The box masquerades the local wired network to the wireless connection to the internet. The machine is connected to the ...
Richard Barraclough's user avatar
0 votes
2 answers
190 views

Leasequery response in dnsmasq

I am trying to get leasequery response from dnsmasq server. This is the content of the /etc/dnsmasq.conf file: port=0 interface=eth1 bind-interfaces listen-address=1.0.1.4 dhcp-range=1.0.1.100,1.0.1....
rashi's user avatar
  • 5
0 votes
1 answer
125 views

Why is systemd periodically reloading dnsmasq-dns service?

The dnsmask-dns process is reloading every 12 min (approx) on the device. This is a Centos device. grep Reloaded.Dnsm /var/log/systemd.log Feb 20 15:46:21 xxxx systemd[1]: Reloaded Dnsmasq DNS server....
Sriram's user avatar
  • 21
0 votes
0 answers
39 views

Does DHCP on dd-wrt support the absence of the default route?

I have one reason to flash dd-wrt onto my router (rt-ac66u), which is to be able to not assign any default route via DHCP. The stock firmware doesn't seem to be able to do this. Dd-wrt appears to be ...
Andreas's user avatar
  • 521
1 vote
0 answers
466 views

DHCP server for a Network Manager bridge connection using dnsmasq-base?

With Ubuntu 22.04 on a Raspberry Pi 4 I bridged (br0) the connections for ethernet (eth0) and WiFi (wlan0) using nmcli. That seemed to work fine, with WiFi acting as an access point. When I used the ...
Andreas's user avatar
  • 521
0 votes
1 answer
85 views

Why can't set the wireless access point in my debian?

My wireless adapter: lsusb | rg -i wireless Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter List my network interface: iwconfig lo no wireless extensions. ...
newview's user avatar
  • 205
2 votes
1 answer
3k views

dnsmasq is not logging queries?

I need to provide a split DNS capability for around 8 records, so am running a Ubuntu 20.04 container with dnsmasq 2.80 from repo. This provides the required forward and reverse lookup capabilities, ...
symcbean's user avatar
  • 5,821
1 vote
1 answer
1k views

Configuring fixed IP address based on MAC with dnsmasq give duplicate IP error

In order to allow monit to use ping to check whether devices are 'up' I want to have fixed IP addresses. I am using dnsmasq and have a separate file to configure these. e.g. dhcp-host=00:27:02:13:be:...
David Norbury's user avatar
1 vote
1 answer
803 views

Problem IPV6 DNSMASQ with only DHCP/DNS servers (OpenWRT)

I've set up DHCP ... and so far so good. The problem is when I try to connect a device. I did a test with Linux and each time it only sets me 1 DNS (i have set two dns server in DHCP server). It also ...
vincenzogianfelice's user avatar
2 votes
1 answer
870 views

dnsmasq dhcp not listening on port 67

I'm trying to host a DNS and DHCP service with dnsmasq. Here is my dnsmasq.conf # DHCP dhcp-authoritative bind-interfaces dhcp-range=192.168.122.2,192.168.122.99,12h dhcp-leasefile=/var/lib/dnsmasq/...
qMo's user avatar
  • 23
0 votes
1 answer
3k views

Setting up a fixed IP wifi hotspot (with no internet) with DHCP and DNS using dnsmasq

I'm having trouble setting up my computer (running Ubuntu 18.04) as a hotspot with a manually fixed IP. I want devices to be able to connect to it via WiFi, and for them to be able to access my ...
kekpirat's user avatar
  • 101
2 votes
0 answers
1k views

Disable forwarding or caching AAAA lookups by dnsmasq

Does dnsmasq running as a DNS cache on OpenWrt router have any features to disable forwarding and caching AAAA lookups? My network is not IPv6 capable and I do not want the cache getting bloated with ...
user535183's user avatar
0 votes
0 answers
48 views

Some sites don't open while using my local DNS for name resolution

I recently installed and configured dnsmasq on an Ubuntu Server 22.04 LTS. I can open my local web servers on my web browser but I get this error message (attached below). If I change my DNS settings ...
Oluwadamilola Sonaike's user avatar
1 vote
1 answer
1k views

Problem with creating wifi-hotspot with with hostapd and dnsmasq

OS: Pop!_OS 22.04 LTS (64 bit) I am trying to create an access point on my laptop and connect my android phone to it. My phone connects, shows Obtaining IP Address, and disconnects immediately. I ...
abu obaida's user avatar
0 votes
3 answers
1k views

DD-WRT dhcp-host in Additional Dnsmasq Options not working - again

The solution posted below worked for several days then failed. It's back to bench testing if I put any more time into it. Trying to move dnsmasq service from a Linux VM to a newly setup DD-WRT router ...
Herondas's user avatar
0 votes
1 answer
211 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 ...
mpb's user avatar
  • 1,651
1 vote
1 answer
3k 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 ...
DoggoPlayer's user avatar
1 vote
0 answers
211 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 ...
Lerian Acosenossa's user avatar
3 votes
1 answer
5k 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 ...
Manius's user avatar
  • 171
1 vote
2 answers
19k 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'...
L23P's user avatar
  • 111
1 vote
1 answer
423 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 ...
user453575457's user avatar
3 votes
2 answers
4k 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 ...
David784's user avatar
  • 153
2 votes
1 answer
3k 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 ...
Qiulang 邱朗's user avatar
0 votes
1 answer
398 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 ...
ofo's user avatar
  • 121
2 votes
1 answer
2k 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 ...
Stephen Boston's user avatar
0 votes
1 answer
278 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 ...
Mark's user avatar
  • 1,823
1 vote
1 answer
57 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 ...
Nyquillus's user avatar
1 vote
1 answer
230 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 ...
ServerNinja's user avatar
1 vote
0 answers
700 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 ...
bo gusman's user avatar
2 votes
1 answer
406 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 ...
basin's user avatar
  • 2,061
0 votes
1 answer
463 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 ...
Francesco's user avatar
  • 846
2 votes
0 answers
234 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-...
John Doe's user avatar
  • 1,011
0 votes
1 answer
326 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. ...
Eugene Yarmash's user avatar
0 votes
0 answers
225 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 ...
steakhutzeee's user avatar

1
2 3 4 5 6