Questions tagged [dnsmasq]

Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network.

Filter by
Sorted by
Tagged with
0 votes
2 answers
62 views

How to set up dnsmasq under linux to use a wildcard domain for local web development with lando/docker?

I recently discovered lando for local web development, which uses docker in the background. It works great so far, but I have to add every domain for each project manually to my hosts file /etc/hosts: ...
user avatar
  • 517
0 votes
1 answer
45 views

How to configure Debian 11 Desktop PC (computer with GUI) as a router (internet sharing)

I have two desktop machines, Windows 10 and Debian 11. These machines both have single 1G ethernet ports on the motherboards as well as an ASUS 10G PCI-e add in card. I don't own a 10G switch to ...
user avatar
  • 1,897
0 votes
0 answers
22 views

Ubuntu Linux 20.04 dnsmasq can not be started, tried much but same error 127.0.0.1

I want to ask how to do the usable dnsmasq local cached DNS server setup without interference with the Ubuntu 20.04 LTS system components etc. Would like dnsmasq to take over many services fro my ...
user avatar
  • 1
0 votes
0 answers
21 views

redirect all local requests for a domain name to local server

I host a small asp.net website for my business on a Windows Server 2019 box. I use IIS to host it and access it from both outside my local network (from home) and from within the network. I use a ...
user avatar
  • 121
0 votes
0 answers
35 views

DNS entry works in linux but not on windows - dnsmasq

I have dnsmasq setup to serve some home domain names, things like mqtt, node-red and so on to make managing my home network easier. I have it setup and working fine - except on windows... My hosts ...
user avatar
  • 247
1 vote
1 answer
66 views

dnsmasq split-horizon DNS IPv6 and CNAME

I maintain domain name example.com which has a subdomain a.example.com. Public DNS server for a.example.com is configured with a CNAME foo.example.com record which in turn points to AWS. Outside of my ...
user avatar
0 votes
0 answers
50 views

replacing dnsmasq w/ systemd-resolved - alternative to 'address' directive

Been using dnsmasq for ages - mostly for local caching and blocking out dubious domains. Now I have need for split-DNS, so it's time to switch to systemd-resolved. One major feature I'm using from ...
user avatar
  • 213
0 votes
0 answers
32 views

Windows-10 : Not able to access internet through Wi-Fi when Ethernet interface is not active

I have a windows-10 machine having 2 different interfaces. Ethernet adapter Ethernet: Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . . : 192.168.0.101 Subnet Mask . . . . . . . . ....
user avatar
0 votes
0 answers
54 views

how to create PTR records from /etc/hosts with a setting in dnsmasq.conf?

I have a working dnsmasq.conf where /etc/hosts entries are read by dnsmasq and create DNS records. However, PTR records are not created. What do I need to add to dnsmasq.conf so that PTR records are ...
user avatar
0 votes
0 answers
81 views

Use systemd-networkd & dnsmasq to access other devices on LAN by hostname?

I've setup a router box at home via systemd-networkd config files, one external interface (wan), 2x 2 port nics that I bridged to act as the internal network. systemd is acting as dhcp server on that ...
user avatar
  • 101
0 votes
0 answers
72 views

How to configure dnsmasq as a DNS server, alongside apache, so that a DNS domain that points to internal IP is accessible by the same server and LAN

