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
2 votes
1 answer
5k views

DNSMASQ Specify Port Number in dhcp-option=6

I run Ubuntu 16.04 LTS. I want to redirect DNS requests coming from some ip[-range] to another instance of dnsmasq on port 1995. To do so I added these lines in /etc/dnsmasq.conf file : dhcp-range=...
Chitholian's user avatar
4 votes
1 answer
6k views

Configure LXC to use specific DNS server instead of DNSMASQ

Out of the box, my LXC containers connect to a running instance of dnsmasq, which is started with the lxc-net service. In my case, I am running a local unbound DNS server that connects to a thing ...
jcarpenter2's user avatar
3 votes
1 answer
3k views

dnsmasq: Custom name resolution for different clients

I have a network on which I'm running dnsmasq to do DHCP and DNS. My network has several clients each of which needs to communicate with a master machine (which they do with a DNS query to dnsmasq ...
rcv's user avatar
  • 185
1 vote
1 answer
1k views

When configuring dnsmasq for PXE booting, why do I need to change undionly.kpxe to undionly.0?

I have configured dnsmasq to PXE boot iPXE clients by referring them to a HTTP server (matchbox in this case). I have also configured it to deal with older PXE clients by placing a copy of iPXE in the ...
dippynark's user avatar
  • 242
0 votes
1 answer
1k views

Why does this dnsmasq configuration work in one office but not another?

We have two remote offices which both use the same VOIP provider. During the sign up for this provider, they advised us to change our DNS setup so that the phones use their DNS server for VOIP calls. ...
Kryten's user avatar
  • 313
3 votes
2 answers
11k views

Assigning a hostname of the fqdn assigned to a dhcp client with dnsmasq?

I'm aware that you can assign static DNS entry names by doing the following in dnsmasq.conf: address=/wiki.leerdomain.lan/192.168.1.200 ptr-record=wiki.leerdomain.lan/192.168.1.200 and then ...
leeand00's user avatar
  • 4,919
1 vote
0 answers
203 views

Using DNSMasq to route hostname traffic to local hostname address

I have a particular setup where a Minishift VM is publishing some URLs accessible locally in a format such as: http://some_app.192.168.64.2.xip.io/ This address is only accessible locally and is the ...
Talisker's user avatar
0 votes
1 answer
1k views

How to run a dockerized dnsmasq name server within a tinc VPN with only one process per container

I have a tinc VPN mesh network that is used by various types of hosts all over the world and I want to deploy a dockerized dnsmasq name server for use within that tinc mesh. I have already ...
pjv's user avatar
  • 101
2 votes
1 answer
1k views

Avoid Replacing DHCP-discovered DNS Resolvers?

I am on CentOS 7.4 attempting to configure dnsmasq for DNS caching and per-zone DNS servers for running Consul. Essentially, the dnsmasq configuration boils down to this: # filter everything with ...
Naftuli Kay's user avatar
  • 1,738
0 votes
1 answer
746 views

Distinct DNS zone for active directory (samba4)

I'm planning to use Samba4 as an AD domain controller in our local network to manage our ~30 Windows clients. But i still don't know how to integrate our current DHCP/DNS server(dnsmasq). I know that ...
OTBuzz's user avatar
  • 21
-2 votes
1 answer
362 views

dnsmasq: specific domain and subdomain to specific folders [closed]

I'm creating a website on my Raspi 3 and I want to link domains with the html folder to make it easier to access in the local network. I want to achieve the following: mydomain.example -> 192.168.0....
the_dani's user avatar
  • 107
1 vote
0 answers
329 views

Fedora 26: Docker, NetworkManager, dnsmasq startup order

I am using Docker with Consul. I have configured NetworkManager to use dnsmasq and I configured dnsmasq to listen on the Docker interface docker0. When the machine is booting, dnsmasq cannot find the ...
Thorsten Boock's user avatar
0 votes
1 answer
4k views

