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
2
votes
0 answers

AWS AmazonProvidedDNS appears to not respecting TTL - can we do anything?

We have several servers on AWS EC2 that are not obeying TTL values from DNS. Route tables are set up to us "AmazonProvidedDNS" It appears the the "AmazonProvidedDNS" limits TTL to 60 seconds. Q: Is this caused by AWS DNS server adjusting the TTL in…
Robbie
  • 289
  • 4
  • 14
2
votes
1 answer

Dnsmasq not giving out second DNS

Dnsmasq version 2.79 on MacOS 10.12.6 using Homebrew. This is my dnsmasq config: # Never forward plain names (without a dot or domain part) domain-needed # Never forward addresses in the non-routed address spaces. bogus-priv # If you want dnsmasq…
Ton Machielsen
  • 121
  • 1
  • 3
2
votes
1 answer

How to set the -h, --no-hosts for KVMs dnsmasq instance

I have KVM based VMs running on my laptop and the VMs getting names resolved via KVM's dnsmasq DNS server. However the KVM's dnsmasq DNS server resolves also names in the hosts /etc/hosts file which causes me some troubles. Therefore I want to…
hhue13
  • 23
  • 3
2
votes
1 answer

How to debug dnsmasq requiring a service restart in order to work?

On a server of mine, I have dnsmasq setup; it is configured as another server, where it works (although, with other hardware and o/s). On this specific host though, dnsmasq doesn't work after boot (the clients can't resolve names), but it does, if I…
Marcus
  • 242
  • 1
  • 3
  • 10
2
votes
1 answer

Do Dnsmasq's static DHCP entries match on client-id or MAC by default?

I've had some strange lease assignments seemingly at random, and reading through the manpage, it shows the syntax can be: dhcp-host=34:27:01:5d:60:ad, test-pc, 192.168.1.10 dhcp-host=id:some_client_id, test-pc,…
2
votes
1 answer

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 :…
Chitholian
  • 131
  • 1
  • 7
2
votes
1 answer

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 consul in the name and send to local consul…
Naftuli Kay
  • 1,708
  • 6
  • 24
  • 44
2
votes
1 answer

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 server, and not even a pxe-prompt (setted with…
2
votes
0 answers

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.8.8 Now caching doesn't work for a and b. I…
greyjedi
  • 29
  • 4
2
votes
0 answers

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, I want it to know that it's connected to a…
2
votes
2 answers

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
  • 131
  • 1
  • 3
2
votes
1 answer

dnsmasq, address of host with no TLD with address=

We want dnsmasq to resolve a name for a local host. When using the address=/host/address syntax, if host has no TLD (as shown), it does not resolve. It turns it into a FQDN, which causes it to return the name of the local Microsoft domain…
2
votes
2 answers

Does dnsmasq provide any benefit in this environment?

Consider a private network over several sites, each one having its own DNS server(s) for resolution of internal private IP/hosts. No DHCP needed. Any server has dnsmasq running, 127.0.0.1 set as DNS (within resolv.conf) and dnsmasq configuration…
kuma
  • 158
  • 9
2
votes
1 answer

dns cache problems on the dnsmasq?

Dnsmasq have been installed on my os. cache-size=1024 was written in /etc/dnsmasq.conf. 1.how to list all the dns cache on my dnsmasq? 2.how to keep the dns cache expiration till 3600 seconds on dnsmasq?
showkey
  • 115
  • 1
  • 4
  • 19
2
votes
0 answers

DNS forwarder that always resolves

I would like to set up a basic DNS forwarder that does two things. First, it simply forwards DNS queries upstream. Second, if the upstream DNS servers can not resolve a hostname then this DNS forwarder should return a garbage IP address like…
JamesStewy
  • 227
  • 2
  • 3
  • 8