Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dnsmasq]

a lightweight server providing DHCP and DNS capabilities

-1
votes
0answers
6 views

Can I specify domain-name name-server mapping for resolved

Currently, I'm using dnsmasq to map a domain-name to a specific name-server. Is there a way I can do the same using resolved? For example for dnsmasq, I've configured my dnsmasq as follows: listen-...
1
vote
0answers
22 views

dnsmasq dns nameserver priority parameters - strict-order

I have a setup specifying two DNS namservers. One in local, the other is external. The local one is a pihole, which itself forwards requests externally after url filtering. The external one is set ...
-1
votes
1answer
35 views

route traffic of all connected wireless clients to one particular IP and port

I've successfully set up access point on my server using wifi-ap snap wakatana@server:~$ sudo wifi-ap.config get debug: false dhcp.lease-time: 12h dhcp.range-start: 10.0.60.2 dhcp.range-stop: 10.0.60....
0
votes
1answer
19 views

Is it possible to suppress upstream DNS records with dnsmasq

Using dnsmasq, I can set new values for existing records, and add new records, event to a zone I don't own. But is it possible to mask or suppress an existing record ? In my case I want a CNAME to be ...
3
votes
2answers
68 views

Compare domain blocking by iptables vs dnsmasq-/etc/hosts

I now use dnsmasq, with a large /etc/hosts file obtained from Energized packs [https://energized.pro/#packs]. Some of these are quite large. Trying to get info from the dnsmasq team, which is still ...
2
votes
1answer
152 views

set DNS entry for hostname for the DD-WRT DNS router itself

I'm trying to set a DD-WRT router to reply to DNS requests with it's own hostname (via the DD-WRT router's DNSMasq daemon). I can set other local hostnames (using Static Leases section) and these are ...
0
votes
0answers
39 views

Implementing a quota using iptables in an openwrt system

I would like to explain what I'm currently working on briefly and explain issues I need to address. We have a device (a TP-link Access Point) that we have our custom linux kernel running (which is a ...
0
votes
0answers
44 views

NixOS + docker nginx + dnsmasq for local somethingsomething.dev domains

I have been configuring NixOS as a dev machine lately (and so far I really love it). I was planning of using a nginx image as reverse proxy to route all *.dev requests to running docker images. This ...
2
votes
0answers
46 views

Use DHCP-provided DNS or not based on connected network

My current networking setup (on Arch Linux) involves: stubby to resolve DNS requests with DNS-over-TLS. dnsmasq to cache DNS queries (and nothing else). openresolv to manage resolv.conf. ...
0
votes
2answers
52 views

dnsmasq as cache

I am trying to configure a DNS cache with dnsmasq. The server responds to the query, but the response time is exactly the same as the Cloudflare DNS. To test the DNS Server I have removed any internet ...
0
votes
0answers
42 views

dnsmasq: Behavior of dhcp-ranges with tag + without tag

If I have one dhcp-range R1 that includes a tag: specification, and another range R2 with no tag: specification, and a client has that tag assigned based on its dhcp-vendorclass... ...will the client ...
1
vote
1answer
37 views

dnsmasq running in namespace can't take queries from within namespace

I've set up a default dnsmasq.conf with essentially no modifications except: listen-address=192.168.42.2 interface=veth1 # Also tried without server=8.8.8.8 And my /etc/hosts looks like this: 127.0....
-1
votes
2answers
222 views

How to configure dnsmasq to use /etc/hosts instead of “dhcp-host”?

I have been able to configure static ip for specific client in /etc/dnsmasq.conf by using "dhcp-host": http://manpages.ubuntu.com/manpages/cosmic/en/man8/dnsmasq.8.html I would like to use /etc/...
6
votes
2answers
318 views

systemd-resolved block a domain name

Using systemd-resolved how do I block, route, or resolve, a domain name to a black hole, or a nowhere address. Bonus points for subdomains as well. I tried a single domain in /etc/hosts: 127.0.0.1 ...
2
votes
0answers
185 views

dnsmasq is not resolving local hostnames

I have a local Linux server running dnsmasq for my LAN. It has been working without issues for the last several years. I keep the operating system and packages regularly updated. After yesterday's ...
2
votes
0answers
165 views

DNSmasq - MAC address-based responses for both IPV4 and IPv6

I have my own dhcp server with dnsmasq on a network wit both IPv4 and IPv6. Everything has been working fine. Now I would like to it to offer different DNS Server addresses than the default for my ...
1
vote
1answer
98 views

Setting up Dnsmaq to serve DHCP addresses to Hostapd Hotspot

I am trying to setup dnsmasq to act as DHCP server for a hostapd-based WiFi hotspot. When client connects WAP2 negotiation succeeds, but dnsmasq consistently outputs the following errors. [ 2081....
0
votes
0answers
129 views

dnsmasq does not hand out IP addresses

I am trying to learn about networking, specifically, what I am currently trying is creating a private network that runs behind a NAT that connects to my main router. The way I've though of it is as ...
0
votes
1answer
272 views

Namespace management with ip netns (iproute2)

I would like to know where to look up changes applied to custom namespaces. Let's say I have a namespace "ns1" with virtual interfaces "vpeer" and "lo" inside and I would like to modify configurations ...
0
votes
1answer
370 views

dnsmasq not working after reboot

After rebooting, dnsmasq service is running, but does not respond to remote requests (trying using "dig @10.0.0.1 stackexchange.com" from another machine). The log looks good in my opinion: Aug 11 17:...
2
votes
0answers
63 views

how to prevent dnsmasq from completely failing when one of the configured interfaces is unplugged?

I'm running dnsmasq on Arch Linux on a router with 4 LAN ports for wired, wireless, DMZ and admin_interface. dnsmasq is my dhcp server for my LAN (as well as providing dns functions). I do not always ...
0
votes
1answer
431 views

How do I get DNSMasq to serve up DNS to Windows hosts without a domain?

I Have an Ubuntu 16.04 host (10.0.10.2) with DNSMasq installed which is only serving up DNS, and a couple Windows hosts on the same subnet, as well as a couple other Linux hosts on the same subnet. ...
0
votes
0answers
112 views

block LAN device by mac address using dnsmasq

My router is using dnsmasq as the dhcp server. I currently see a device identified as EPSONBBE74B which is receiving a dynamic IP address. I don't recognize that device. Nobody here can find it. I ...
1
vote
2answers
2k views

dnsmasq: failed to bind DHCP server socket: Address already in use

I have a box setup as a PXE server. The interface that will provide DHCP leases is eno3. dnsmasq is installed and provides tftp service ** bind is not installed - Ubunutu 18.04 ** Error: dnsmasq: ...
1
vote
0answers
124 views

Help understand output of dnsmasq logs and find performance issues by reading dnsmasq log

I have dnsmasq installed on server and it is heavily used. I have the following dnsmasq log in the /var/log/syslog when given the signal "SIGUSR1": Jul 16 13:45:50 server1 dnsmasq[427008]: time ...
2
votes
1answer
671 views

Use dnsmasq to pushing routes to my clients on a small local network

I'm trying to use dnsmasq to pushing routes to my clients on a small local network. However my clients (Server #1, #2 and #3) can not use these routes. The dnsmasq service is running and I do not ...
1
vote
1answer
327 views

DNSmasq - Server Cache Snooping Remote Information Disclosure

I am seeing the following vulnerability on my open/public WiFi. "DNSmasq - Server Cache Snooping Remote Information Disclosure" This is a Linux box that serves Internet access to customers and I ...
3
votes
1answer
157 views

Dnsmasq hostnames on a public domain

I have an OpenWRT/LEDE router with Dnsmasq. I currently have a local domain (something.lan) that is appended to DHCP names, so I can access devices on my network just by connecting to, let's say, ...
0
votes
2answers
906 views

Pi-Hole Redirecting Domain to IP [closed]

I have a domain that points to the external IP of my webserver. I set up a Pi-Hole server and changed my network settings to use it, and I've verified it is working. I want to redirect the URL of my ...
0
votes
0answers
188 views

Mac OS High Sierra can't find localhost after dnsmasq install

I am setting up Laravel and Valet on a MacBook Pro. I had everything working. Then I bought a new MacBook Pro and copied over my files to the new mac. I had to reinstall Homebrew, php, valet, and ...
0
votes
0answers
240 views

trying to redirect all traffic with iptables but not working

I have a raspberry pi that is set up as an access point. It is NOT connected to the internet. I followed this tutorial until the section about bridging. (I don't have my raspberry pi connected to ...
1
vote
2answers
877 views

Can I get dnsmasq to drop/reject/redirect any address queries except one?

I am setting up a local survey system. The linux laptop will run limesurvey (on a typical LAMP stack) and will be accessible by 5 tablets given out to conference participants. Tablets are no problem ...
0
votes
1answer
179 views

Configure dnsmasq to translate local names for iPhones

I've found that iPhone 5S won't resolve name of the host of the local network by it's name. It is only possible when adding .local suffix to the hostname, e.g. instead of asking (like on a Linux host):...
0
votes
1answer
241 views

Is it a best practice to have both Bind and DNSMasq which is running on port 53?

I installed Bind on CentOS7 and noticed that the DNSMasq which is already installed & running on the same port 53 where Bind runs. Looks like DNSMasq is default package comes up with CentOS. ...
2
votes
1answer
190 views

How to Hide Dnsmasq version number?

It is possible to hide BIND DNS server version number, but how can you change it in dnsmasq? command to execute: dig localhost version.bind txt chaos
1
vote
1answer
236 views

dnsmasq's server option doesn't work for a specific domain

I have configured dnsmasq as a local DNS server. Now since my ISP does not resolve some-company.sharepoint.com I want to use Google's servers for the domain sharepoint.com. (See here for the windows ...
0
votes
0answers
529 views

Resolving domains on Ubuntu 16.04.4 LTS does not work

Resolving domains on Ubuntu is not working 16.04.4 LTS. The home server is connected to the Huawei HG8245 router, the network on the server is parsed by NetworkManager. The NetworkNamager ...
0
votes
0answers
182 views

dnsmasq redirection config rewrite to systemd-networkd configuration

I updated my Ubuntu 16.04LTS to 18.04LTS, first I noticed that systemd-networkd is colliding with dnsmasq because it's using the port 53. After some research, I learned that the systemd-networkd is a ...
0
votes
1answer
757 views

How to configure dnsmasq as an authoritative DNS server?

I'd like to setup dnsmasq as an authoritative DNS server, but can't find any good guides for it. So could somebody please post a sample configuration of dnsmasq as an authoritative DNS server (with ...
0
votes
0answers
53 views

How to send only 10kb/sec using ip-tables to clients

I created a hotspot using hostapd,dnsmasq and nodogsplash in my linux.Every thing works fine but i want to send only 10kb/sec to my clients who connects my hospot.How to do it.I dont know much about ...
0
votes
1answer
1k views

dnsmasq always returning REFUSED

Ubuntu Server 16.04.04 dnsmasq.conf: listen-address = 192.168.5.5, 172.30.108.1, 127.0.0.1 log-queries resolv-file = /etc/resolv.dnsmasq /etc/resolv.dnsmasq: nameserver = 8.8.8.8 /etc/resolv....
-1
votes
1answer
994 views

Dnsmasq port forwarding

My current configuration site.example.net 192.168.1.1 What I want to do site.example.net:10000 192.168.1.2 My question Knowing that I've already tried this type of configuration in /etc/hosts and ...
1
vote
0answers
80 views

DHCP assigns a new IP address when the Time Zone changes

I have a device linux-based. Through a webpage I can change the time zone runtime. This device takes the IP and NTP address from a DHCP. Using two different servers I have two different behaviours: ...
0
votes
3answers
779 views

NGINX Redirect to Domain Name spoofed locally with DNSMasq

I have a Linux VPS serving data on the internet that has a legitimate Domain name and SSL Certificate ( from GoDaddy.com ). I will refere to this server as "www.myserver.com". I also have a local ...
0
votes
1answer
105 views

Some hosts resolves slowly or does not resolved at all with dnsmasq

I am using corporate VPN to access internal resources. After connecting via Shrewsoft VPN client these internal resources had not been resolving because resolv.conf was always having DNS another than ...
2
votes
3answers
1k views

dnsmasq & systemd Causing Intermittent CPU Spikes

Problem: Running Ubuntu 17.10 I have been trying to resolv (hehe) this issue for about a week now and despite countless Google searches and about 20 different attempts, I can not stop dnsmasq from ...
0
votes
2answers
1k views

Why does nslookup fail for DNS records set to a private address?

Setup On some networks I'm able to use nslookup to resolve a domain name that is pointed to a private ip address: @work> nslookup my192.ddns.net Server: 10.1.2.3 Address: 10.1.2.3#53 Non-...
1
vote
2answers
2k views

How can I get DNS IP Resolution for an Internet Domain Name pointing to a locally-hosted Web Server from within a LAN (across multiple subnets)?

Cut to the chase: A specific question of mine is this: a client on 10.0.3.X/24 network cannot reach subdomain.site.com. How can I make clients on 10.0.2.X/24 and 10.0.3.X/24 able to resolve 10.0.1.4 ...
2
votes
1answer
611 views

DD-WRT DNSMasq logging help

I recently installed DD-WRT on my Netgear R7000 router and want to log DNS queries. So far without much luck. I'm running DD-WRT v24-sp2 kongac, build 23900M. syslogd is running and currently writing ...
2
votes
0answers
194 views

Consequences of disabling the use of dnsmasq in Network Manager config?

In elementaryOS Loki, I have only been able to make DnsCrypt to work properly (when manually setting the DNS server address in the gui Network Settings to 127.0.0.1 or whatever other address starting ...