Questions tagged [dnsmasq]
a lightweight server providing DHCP and DNS capabilities
268
questions
0
votes
0
answers
14
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 ...
0
votes
1
answer
14
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 ...
2
votes
1
answer
30
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 ...
2
votes
0
answers
63
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-...
0
votes
1
answer
25
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 ...
0
votes
1
answer
84
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 ...
0
votes
0
answers
51
views
Is there a way to get the dhcp Vendor Class from dnsmasq's dhcp-script
Is there a way to get the dhcp Vendor Class from dnsmasq's dhcp-script?
I created a basic script that echos the args and env, and it's not there
dnsmasq-script[9471]: args=old *********** 10.159.163....
0
votes
0
answers
217
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 ...
0
votes
0
answers
11
views
dnsmasq.leases write wrong parameter (opensuse)
I'm running platform tests on several computers. The dnsmasq.leases is writing a strange parameter when I test with Opensuse OS. Can anybody help me?
1681465068 00:04:5f:41:3a:d9 55.0.168.110 cpru201 ...
0
votes
0
answers
34
views
Directing wifi accesspoint traffic to localhost port
I am trying to make a Plotly Dash server running on a port on a debian machine (rpi4) available to devices connecting via a hostapd hotspot.
Specifically currently I have:
a Python Dash server with ...
0
votes
1
answer
101
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....
0
votes
1
answer
86
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....
0
votes
0
answers
23
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 ...
0
votes
0
answers
60
views
No IPv6 route with DnsMasq
I want to debug DnsMasq to find out why it doesn't give any IPv6 route to the host who run it. Resulting in no reply from the host to anyone. Considering that this host is the gateway, well, it means ...
1
vote
0
answers
248
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 ...
0
votes
1
answer
62
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.
...
1
vote
0
answers
2k
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, ...
0
votes
1
answer
609
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:...
0
votes
0
answers
264
views
dnsmasq not working on boot, but works flawlesly on restart
I installed a new wifi adapter on my machine and configured it as an access point using hostapd and dnsmasq.
On boot, dnsmasq seems to not work (error messages below and some of the devices on my ...
0
votes
0
answers
83
views
dnsmasq - where to store unavailable config values (that are only available for /etc/resolv.conf)
following options are apparently not available in dnsmasq, only in resolv.conf:
options timeout: n
options attempts: n
search [Search list for host-name lookup]
timeout: is hard-coded in dnsmasq ...
1
vote
1
answer
588
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 ...
2
votes
1
answer
505
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/...
0
votes
1
answer
1k
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 ...
2
votes
0
answers
749
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 ...
0
votes
0
answers
45
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 ...
1
vote
1
answer
666
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 ...
0
votes
3
answers
974
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 ...
0
votes
1
answer
154
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 ...
1
vote
1
answer
1k
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 ...
1
vote
0
answers
154
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
...
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 ...
1
vote
1
answer
11k
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'...
1
vote
1
answer
250
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
...
3
votes
2
answers
3k
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 ...
2
votes
1
answer
2k
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 ...
0
votes
1
answer
331
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 ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
222
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 ...
1
vote
1
answer
51
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 ...
1
vote
1
answer
194
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 ...
1
vote
0
answers
615
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 ...
1
vote
1
answer
312
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 ...
0
votes
1
answer
340
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 ...
2
votes
0
answers
172
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-...
0
votes
1
answer
266
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.
...
0
votes
0
answers
196
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 ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
545
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-...
0
votes
1
answer
212
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 ...