dnsmasq as local dns server

I have the following setup: box one: RHEL 7.3 NetworkManager pointing dns to /etc/resolv.conf /etc/resolv.conf pointing at the external IP of itself dnsmasq (configured by someone else) listening on ...
erikbstack's user avatar
0 votes
1 answer
2k views

Can dnsmasq return a NOERROR for a AAAA request on a synth domain?

I have an instance of dnsmasq running that is utilizing the synth-domain option. It's working great for A queries, however, it returns an NXDOMIN for a AAAA query. Here's an example of how to ...
theG's user avatar
  • 135
1 vote
2 answers
660 views

Are search domains from resolv.conf used only for A/AAAA queries?

Are the user provided search domains from resolv.conf used only for A/AAAA queries ? Are they used for any other purpose ?
Manohar's user avatar
  • 229
3 votes
1 answer
6k views

dnsmasq as authoritative DNS server with synth domain

I have a fair amount of DNS experience, however, I've never setup my own DNS server (I've always used 3rd parties); this is my first time trying to run my own DNS service. My desired setup: ...
theG's user avatar
  • 135
0 votes
1 answer
2k views

DNSMASQ eth0 doesn't get an ip address

The information below show's the current contents of my /etc/network/interfaces, /etc/dnsmasq.conf, iptables-save output and /proc/net/ipv4/ip_foward files. From the ifconfig -a information (shown ...
user3308131's user avatar
0 votes
1 answer
658 views

DNSMASQ on QNAP does not answer on OpenVPN connection DNS query

I have OpenVPN server installed on ASUS router with Advanced Tomato and on QNAP NAS. Both in the same LAN. Both units have installed DNSMASQ, and contents of DNS definitions are synced so practically ...
mackowiakp's user avatar
21 votes
4 answers
62k views

Find out which DNS server answered your query

I have a seemingly simple question but couldn't find the answer to precisely that question after some search: I know that, if I want to look up the IP address of some domain name, I type, for example: ...
Staki42's user avatar
  • 313
2 votes
1 answer
3k views

DNSMasq - Exclude some subdomains

We've got several machines set up with DNSMasq to run local development environments forwarding all .dev requests to 127.0.0.1 However we need to add some exclusions to this list, wondering how we'd ...
owenmelbz's user avatar
  • 173
1 vote
1 answer
3k views

KVM/Libvirt: How to make local DHCP leases available to local DNS server through dnsmasq

On Ubuntu 17.04 with libvirt 3.0.0 I have multiple virtual networks defined on my Server: # virsh net-list --all Name State Autostart Persistent ----------------------------...
jean-christophe manciot's user avatar
4 votes
1 answer
23k views

Is it possible to add a wildcard CNAME into dnsmasq?

I would like to let the DNS works in round robin way. So I have to put an entry into /etc/hosts. However, this does not allow wildcard domains. Is there any way that I can do this in dnsmasq? So I ...
Wang's user avatar
  • 322
0 votes
1 answer
8k views

Multiple subnets with dnsmasq

I've done some research on dnsmasq and its ability to DHCP several subnets, but it sadly only seems to work when there are multiple interfaces as shown in the configuration below: interface=eth0 ...
user5740843's user avatar
0 votes
1 answer
265 views

Ghost MACs roaming my network

I'm using a router with dnsmasq providing dhcp services. From some time my laptop is not getting assigned IP. The router complains: May 13 08:16:01 dnsmasq-dhcp[432]: DHCPREQUEST(br0) 192.168.1.234 ...
user100858's user avatar
4 votes
1 answer
7k views

Remove libvirt's dhcp lease entry using virsh

Using: $ virsh version Compiled against library: libvirt 1.3.1 Using library: libvirt 1.3.1 Using API: QEMU 1.3.1 Running hypervisor: QEMU 2.5.0 $ $ $ lsb_release -a No LSB modules are available....
Amir Keibi's user avatar
0 votes
2 answers
8k views

