Questions tagged [dnsmasq]

dnsmasq is a lightweight DHCP, DNS and TFTP server application for *nix platforms intended for use on small and home networks.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

dnsmasq - detect mx-host changes without service restart

I have a mailserver on ubuntu with postfix and dnsmasq. It has a bunch of mx-host records on the /etc/dnsmasq.conf config file. I need to dynamically update (add/remove) these mx-host entries (and the ...
-4
votes
1answer
17 views

How to disable dnsmasq cache [closed]

I just want to disable the caching functionality, I do not need it and it only creates bad behavior in my environment. Not interested in any other solution, if you do not know, do not comment.
-1
votes
0answers
12 views

Conditional gateway depending on the assigned IP address

I can't seem to find a way to add the conditional logic for dnsmasq, which would assign different gateway address depending on the assigned IP address. Can this be done?
-1
votes
0answers
78 views

Setting up a stand alone web access point

I have an openwrt router that is configured to offer no internet just a local web portal. I have configured the firewall to forward all HTTP requests to the router's web server and I have configured ...
0
votes
0answers
30 views

Stop dnsmasq DHCP binding to wildcard IP address

I'm trying to configure dnsmasq to provide DNS and DHCP but only on specific interfaces, on Linux. I have three interfaces lo, dummy0, wlo1: $ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 ...
0
votes
1answer
62 views

Resolving Domain Name to Private IP AND Public IP Simultaneously [closed]

Background (Skip if not interested) I have a dev server running in my local network. I can reach it easily by private IP (192.168.2.4). I have my firewall ports open on the server for :80 so I can ...
0
votes
1answer
43 views

UEFI-based laptops not displaying the iPXE boot menu

UEFI-based laptops not displaying the iPXE boot menu I'm testing iPXE to replace the old PXE solution. For my test environment, I'm using CentOS 8 with iPXE, Dnsmasq and Apache installed from the ...
1
vote
0answers
21 views

DNSMASQ serve different dns results to different subnets

In my network infrastructure I have multiple subnets intended to segregate different types of devices. I would like the ability to serve different DNS responses from different DNS servers based on the ...
0
votes
0answers
49 views

Q: Configuring dnsmasq to filter A or AAAA queries

Can I configure dnsmasq to respond to either ipv4(A) or ipv6(AAAA) queries only? I am using dnsmasq to forward queries from an internal subnet to a WAN connection. Unfortunately, sometimes I will only ...
0
votes
0answers
67 views

NetworkManager isn't starting dnsmasq on restart, only reload

I've configured NetworkManager on CentOS 7.9 running in Azure to use dnsmasq. Everything is working pretty much fine, except when the server is rebooted (or NetworkManager is restarted) dnsmasq doesn'...
0
votes
1answer
57 views

Is there a DNS cache that can automatically re-resolve its cache around the TTL timeout?

This is for a server setup with a wobbly upstream DNS for company internal server names. Sometimes, when an entry has fallen from the cache due to TTL, and our system tries to resolve it, the upstream ...
1
vote
0answers
67 views

Setting up a client to use a local DNS server

I have an Ubuntu Server (20.04) (SERVER) on which I'm running dnsmasq. This machine has a local IP of SERVERADDRESS I have a Macbook Pro (CLIENT) on the same network - and I updated the DNS rules on ...
0
votes
0answers
33 views

How to register SLAAC hosts in dnsmasq for host resolution?

On my network, hosts receive IPv6 information through SLAAC (radvd). The RDNSS server is specified as follows, and runs dnsmasq RDNSS fd8a:9ae9:9afc:fa2::1 { }; Is there a way to have hosts ...
2
votes
1answer
133 views

how to setup dnsmasq for DNS for private and public hostnames via different DNS servers [duplicate]

lets say i have this private hostname dev.private.example.com that is only accessible in a private network over VPN connection and i have prod.example.com that is accessible to the internet. I have ...
1
vote
0answers
49 views

KVM DNS forwarding not working / reply: REFUSED

I've set up a couple of VMs for development purposes for a project. The setup includes a local CA for the past, current and future project VMs. On the guest if can do dig staging.testing.lan and get ...
0
votes
1answer
71 views

Exclude subdirectory from host resolution set in /etc/hosts (with dnsmasq, or anything else)

I have a local development tool (LocalWP) that sets the path to my local environment by modifying /etc/hosts. For example, if I set my site in Local to www.foo.com, it'll append the following to the ...
0
votes
0answers
186 views

upstream timed out (110: Connection timed out) while proxying connection - Nginx/Raspberry Pi/Ubuntu 20.04

I cannot find any help with UDP, so I have come here to ask. I have a DNS cluster set up on Raspberry Pis running Ubuntu 20.04 and Nginx. The proxy is used for UDP on port 53. I am needing to put this ...
1
vote
3answers
2k views

Segmenting IPv6 networks using dnsmasq?

I have a bit of a complicated network setup(*) where a WAN router connects to the upstream provider and provides an "external LAN" (where actually I have some services) and another local ...
1
vote
1answer
71 views

what the dns-loop-detect actually do?

in one upstream dnsmasq (D1) I have: log-queries dns-loop-detect server=/mydomain.net/192.168.200.1 in another dnsmasq (D2) I have: log-queries dns-loop-detect domain=mydomain.net ... When I dig ...
1
vote
1answer
66 views

lxd: dnsmasq not resolving containers ip anymore

I have Lxd installed on an Arch system (from packages, not snapd), yesterday I rebooted the system after an upgrade and the name resolution of the fake domain .lxd stopped working; dns is provided on ...
0
votes
0answers
54 views

Possible to send real IP through Nginx UDP balancer to DNSMasq backend?

UPDATE: I uninstalled Nginx and reinstalled/compiled from source so I could get the ngx_stream_realip_module, but still cannot figure out how to forward the client IP instead of the proxy IP. I have ...
1
vote
1answer
163 views

Libvirt guest hostnames DNS resolution from host and guests

I have set up multiple virtual machines with libvirt and kvm on Ubuntu server 20.04, which work just as expected. The only thing I cannot figure out at this point is how to make their hostnames ...
0
votes
0answers
30 views

Unbound: How to intercept domain without any dots?

In dnsmasq, settings domain-needed and address=// could both return NXDOMAIN results to prevent forwarding domain without any dot or domain part. Is there any solution in unbound? I tried local-zone: &...
-2
votes
1answer
109 views

Does dnsmasq require www?

I have 2 Linux servers on my local network: An Nginx server, running a static website A newly installed dnsmasq server The Nginx web server has a static IP and I added it to the /etc/hosts file in ...
1
vote
0answers
527 views

dnsmasq dhcp ignoring dhcp-host definitions

I am currently puzzled by the dnsmasq configuration, and I hope someone here can help me... I've setup successfully the DHCP-Server with dnsmasq, and I've tried to include some static Host ...
0
votes
0answers
214 views

dnsmasq in Docker is not running after container gets build or started

I am trying to use dnsmasq to serve dns requests from within a docker container (based on webdevops/php-apache-dev) to resolve e.g. xyz.localhost to 127.0.0.1. This is needed for the web application ...
0
votes
0answers
30 views

How to resolve single-name (no dot) domain names with upstream DNS server on Linux workstations

We are using dnsmasq on our firewall machine and have set up the machine with the hosts file for all our printers and other shared resource machines. This should let us use this as a distributed ...
0
votes
0answers
35 views

Configure dnsmasq to prefer A-records in a given subnet

I have a locally-installed dnsmasq service, intended to provide local DNS caching, using lookups from from whatever upstream server is provided by DHCP (via NetworkManager). At its simplest, consider....
0
votes
1answer
719 views

Running dnsmasq as a DHCP proxy from a container

I'm trying to configure dnsmasq to operate in DHCP proxy mode, supplying PXE network boot information to clients, while my router continues to act as the DHCP server. Ideally, I'd like to run dnsmasq ...
1
vote
1answer
249 views

dnsmasq fails to resolve queries and restart after sleep mode

i'm yet another user trying to unwrap systemd-resolved, NetowrkManager and dnsmasq horror with addition of proprietary vpn that messes with /etc/resolve.conf. I want to have dnsmasq as my only ...
0
votes
1answer
187 views

DNSmasq Forward DNS on Multiple Interfaces

I am using hostapd to setup WiFi hotspot networks on my Ubuntu 18.04. I am using this guide to setup multiple SSIDs on my WiFi interface. And to enable DHCP on the hotspot networks, I use dnsmasq. I ...
0
votes
0answers
42 views

dnsmasq switch ip for a domain after the user log in (captive portal)

i'm trying to setup a captive portal dns server i use dnsmasq in the config file use : server= < CPD URLs / ipaddr > CPD is captive portal detection urls like : http://captive.apple.com/hotspot-...
0
votes
0answers
2k views

How to get netplan to set the dns server in /etc/resolv.conf based on info coming from the dhcp server?

I'm setting up a 4 x RPi Cluster with the following simple network topology: All 4 RPi nodes have the latest Ubuntu Server LTS 20.04 OS. rpi1 is my primary/gateway node. I did the following on rpi1: ...
0
votes
1answer
58 views

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 ...
0
votes
1answer
1k views

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 ...
0
votes
1answer
158 views

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 ;; ...
0
votes
0answers
209 views

resolving `address` records in dnsmasq does not work

We set up a dnsmasq to act as a central dns and dhcp service. We configured the following /etc/dnsmasq.conf: conf-dir=/etc/dnsmasq.d/,*.conf port=53 /etc/dnsmasq.d/dnsopt.conf: # do not read resolv....
0
votes
1answer
213 views

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=&...
1
vote
1answer
137 views

dnsmasq gives a correct response then a connection time out

When trying to nslookup to my dnsmasq dns server I get the correct IP address and then I get a connection timed out : no servers could be reached message. Any idea what is happening here and if I can ...
0
votes
0answers
169 views

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 ...
0
votes
1answer
202 views

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 ...
0
votes
0answers
21 views

Mapping suffix of DNS `A` queries in dnsmasq and pass mapped query to upstream

Let's consider that we have dnsmasq server (as forwarder) and it's get A query about resolving host-1.mycompany.com. Is it possible to forward from dnsmasq to upstream query about: host-1.yourcompany....
1
vote
2answers
554 views

How can a server accept incoming traffic to port 443 if it isn't listed in netstat?

I have a server that is currently accepting HTTPS requests and the only thing that shows with netstat -plnt is this: elijahlynn@web:~$ sudo netstat -plnt Active Internet connections (only servers) ...
0
votes
1answer
1k views

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 ...
0
votes
0answers
222 views

How to disable dhcp server in dnsmasq?

I want to start a hotspot on PC with DHCP disabled. I started hotspot using nmcli command: nmcli device wifi hotspot con-name NIMISHA ssid NIMISHA band bg password copernicus could see dnsmasq-dhcp ...
0
votes
1answer
487 views

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, ...
0
votes
1answer
354 views

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=/...
0
votes
1answer
140 views

DNSMASQ Not recieving DHCP requests/ DNSMASQ Not sending

I have a Fedroa 31 BOX that I'm trying to use as a dhcp server. It doesnt appear to be functioning. I have used dhcping 192.168.1.xxx where xxx is ip address of server and the output is always no ...
0
votes
1answer
774 views

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 ...
0
votes
0answers
221 views

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
2 3 4 5
8