dnsmasq is a lightweight DHCP, DNS and TFTP server application for *nix platforms intended for use on small and home networks.
Questions tagged [dnsmasq]
425 questions
0
votes
0 answers
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
address=/gov/10.42.0.1 ...
This redirects all…

user453575457
- 101
- 1
0
votes
1 answer
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 return the HTTP response of a local HTTP server at…

Sebastian
- 101
0
votes
1 answer
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?

Zack Light
- 11
- 2
0
votes
0 answers
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…

asm_nerd1
- 101
- 1
0
votes
1 answer
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 use it inside docker that's where I stumble upon…

itasahobby
- 194
- 10
0
votes
3 answers
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 address available" error.
My network is 10.1.0.0/22…

Scheintod
- 391
- 1
- 5
- 17
0
votes
0 answers
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: mtu 1500 qdisc noqueue state UP qlen 1000
link/ether brd ff:ff:ff:ff:ff:ff
inet 192.168.3.1/24 brd 192.168.3.255 scope global br-lan
…

hgl
- 167
- 6
0
votes
1 answer
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.168.1.2/24), the other for guest WiFi…

hgl
- 167
- 6
0
votes
1 answer
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 dnsmasq as both a DNS and DHCP server. Here is a section…

Magnus
- 123
- 1
- 1
- 5
0
votes
1 answer
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/openvpn-install
After install, I'm able to connect…

KhoPhi
- 53
- 7
0
votes
0 answers
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 on 192.168.1.66 and my public IP of…

trwnh
- 11
- 2
0
votes
1 answer
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 address on their device and be routed to a Webserver…

Charlie
- 3
- 2
0
votes
1 answer
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 2001:db8::1
Network 2: Static assets
IPv4 -…

JonTheNiceGuy
- 893
- 7
- 12
0
votes
1 answer
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.
(aka ping to custom domain from second to the…
0
votes
1 answer
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/resolv.dnsmasq
no-resolv

joeforker
- 2,399
- 4
- 26
- 35