dnsmasq ignores queries from non local network

I've configured a dnsmasq service into my servers network. I can query it correctly from local server and "brothers" servers in the network. root@yyy ~# nslookup google.com 172.25.x.xxx Server: ...
Gonzalo Cao's user avatar
0 votes
2 answers
722 views

Skip queries to self address in DNSmasq

Debugging a DNSmasq server using it's logs, I find a LOT of: dnsmasq: query[ANY] . from RANDOM-IP dnsmasq: query[ANY] . from RANDOM-IP dnsmasq: query[ANY] . from RANDOM-IP dnsmasq: query[ANY] . from ...
mencargo's user avatar
4 votes
1 answer
10k views

dnsmasq not responding DHCP requests that don't follow a DHCP discover

I have an instance of dnsmasq running on network namespace X, and I run dhclient (or any other dhcp client) from within network namespace Y to obtain an IP address on a given interface. The two ...
Ricky Robinson's user avatar
-1 votes
1 answer
928 views

Which iptables rules allow me to fake a remote DNS answer with a local DNS running on the router?

A machine has a DNS set to 8.8.8.8 The network router has an ad hoc DNS running (say dnsmasq) Which iptables rules allows to fake the response from the remote server 8.8.8.8 with the local router ...
user123456's user avatar
0 votes
1 answer
137 views

Mac based dns server?

Is it possible to return different IP for same domain based on the Mac(or any other thing) of the client? For example, I have a dynamic.test domain used in localnet, when userA queries the IP of ...
Sato's user avatar
  • 459
0 votes
0 answers
42 views

How to ask dnsmasq to not allot few IPs

I am running DHCP server using dnsmasq. My DHCP server is configured to provide IP address from a subnet (say 192.168.49.0/24 with a gateway ip of 192.168.49.1) What i now want is that the DHCP ...
Gaurav Parashar's user avatar
2 votes
1 answer
14k views

Trouble with DnsMasq, DHCP proxy, PXE for UEFI clients

I'm trying to setup a PXE server with dnsmasq as a dhcp-proxy. It works well with client-arch=0 (x86 legacy clients) but UEFI client doesn't even terminate the DHCP packets exchange with the PXE ...
Patrick Roncagliolo's user avatar
0 votes
0 answers
5k views

dnsmasq does not resolve local adresses

I am setting up a dnsmasq server at the moment with the capabiltity of acting as a DHCP server. Ive done a basic setup yet. My goal was to have a DHCP Server here that also resolves names and makes ...
Nidhoegger's user avatar
2 votes
0 answers
775 views

dnsmasq not caching for non-public dns servers

I tried to configure my dnsmasq to forward requests to different dns servers depending on the domain. server=/a.example.org/192.168.a.a server=/b.example.org/b.b.b.b server=/c.example.org/8.8....
greyjedi's user avatar
0 votes
1 answer
3k views

How to find out ip address of new virtual machine using libvirt 0.10.0+ (routed network)

My goal is to find out ip address of new virtual machine by using libvirt api only (>=0.10). Currently I am using libvirt's net-update command: before start a new machine I set static dhcp entry for ...
kubus's user avatar
  • 183
0 votes
0 answers
82 views

How to map a hostname to IP with custom logic?

I need to resolve hostnames with the next logic: r0z0n0 10.0.0.0 r10z15n120 10.10.15.120 r255z255n255 10.255.255.255 and so on. I don't want to have 16,581,375 records. It is better to use a ...
Oleksandr's user avatar
  • 763
0 votes
0 answers
960 views

How to DNS Fallback if host not resolvable

For a few docker containers I need a link between containers. This is done by docker-compose and works like a charm if (and that is sometimes the problem) the container is up. I am looking for a ...
Bastian Bringenberg's user avatar
9 votes
3 answers
12k views

DNSMASQ config for captive portal

