dnsmasq is a lightweight DHCP, DNS and TFTP server application for *nix platforms intended for use on small and home networks.
Questions tagged [dnsmasq]
407 questions
0
votes
1 answer
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 name.
Here is my configurations:
/etc/dnsmasq.conf
#…
![](../../users/profiles/568963.webp)
Kingindanord
- 115
- 4
0
votes
2 answers
How to fix "no address range available for DHCP request" error?
Trying to run a DHCP server on lo using dnsmasq.
$ cat /etc/dnsmasq.d/01-dhcp-loopback.conf
interface=lo
dhcp-range=10.0.2.10,10.0.2.254,255.255.255.0
port=0
I can get things working by adding the following alias to eth0, but that doesn’t make…
![](../../users/profiles/506262.webp)
sunknudsen
- 581
- 10
- 26
0
votes
1 answer
dnsmasq cache NOERROR with ANSWER: 0, AUTHORITY: 0
I use a public DNS provider (nextdns.io) that blocks some domains. These blocked domains return a response like this when dig-ed:
; <<>> DiG 9.16.1-Ubuntu <<>> example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status:…
![](../../users/profiles/308154.webp)
Collin Barrett
- 115
- 1
- 7
0
votes
1 answer
How to fix strongSwan "no address range available for DHCP request via" error?
I am using the DHCP plugin with dnsmasq.
$ cat /etc/dnsmasq.d/01-dhcp-loopback.conf
interface=lo
dhcp-range=10.0.2.10,10.0.2.254,255.255.255.0
port=0
$ cat /etc/ipsec.conf
config setup
charondebug="ike -1, knl -1, cfg -1"
uniqueids=never
conn…
![](../../users/profiles/506262.webp)
sunknudsen
- 581
- 10
- 26
0
votes
0 answers
resolving local network DNS query from hostname rather than IP
I have a bunch of Debian VMs running on a Debian host, they're all connected through an internal private network. One of said VMs has static IP set to 10.0.0.1 and acts as a DHCP/DNS server running dnsmasq serving IP addresses to every machine on…
![](../../users/profiles/362444.webp)
nxet
- 101
- 1
0
votes
1 answer
How do I set correct name resolution in dnsmasq on a per-client basis?
Here's the story:
On my local network I'm using a Raspberry Pi with dnsmasq for name resolution and DHCP. Our household consists of two adults & two kids, and I'm looking at restricting internet access for the kids via OpenDNS.
I've almost got this…
![](../../users/profiles/245703.webp)
Kryten
- 313
- 1
- 2
- 8
0
votes
1 answer
Setting up dnsmasq as resolver for local domains, forward others to campus nameserver
I'm tearing my hair out trying to setup dnsmasq. I'd like to be able to resolve certain local domains (just as a test) to my own machine, and forward the rest to my regular DHCP nameserver that's coming from campus. I'm running Ubuntu 20.04.
Here's…
![](../../users/profiles/572887.webp)
rosstex
- 123
- 1
- 5
0
votes
1 answer
DHCP within DNSMASQ not reached for IP address requests
Due to a device loss in the network, a new DNSMASQ configuration has been brought in on a different server. The server happens to be a Raspberry Pi 4B. Many devices are able to obtain IP addresses, but some (Windows 10 devices in particular) are…
![](../../users/profiles/132598.webp)
Dennis
- 167
- 11
0
votes
1 answer
Wrong grub2 prefix when booting over network
I have dnsmasq in proxy mode, serving pxe service and tftp server using this config:
port=0
log-dhcp
log-queries
log-facility=/var/log/dnsmasq.log
dhcp-range=192.168.0.0,proxy
enable-tftp
tftp-root=/tftp
pxe-service=x86-64_EFI,boot,…
![](../../users/profiles/433612.webp)
František Jeřábek
- 111
- 5
0
votes
1 answer
How can I setup dnsmasq wildcard cnames for domains generated from dhcp leases?
I have an OpenWRT router with automatic dhcp domains enabled. This way, for host example-host, I automatically get an A record for example-host.lan to 192.168.1.2.
I am trying to setup a wildcard cname for *.example-host.lan. For this, dnsmasq…
![](../../users/profiles/559138.webp)
kittydoor
- 1
- 1
- 1
0
votes
0 answers
dnsmasq DNS cannot be reached by local devices
I am currently working on a locally hosted website running on the free version of MAMP. I wanted to assign this website a domain name, hence i came across dnsmasq. I have set up the program using…
-1
votes
1 answer
Windows machine with 2 NICs
I have 2 networks connected to my work PC, we'll call them NET1 and NET2. NET1 has internet access and NET2 doesn't.
NET1 is a work network which I have no control over.
My work computer is connected to both NET1 and NET2 via Intel(R) Ethernet…
![](../../users/profiles/506293.webp)
Niko_Jako
- 3
- 2
-1
votes
1 answer
Which iptables rules allow me to fake a remote DNS answer with a local DNS running on the router?
A machine has a DNS set to 8.8.8.8
The network router has an ad hoc DNS running (say dnsmasq)
Which iptables rules allows to fake the response from the remote server 8.8.8.8 with the local router DNS?
For instance, if the router DNS is…
![](../../users/profiles/378608.webp)
user123456
- 513
- 1
- 6
- 18
-1
votes
1 answer
Resolve keywords and https on dnsmasq
Using address=/#/192.168.2.1 on /etc/dnsmasq.conf to resolve all domain names for example google.com redirects you to 192.168.2.2 and got that working.
Now how do you resolve any keyword on the browser? For example I type in foo and press enter and…
![](../../users/profiles/388581.webp)
Guest
- 1
- 2
-1
votes
1 answer
How to conditionally redirect DNS queries by server with dnsmasq?
I would like to know if it is possible to create a conditional redirect like:
# all domains *.lan
address=*.lan
server=192.168.1.254
# rest of all
address=
server 8.8.8.8
![](../../users/profiles/371788.webp)
Jorge Pereira
- 3
- 1
- 2