I have an web server running apache web server in my home network. My router unfortunately does not allow NAT loopback, so testing my own projects, or accessing other self-hosted services (owncloud, ...
user avatar
0 votes
0 answers
97 views

Windows 10 DHCP-client behavior

I recently skimmed the logs for my OpenWRT installation in my home office, and I'm at a loss to understand how the following is possible. Setup: the router is configured to use dnsmasq as a DHCP ...
user avatar
  • 1
1 vote
1 answer
102 views

dnsmasq assigns the same IPv4 address for different hosts

I have a problem with dnsmasq DHCP server on Linux. I use Arch Linux as operation system for a server and clients. They are virtual machines if it does matter. The problem is that dnsmasq assigns the ...
user avatar
  • 135
1 vote
1 answer
201 views

GnuPG and dnsmasq can't resolve a DNS without /etc/resolv.conf using systemd-resolve

I have installed the Arch Linux distribution. Arch Linux uses systemd as a system service suite, so it also uses systemd-resolved to resolve a DNS. I use DHCP to receive DNS servers and resolve the ...
user avatar
  • 135
0 votes
0 answers
101 views

can't start dnsmasq due to error in conf OR can't create listening socket

I have a raspi 3 device with balena cloud container. It uses the LAN port with a cable to connect to the network, but I also want to use dnsmasq to run a dhcp server, which only affects usb devices. I ...
user avatar
  • 101
0 votes
1 answer
119 views

Split Horizon DNS Causes Entire Network DNS Failure

The Problem I have setup a Raspberry Pi 4 on my local network. This device is both a web-server and (now, by necessity) a DNS-server. This device needs to be reached from both inside, as well as ...
user avatar
  • 131
1 vote
0 answers
485 views

Different ways to set custom DNS servers in OpenWRT 19.07.7

There are 4 different ways to set a custom DNS server in OpenWRT / LuCi, and it confuses me: This is the method I'm currently using. It also was recommended online. Note that the LAN interface is ...
user avatar
  • 111
1 vote
2 answers
98 views

Can't resolve hostname in sub-network

I have a raspberry pi (192.168.1.1) set up as an AP for a few devices. The WIFI connection works, DHCP also seems to give out valid addresses. The issue is that none of the devices in the network are ...
user avatar
1 vote
0 answers
245 views

dnsmasq to route a subdomain

I've setup OpenMediaVault with NextClound on a RPi4. To access it I setup a domain on duckdns, mydomain.duckdns.org. Nginx is configured to use a subdomain to access nextcloud, so from outside of my ...
user avatar
  • 111
1 vote
1 answer
188 views

Use dnsmasq to test a future DNS migration

I'm planning to migrate my domain's DNS from one provider to another. ("mydomain.com" as I have to censor the real name) Technically, it's just a matter of changing the NS records before the ...
user avatar
5 votes
0 answers
423 views

dnsmasq for looking up `.local` domains on the clients that don't support mDNS

mDNS (e.g. avahi, bonjour) allows a machine to advertise itself as machine-name.local on its LAN, and allows clients to look it up by that domain name instead of by IP. Most platforms support mDNS out ...
user avatar
0 votes
0 answers
868 views

Dnsmasq: Log all DNS queries from specific IP/device

I use Dnsmasq to resolve DNS queries in my local network. To prevent the TV from loading ads/tracking me, I set up dnsmasq to resolve dozens of domains to localhost. However, this has downsides. TV ...
user avatar
1 vote
0 answers
172 views

Setup DNSMasq as caching DNS server and DHCP for local network for IPV6 with a seperate router/gateway

I have setup a home network on which I have been running my DNSMasq IPV4 caching DNS server for a few years. It is not the router/gateway and I want to add support for IPV6 and what I think I ...
user avatar
  • 1,245
1 vote
0 answers
1k views

Set up local domain in OpenWRT

I have a TP-Link TL-MR 3420 v2 router set up as a Wi-Fi repeater running OpenWRT. The router has been set up in a "briged mode". The router is connected to my phone's hotspot through OpenWRT'...
user avatar
1 vote
0 answers
61 views

dnsmasq - Disable integration of DHCP-configured hosts into the DNS

In a common dnsmasq installation, serving as both a DHCP server and a DNS server, the DHCP server integrates with the DNS server and registers the hostnames of DHCP-configured hosts into the DNS. For ...
user avatar
0 votes
1 answer
538 views

Is dnsmasq using port 53 a vulnerability?

I ran an nmap scan on my home network and linux machine. There were a few suspicious ports open so I used the command netstat -tanp|grep LISTEN to investigate further. The output was that dnsmasq is ...
user avatar
3 votes
1 answer
2k views

Best choice for private/home network TLD? Overlap with mDNS?

I'm trying to make my home network settings sane and I noticed I have a mix of TLDs with .local and .localdomain (the latter is the default of my Ubiquiti Security Gateway). I understand that .local ...
user avatar
  • 133
0 votes
1 answer
520 views

which dns server is being used by dnsmasq

Is there a way to determine that a DNS server (dnsmasq) is or is not using 8.8.8.8? I have a Google Nest Wifi Router, and it seems clear (in the diagnostic report[1]) that it is prepending[2] google'...
user avatar
  • 496
9 votes
0 answers
3k views

What are the real world differences between bind, systemd-resolved, dnsmasq, etc.? [closed]

I'm trying to achieve three simple goals (on our CentOS8 server)... local DNS resolution/caching DNSSEC DNSoverTLS At first I went straight for dnsmasq because that was what it seemed most people ...
user avatar
  • 267
0 votes
1 answer
1k views

Is it possible to round robin DNS requests?

I'm not sure I've phrased this appropriately, but what I'm trying to accomplish is an ever so slight annonymization of the machines online footprint by issuing DNS queries to a list of DNS servers in ...
user avatar
  • 267
0 votes
1 answer
711 views

dnsmasq not responding to queries for local names

I have what I thought was a simple configuration: I want dnsmasq to respond for hostnames in a local hosts file specified using the addn-hosts option. The complete configuration looks like this: ...
user avatar
  • 3,735
0 votes
2 answers
3k views

dnsmasq listen on 0.0.0.0 when started by NetworkManager

Is it possible to configure NetworkManager or dnsmasq to listen on 0.0.0.0 when dnsmasq is started by NetworkManager process ? I have noticed whatever I put in /etc/NetworkManager/dnsmasq.d/00-...
user avatar
0 votes
1 answer
31 views

Local DNS for 3 VPN connected sites

I currently have 3 R Pis running Dnsmasq at 3 sites providing local name resolution. Each site is connected to the other two with LAN-to-LAN VPNs. Each site also has dial-in VPN access. I would like ...
user avatar
  • 53
0 votes
1 answer
220 views

Debian iptables Misconfiguration when Connected to VPN

TL;DR Debian router works fine until I connect VPN, then some misconfiguration in iptables (or route tables) makes it so the router itself cannot ping IPs/Domains through tun0, therefore DNS servers. ...
user avatar
  • 288
0 votes
1 answer
529 views

Linux Network device drops and restarts in a loop

I have a decently unique stack I am working through, so any diagnostic/debugging strategies are greatly welcome. Setup: Ubuntu 18.04 desktop, PCIe network card with 2 ports. Two Ethernet camera ...
user avatar
1 vote
1 answer
3k views

Failed at step EXEC spawning /usr/sbin/dnsmasq: No such file or directory

So what I did was, I installed dnsmasq using the command apt-get install dnsmasq Now, what happens is root@kali:~# dnsmasq bash: dnsmasq: command not found root@kali:~# /etc/init.d/dnsmasq start ...
user avatar
  • 607
2 votes
1 answer
3k views

Get dnsmasq to automatically register hostnames in its DHCP network on its DNS

I have configured dnsmasq to dish out 10.0.0.* addresses to hosts on an ethernet LAN. The hosts on this network request static IP addresses using DHCP from the dnsmasq server running on 10.0.0.1. They ...
user avatar
  • 119
1 vote
0 answers
182 views

scutil does not change the resolv.conf when the primaryservice is forticlientsslvpn on macOS Mojave

I use the version 6.0.8_149 of forticlient. In the configuration of the forticlient, you can tell him to execute a script at on connect. what is interesting is that I could (with the previous version ...
user avatar
0 votes
0 answers
43 views

Figure out why OSX resolves a certain web extension locally

I'm running OSX 10.12.6 and I've added some packages using Homebrew including components to run a local LAMP stack. For some reason, when I attempt to visit https://archive.is, the .is extension ...
user avatar
  • 101
2 votes
1 answer
644 views

Configure dnsmasq to selectively resolve domains using two DNS providers

I want to use two different DNS providers, a.com and b.com. I want a list of domains like google, youtube, superuser (and more) to be resolved with a.com. And I want all other domains to be resolved ...
user avatar
  • 1,223
0 votes
0 answers
163 views

My ISP hijacks my traffic even if I am using secure DNS

Some times, when I enter a page in the first days of the month, I get redirected to a "Here's your bill page". I set up secure DNS but today it happened again. Is there a way I can avoid this? This ...
user avatar
  • 416
0 votes
1 answer
164 views

iptables enables access to my personal website when I'm inside my LAN but blocks access when I'm outside

I am using a transparent proxy to forward requests from a source (client) to a destination (server). I use iptables to make the transparent bit work... i.e: it makes the clients ip appear at the ...
user avatar
1 vote
1 answer
645 views

DNS leak for non-existent domains when using OpenVPN on a Windows client

I have a Windows client connected to a Wi-Fi hotspot: Wireless LAN adapter Wireless Network Connection 2: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Atheros ...
user avatar
  • 1,095
0 votes
1 answer
2k views

dnsmasq DHCP lease time is only 2 min

All DHCPOFFERs I get from dnsmasq have a IP lease time of 2min and it ignores the options to change it. More Details: I have two routers on my network: AVM FritzBox 7390 (192.168.0.1) VDSL2 Modem ...
user avatar
0 votes
0 answers
25 views

dnsmasq : answer a default IP if it couldn't be resolved

I have multiple virtual machines running on Qemu and connected to the internet. dnsmasq is launched on the host so it can be used : dnsmasq -h --interface=virbr1 --bind-dynamic --dhcp-range=192.168....
user avatar
0 votes
2 answers
2k views

Why is local Name Resolution not working?

I'm currently trying to solve a problem within a heterogeneous network (Linux servers with Arch, Windows clients). Current Situation: I got a NAT gateway which runs dnsmasq as DNS and DHCP server. It ...
user avatar
0 votes
1 answer
855 views

I want to run DNS server, but ports 53 and 5353 are blocked by ISP [closed]

I want to run DNS server, but ports 53 and 5353 are blocked by ISP. All other ports are open, but not 53 and 5353.
user avatar
  • 31
1 vote
1 answer
2k views

Force dnsmasq to send router advertisement to specific interface

I have following setup: remote server that has a static IPv6 /64 local (for now) IPv4 only home network with a server IPv4 OpenVPN connection that tunnels the upper half of IPv6 /64 as /65 between ...
user avatar
1 vote
0 answers
335 views

OpenStack DNS query reply from unexpected source (wrong port)

I had some problem with the DNS queries. I setted security groups (now every traffic is allowed in theory). The DNS servers are 8.8.8.8 and 8.8.4.4, setted by subnetwork. When I start a DNS query ...
user avatar
1 vote
1 answer
870 views

Setup dnsmasq to resolve host name to local machine's IP

I'm running dnsmasq as a simple DNS for resolving myserver.local.example.com to the local IP address of the server where dnsmasq is running on. Everything else is forwarded to public DNS. Assuming ...
user avatar
  • 113

1
2 3 4 5 6