I am trying to create a captive portal wifi hotspot. Aim of the setup: Users connecting to hotspot through wlan0 should never be allowed to access the internet through eth1. For the "Sign into ...
55597's user avatar
  • 141
1 vote
1 answer
3k views

Running dnsmasq in docker container on Debian - check_dhcp ignores dnsmasq

I'm testing configuration for my dnsmasq DHCP on my Virtualbox Debian machine. On production I want dnsmasq to provide static IP addresses to guest systems running via qemu + libvirt + openvswitch ( ...
sebastian_t's user avatar
2 votes
0 answers
1k views

Android not detecting captive portal on access point

I have an access point hosting a login page (which doesn't have actual internet access) and I'm using dnsmasq to answer all DNS requests with the IP address of this page. If an android device connects,...
Awais Chishti's user avatar
-1 votes
1 answer
1k views

Resolve keywords and https on dnsmasq

Using address=/#/192.168.2.1 on /etc/dnsmasq.conf to resolve all domain names for example google.com redirects you to 192.168.2.2 and got that working. Now how do you resolve any keyword on the ...
Guest's user avatar
  • 1
3 votes
1 answer
3k views

DNSMasq doesn't resolve non-routable IPs on public domain names

Our DNSMasq is not able to resolve A, CNAME nor Alias records from public domains that specify private IP addresses. For example: $ nslookup > server 172.16.1.1 Default server: 172.16.1.1 Address:...
Eric Duncan's user avatar
0 votes
1 answer
257 views

dnsmasq address format if subdomain is fixed

I have the following apache vhost_alias configuration: <VirtualHost *:80> UseCanonicalName Off ServerAlias localdev.* VirtualDocumentRoot /home/test/workspace/%2+/site ErrorLog ${...
budji's user avatar
  • 111
0 votes
1 answer
43 views

Mirantis Fuel KVM migration causing DNS to fail

Has anyone had experience migrating a KVM based Fuel installation? I copied the .qcow2 disk image to the new host, did a virsh dumpxml, and defined the domain on the new host. That part works ...
Ryan's user avatar
  • 147
0 votes
1 answer
2k views

DHCP (dnsmasq) assigns wrong IP (after openSUSE upgrade)

Setup: I have two servers A and B. Server A runs dnsmasq and should assign a static IP to B (using hostname "vm03"). This IP is set in /etc/dnsmasq.conf (extract below): domain-needed local=/my-...
Philip Allgaier's user avatar
0 votes
2 answers
2k views

Apache2 Vhosts and DnsMasq, unable to access website from another computer over LAN : ERR_CONNECTION_REFUSED

I'm currently setting up a web server over my LAN to satisfy some needs like using Phabricator or other intranet services. To do this, I installed apache2, php5, mysql and DNSMASQ which allows me to ...
CrazyYoshi's user avatar
0 votes
1 answer
557 views

dhcp list dnsmasq without hostname for centos clients

I have a DHCP and DNS server setup with dnsmasq. Connected to it, I have Windows, Ubuntu and CentOS servers. Windows and Ubuntu servers are working normally, both the DNS and DHCP, however the CentOS ...
Ev.'s user avatar
  • 128
0 votes
1 answer
773 views

Only use dnsmasq for specific devices

I have a very simple dnsmasq setup, where the server with dnsmasq is the main DNS server in the network and all requests, except for hosts specified in /etc/hosts, are just passed through. What I'm ...
jangxx's user avatar
  • 91
2 votes
2 answers
8k views

How to disable open recursive dns in dnsmasq?

How do I secure my DNS server (dnsmasq)? According to a testsite, my DNS server can be exploited
oOc's user avatar
  • 131
0 votes
1 answer
1k views

manually configure resolv.conf

I am trying to setup dnsmasq on my machine, however I am having an issue with setting the order or nameservers correctly. My interface is assigned DNS servers via NetworkManager and DHCP, and those ...
Matt Clark's user avatar

1
3 4
5
6 7
9