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
How to bypass DNSMASQ traffic redirect (address=/#/10.0.0.1) after Captive Portal Authentication?
I wanted to write a captive portal from scratch using the following:
hostapd v2.10 to setup my wlan0 as an AP and eth0 is connected to the internet router.
#/etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=MyWIFI
…

s4m0k
- 109
- 2
0
votes
1 answer
OpenVPN clients' DNS, unwanted ip routes added by dhclient
I've set up an OpenVPN gateway that provides access to a large cloud of IoT devices. Each device has a unique certificate, and upon connection, I grab the "common name" from the cert to make a local DNS name, and publish that via dnsmasq. And for…
0
votes
0 answers
Make JVM honor the TTL from a dns reply
I read the many articles that JVM has its own DNS caching and TTL.
Like https://stackoverflow.com/questions/1256556/how-to-make-java-honor-the-dns-caching-timeout
But is it possible for JVM to honor the TTL from a dns reply, by using somthing like…

nimdrak
- 29
- 1
- 7
0
votes
0 answers
Dnsmasq - Forward Upstream URL to a different IP
I would like to be able to forward an upstream/existing URL, say example.com to an external IP (like a vps) or other URL.
Thanks.

TheAlphaReturns
- 1
- 1
0
votes
1 answer
How to resolve DNS using Network Manager?
I am using Network Manager(nmcli) to establish network connection to a Linux based embedded device. But the client application is having issues connecting to aws backend. In the /etc/NetworkManager/conf.d the dns=dnsmasq is set and the…

Preeti
- 101
- 1
0
votes
0 answers
How do I configure Dnsmasq or BIND multiple instances so that wildcard * BIND, or # for dnsmasq resolve to different IPs for different subnets?
I want * wildcard for BIND or better # for dnsmasq to resolve to DIFFERENT IP addresses depending on the subnet or interface over which the query came in. Like on interface a, all wildcards are 1.200 and on another interface B, all wildcards are on…

Kim K. M
- 1
- 1
0
votes
0 answers
How to configure Dnsmasq to respond to wildcard with different IP address depending on querying interface
I want Dnsmasq to respond with 1.100 for # if query comes in on iface1 and 1.200 if query comes in on iface2.

Kim K. M
- 1
- 1
0
votes
1 answer
Securing DNS: Is combining Unbound with DNSMASQ and DNSCrypt Proxy necessary or beneficial on a Debian 11 system?
I've recently taking an intrest in DNS security and have opted to use the "dnsrypt-proxy", "dnsmasq" and "unbound" packages on my Debian 11 system chained together in the following order to encrypt my DNS traffic and improve the integrity of the…

Lil Cyanide
- 1
- 1
0
votes
1 answer
How to disable /etc/hosts from resetting after reboot
Using Ubuntu 20.04 LTS on a Raspberry Pi and trying to setup a DNS and DCHP Server on it using DNSMasq
Got to the point where I want to add static DNS results in the /etc/hosts file however when I reboot all of the work I've done disappears and it…

jacoboneill2000
- 1
- 1
- 1
0
votes
1 answer
Variable ip needed in address field of dnsmasq.conf
I have 2 ethernet interfaces eth0 and eth1 which are connected to 2 access points.
my dnsmas.conf
dhcp-range=interface:eth0,192.168.190.5,192.168.190.200,255.255.255.0,24h
dhcp-range=interface:eth1,192.168.191.5,192.168.191.200,255.255.255.0,24h
…

krishna
- 9
- 1
0
votes
0 answers
Routing between 2 networks on Linux
My system topology:
On an ubuntu machine with 2 ethernet ports (eth0, eth1) i have connected another ubuntu machine as client and an OCRCamera (also client).
the requirement is that the main ubuntu machine will be DHCP server and router, so that the…
0
votes
1 answer
dnsmasq - failed to bind DHCP server socket: Address already in use - DHCP proxy
I have some issue with dnsmasq. I'm trying to use the existing dhcp that is provide by my router to create a pxe server but dnsmasq give me an errror.
/etc/dnsmasq.conf…

Stickman
- 1
- 1
- 2
0
votes
1 answer
dnsmasq: Change DHCP range based on group of MAC address
Is it possible to change the DHCP range dnsmasq gives out based on the MAC address block. For example, I want all MACs in the block 00:0C:29 to have a different DHCP range compared to every device on the network.

foxtdev
- 3
- 3
0
votes
1 answer
Can I install dnsmasq on lamp web server?
Is it possible to install and run dnsmasq on a shared host webserver (standard lamp stack)? And how would one do this?
I use Siteground and Dreamhost. I think I can run a lamp stack on my NAS too which I may have more permissions for.
Being linux…

AutoBaker
- 178
- 8
0
votes
1 answer
How to dynamically resolve domains?
I've got a zone .default.svc.cluster.local with a separate server for it, but I don't want to type all that.
Instead, I want to type XXX.localhost to get to the XXX.default.svc.cluster.local.
I've been thinking of using naptr-record of dnsmasq for…

akond
- 111
- 3