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
0
votes
1answer
14 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
17 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
58 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
59 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
25 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
39 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
31 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
0answers
324 views

DNS issues for OpenVPN client

I am using OpenVPN server on my OPNsense fw/router to support remote access to hosts on the LAN. I am using Viscosity as my OpenVPN client on my Macbook Pro. This seems to be working well except for ...
0
votes
0answers
18 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
0answers
23 views

HSTS sites broken with dnsmasq-based dns server?

I have run into this issue recently where if i'm using my local network's dns server (powered by dnsmasq), i get HSTS errors on many sites. However when this happens, i can change my local computer's ...
0
votes
0answers
132 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
54 views

hostapd AP over both wlan0 and eth1

My hardware setup is currently: Router -> RPi (eth0) -> RPi (wlan0) -> subnet for my devices My desired setup is: Router -> RPi (eth0) -> RPi (wlan0 + eth1) -> subnet for my devices My setup: The ...
0
votes
0answers
63 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
vote
0answers
341 views

Route private network traffic through VPN

I use a RaspberryPi as a DHCP and DNS server for my home network as well as a wireguard server to gain remote access to my network. My setup is as follows: 192.168.1.4 - ISP Router 192.168.1.1 - ...
0
votes
0answers
95 views

Ldap client cant connect with local server

I am trying to setup an openldap server But it is not able to connect with client. I have configured dnsmasq properly client configuration /etc/ldap/ldap.conf BASE dc=openldap,dc=lan URI ...
0
votes
0answers
627 views

How to block DNS over HTTPS using IPtables

I've recently started using iptables for the first time on my OpenWrt, Linux based router. Out of the box the OpenWrt firewall is very good, however, after wanting to do more advanced things with the ...
0
votes
1answer
128 views

Redirect all http traffic to external web site using dnsmasq/iptables on Pi

I want to redirect all port 80 traffic (regardless of the domain name) to go to a specific external website. Therefore, if the user enters "www.google.com" or anything, it sends them to "www.mysite....
0
votes
0answers
60 views

Different local domain per dhcp zone in dnsmasq

I'm testing an installation of dnsmasq on Ubuntu with two separate DHCP ranges that get assigned based on the mac address of the device. ... dhcp-range=10.1.0.100,10.1.0.200,12h dhcp-range=net:iot,10....
2
votes
1answer
47 views

Run 2 SSL servers on 1 debian Pi, both FQDNs,1 Nginx 1 apache, wrong certificate, is this SNI issue?

I'm forced to use Nginx on a.ddns.net and Apache for b.ddns.net (reverse proxy solution too tricky due to established setups). Real server names edited but both verified as resolving to same IP and ...
1
vote
1answer
2k views

Force client to send DHCP options to next-server

We currently have clients connecting to a DHCP server when asking for an IP. We then redirect to next-server with some additional options. The next server has a DNSMASQ running that should be able to ...
0
votes
0answers
27 views

dnsmasq not allocating IPs in full range configured

I have dnsmasq configured to allocate IPs in the range 10.10.10.2 to 10.10.10.62. However it only seems to be allocating IPs in the range 10.10.10.45 to 10.10.10.62. When this smaller range is full no ...
0
votes
0answers
309 views

DNS server information not provided to DHCP clients by dnsmasq

