Questions tagged [dnsmasq]

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

425 questions
4
votes
2 answers

make dnsmasq ignore specific entries in /etc/hosts

I've set up a machine running dnsmasq, essentially serving its /etc/hosts file. However, there are specific entries which I want in that machine's /etc/hosts, but I don't want served. How can I make dnsmasq not serve them?
einpoklum
  • 1,652
  • 3
  • 21
  • 31
4
votes
2 answers

Redirect all DNS-Requests with dnsmasq

I have following scenario: I have set up an ad-hoc network with wicd on my server, and use dnsmasq as an dhcp- and dns-server. The network works very well, I can connect, get an ip address, and on all clients the nameserver is set to the IP of my…
Moe
  • 143
  • 1
  • 1
  • 3
4
votes
1 answer

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

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 DNS servers to resolve the private hostname and…
uberrebu
  • 503
  • 6
  • 17
  • 36
3
votes
2 answers

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 their one and only DNS server. Thus, my plan was…
Fang
  • 167
  • 1
  • 12
3
votes
0 answers

Dnsmasq unable to resolve local host

I'm unable to get my local DNS server to work and totally stumped. Here's what I have done so far to make it work... Dnsmasq configured on Ubuntu 18.04 ( Static IP: 192.168.1.100) /etc/resolv.conf nameserver 8.8.8.8 nameserver…
Geary
  • 41
  • 1
  • 3
3
votes
0 answers

dnsmasq: return default IP address if address cannot be resolved

dnsmasq allows to return an IP address for all DNS request: address=/#/192.168.1.1 This will overwrite all requests. But is there a way to return this address only if a query could not be resolved? Example: does-not-exit-123.com =>…
user497004
  • 31
  • 1
3
votes
1 answer

Edgerouter DNSmasq send updates to BIND

TL;DR: How do I configure the Ubiquiti EdgeRouter, running DNSmasq or DHCPd, and NSupdate, to send its DHCP leases to a central BIND server? I have a system comprised of a few Ubiquiti EdgeRouter X's all acting as DHCP and DNS servers for a local…
enpaul
  • 202
  • 2
  • 13
3
votes
2 answers

dnsmasq: one domain, half private, half public?

Our internal office network has the same top-level domain as our company online presence, e.g. ourdomain.com. For the outside world, any public hosts (eg. blog.ourdomain.com, download.ourdomain.com, www.ourdomain.com, etc.) are configured in the DNS…
ssc
  • 1,159
  • 3
  • 17
  • 30
3
votes
1 answer

How does DNSMasq integrate with my router?

Context I've successfully installed DNSMasq on a Debian machine and everything seems to be working. Here's what I did: install DNSMasq with sudo apt-get install dnsmasq update file /etc/dnsmasq.d/home.dns with the following contents: # General…
Panos
  • 45
  • 1
  • 2
  • 4
3
votes
1 answer

dnsmasq proxyDHCP PXE and EFI "start_image() returned Invalid Parameter"

I'm tying to install a PXE install server with dnsmasq in proyxDHCP mode. So far legacy BIOS install is working. When I try to use EFI it fails. With dhcpd the EFI boot is working. Therefore the shim.efi file should be fine. Unable to fetch TFTP…
qwertbert23
  • 41
  • 1
  • 6
3
votes
1 answer

Linux DHCPv6 server for PD on ppp interfaces

I need to configure prefix delegation on PPPoE. What is the best DHCPv6 server implementation for this? So far I checked the following: isc-dhcp-server - doesn't work with PPP interfaces dibbler - works, but needs all the interfaces to be present…
3
votes
1 answer

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 for master). I now want to run several…
rcv
  • 185
  • 1
  • 7
3
votes
1 answer

Is there an alternative to "dnsmasq"?

What is the recommended alternative to dnsmasq? I am looking at overriding/configuring the TTL. (Probably the only thing I miss from Windows is the fact that it was more aggressive in caching DNS responses than Linux)
jldupont
  • 1,849
  • 4
  • 24
  • 27
3
votes
1 answer

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: authoritative dns server synth (artificial) domain…
theG
  • 135
  • 1
  • 5
3
votes
1 answer

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 will get something like: *.test.example. …
Wang
  • 292
  • 1
  • 2
  • 11