I am trying to utilize a Raspberry Pi with Raspbian Stretch (Linux) so provide additional network monitoring and also routing capabilities. To this end I have the following setup: Internet router [...
0
votes
0answers
80 views

Docker container unable to resolve dns from host with dnsmasq

I have a host with dnsmasq enabled.I have hardcoded the DNS IP used by docker0 interfaces. On dnsmasq configuration, I have added IP from docker0 interface and 127.0.0.1. Moreover, the running ...
0
votes
2answers
59 views

Techniques for intercepting/overriding DNS lookups?

I have a Windows-based, walk-up workstation which I would like to restrict to one specific domain. It is on its own wireless network. Essentially, I would like to resolve DNS resolution calls to this ...
0
votes
1answer
98 views

How to verify which DNS server actually answered a request when it's forwarded?

ISC BIND has a tool named dig that allows us to send a DNS request to a DNS server set on parameter and see what that server answers. I wanted to know if that DNS server answered based on its cache, ...
0
votes
2answers
287 views

How to serve custom DNS server to DHCPv6 clients in OpenWRT?

How to serve custom dns to dhcp clients in openWrt? explains how to serve custom DNS server for DHCP clients on IPv4. But how to do it for IPv6? I tried adding DNS server's IPv6 address but it doesn'...
0
votes
0answers
31 views

DynDNS fails when dnsmasq is activated

I own a domain, which I want to point to my public IP at home. A small server is running and runs a cron job to periodically update the dyndns entry. The command is basically: domain-connect-dyndns ...
0
votes
0answers
271 views

Serve Dnsmasq lease to DHCP interface on the same machine

I have a case where when setting up a variety of little networked devices (cameras, radios etc) I need to setup a little DHCP server to serve the addresses we intend to communicate over. I run these ...
0
votes
0answers
24 views

Forwarding all subdomains in one IP in a any Linux distro

For a Rails application (using Puma server), we need to serve a list of subdomains ( e.g. users.example.test, admin.example.test and so on) all of which should point to localhost/127.0.0.1 (...
1
vote
0answers
1k views

Dynamic DNS (DDNS) updates from dnsmasq for use with bind9

Previously I ran dnsmasq on an OpenWRT to provide DNS and DHCP functionality, because this is, what it is intended for. I want to offload the DNS part to an already configured bind9 (running on Ubuntu)...
0
votes
1answer
76 views

Hostapd client unable to connect to docker container network

I've setup hostapd on a RP3 so I could connect some IoT devices to it. Inside the RP3 I have several docker containers, one of which is running a MQTT Broker. The MQTT Broker is running on a bridge ...
0
votes
0answers
12 views

DNS query to specific server if doesnt get resolved then the query has to be made to another server

How the linux system can be configured so that the DNS query has to be made to first dns entry if doesnt get resolved the the query has to be made to second DNS server? I am having requirement to ...
1
vote
0answers
172 views

How can I add wildcard subdomains to dhcp clients in dnsmasq? [closed]

I have a TP-Link router on which I installed Open-WRT. It has dnsmasq on it, and it is configured to give each dhcp client a dns entry containing it's hostname and the ip address that was assigned to ...
0
votes
0answers
93 views

Getting dnsmasq and unbound working together

I run a deep web mail provider and to do this I use unbound on a system behind a gateway which is a transparent proxy for Tor. I also use redsocks, and unbound sends connections to other mail servers ...
0
votes
2answers
160 views

DNS Speed tests - are they reliable or sensible?

We're with Digital Ocean (DO), but I suppose this question applies to anyone hosting anywhere. In the Dnsperf rankings, DO is quite high, but in UltraDNS DNS speed tests, my domains hosted with DO ...
0
votes
1answer
768 views

Docker-compose with VPN and DNS not resolving properly

I made a deal with my son where in, if he built a fully-working, 3 way traffic light in minecraft, I would host him his own minecraft server so he and his friends could play anytime. He upheld his end ...
0
votes
1answer
585 views

dnsmasq pxe boot not working

Maybe someone can point me into the right direction here I have a dnsmasq DHCP Server in a separate Subnet (10.17.131.42) and another Network that has NO local DHCP Server (10.33.0.0/16) The Switch ...
0
votes
1answer
373 views

libvirt: create a bridged network using openvswitch with dhcp enabled

I am trying to use libvirt + dsnmasq + openvswitch to create a bridged network with dhcp enabled. I created a libvirt network with the following XML: <network connections='1'> <name>ovs-...
0
votes
0answers
161 views

PXE boot fails With “Could not locate boot server.”

My target machine with PXE enabled receives a lease from dnsmasq and prints a message UD: 192.168.10.123 which is the address of my dnsmasq/tftp server but then fails to get any further with "Could ...
2
votes
2answers
707 views

Forwarding Active Directory Queries through DNSMASQ

I've set up an AD domain controller through Samba 4. I'm using Samba 4's internal DNS Server for handling the SRV queries. However, due to project requirements, my clients need to have a DNSMASQ as ...
2
votes
1answer
631 views

SOCKS Proxy over DNS

I'm trying to implement something similar to the service provided by https://www.smartdnsproxy.com, where clients only need to change their DNS settings to connect to a HTTP/S or SOCKS5 proxy. I think ...
1
vote
0answers
83 views

dnsmasq using separate dhcp server

I've been a happy user of dnsmasq on my SOHO LAN for years, providing both DNS services and dhcp services. However, after switching to AT&T's fiber service, I need to separate responsibility for ...
0
votes
1answer
2k views

Host DNS not working with docker container

I have a probleme with docker on my archlinux kernel Linux 4.19.31-1-lts #1 SMP Sun Mar 24 09:29:16 CET 2019 x86_64 GNU/Linux $ docker info return : $ docker info ...
0
votes
1answer
207 views

DHCP server and DHCP client on 1 interface

Computer A accesses internet through wifi interface wlp2s0 connected to a router (Internet). WAN network 192.168.1.0/24 Only responds to Computer A's MAC address DHCP discover requests Computer A's ...
0
votes
1answer
108 views

DNS/DHCP configuration in /config/config.boot vs. /etc/dnsmasq.d

I have an Edgerouter 4 and I am trying to make sense of the configuration areas for DHCP and DNS, when use-dnsmasq enable is set. I see four places where the configuration can be done: from the ...
2
votes
0answers
301 views

Cannot resolve some domains with dnsmasq

My machine runs ArchLinux, with NetworkManager and dnsmasq. Dnsmasq should forward all requests to Google's DNS 8.8.8.8, and therefore should simply act as a local cache in front of Google's DNS. For ...
0
votes
1answer
82 views

Redirect archive.ubuntu.com to a mirror on DNS level

I rely a lot Docker images, and is impractical to change the /etc/apt/source.list for each of them, so I want to redirect archive.ubuntu.com to a mirror on DNS level (I have my own dnsmasq/unbound on ...
0
votes
0answers
468 views

How to push a local DNS resolving entry to client when an OpenVPN connection established?

I am using OpenVPN-2.4.6 clients and an OpenVPN-2.4.5 server that resides an OpenWRT(18.06.01) router. The OVPN client connects to the server by a public DNS name of the server(i.e pubName.my.router),...
1
vote
1answer
2k views

DNSmasq on 2 interfaces

SysInfo: ubuntu 18.04 external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1 external access point (USB stick) => interface ap0, IP: 192.168.12.1 hostapd ...
2
votes
1answer
975 views

Why making dnsmasq authoritative breaks CNAME resolution?

I have a CNAME set up in dnsmasq as cname=ch1-lampe-bureau.swtk.info,switch-3 It is resolved correctly (switch-3 is a device which gets its IP via DHCP from dnsmasq): root@rpi1 ~# host switch-3 ...

1
2 3 4 5
7