Questions tagged [dnsmasq]

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

407 questions
10
votes
1 answer

dnsmasq: failed to create listening socket: Address already in use

The OS is Scientific Linux 6.3 (which is similar to redhat, centos and fedora) and I have installed dnsmasq with the following…
mahmood
  • 962
  • 7
  • 18
  • 31
9
votes
2 answers

dig & nslookup can't resolve local hosts unless I specify the (local) DNS server to use

I am setting up a small private network within my University network. I have a Centos 6 box (sun) sitting between my private network and the university WAN. eth0 on the sun is connected to the WAN and eth1 to my private network via a netgear smart…
Gavin Simpson
  • 285
  • 1
  • 5
  • 11
9
votes
2 answers

Why nslookup doesn't use mdns while ping do?

In dnsmasq.conf: address=/local/127.0.0.1 In resolv.conf: # Generated by NetworkManager domain example.com search example.com nameserver 127.0.0.1 nameserver 10.66.127.17 nameserver 10.68.5.26 I can use nslookup: # nslookup www.local Server: …
dspjm
  • 205
  • 2
  • 5
9
votes
6 answers

dnsmasq reading /etc/hosts, but not using it

I've done a default install of dnsmasq. When I run dig, it seems to be using dnsmasq (127.0.0.1), but the results don't include the hostnames included in /etc/hosts. /etc/hosts: 192.168.1.13 sun in a terminal: $ dig sun ; <<>> DiG 9.6-ESV-R4 <<>>…
Zach Dwiel
  • 91
  • 1
  • 1
  • 3
8
votes
1 answer

Forward dns request to another dns server

How can I forward configure my local dnsmasq so requests with hostnames ending with .docker are forwarded to another nameserver, while other requests are still handled locally ? I have looked for an /etc/dnsmasq.conf file on my system but could not…
greg0ire
  • 316
  • 1
  • 6
  • 26
8
votes
2 answers

How to serve custom dns to dhcp clients in openWrt?

I would like to serve custom DNS server to dhcp clients. How I can achieve that in openWrt?
pixel
  • 183
  • 1
  • 1
  • 5
7
votes
4 answers

dnsmasq: how to increase TTL?

Is there a way to override & increase the received TTL from an upstream DNS server? Is there a configuration parameter in dnsmasq for this?
jldupont
  • 1,779
  • 4
  • 23
  • 27
7
votes
2 answers

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 wifi network" to appear on android, iphone and any…
55597
  • 121
  • 1
  • 7
7
votes
5 answers

How do I MAC filter with DHCP server

I want to Only allow certain MAC addresses to get a IP from my DHCP server, currently I use dnsmasq and I rather not change dhcp server but I'm open to other software aswell. However, I need to be able to set static IP addresses for specific MAC…
Joelbitar
  • 195
  • 1
  • 1
  • 6
6
votes
3 answers

Bind dnsmasq DNS to just localhost (127.0.0.1)

I would like to ask a question about configuring of dnsmasq DNS server. I know about such configuration option as "listen-address". But even if I set this option to "listen-address=127.0.0.1" dnsmasq still open port on both internal 127.0.0.1:53 and…
6
votes
1 answer

Is it possible to override a single domain name using dnsmasq?

I have a server application that I'm running two instances of, production and development, namely: prod.example.com (10.0.0.1) dev.example.com (10.0.0.2) A third-party has written a client application which has been hardcoded to point to…
Matt
  • 322
  • 1
  • 3
  • 11
6
votes
1 answer

Access libvirt+KVM virtual machines with DNS

I have an Ubuntu Trusty machine running KVM + Libvirt to manage small virtual machines, and using the standard NetworkManager to connect to regular networks. I want to be able to access the virtual machines via DNS from the host. Libvirt uses a…
6
votes
3 answers

DNS lookup aliasing of hostnames (not IP aliases), probably via dnsmasq

I'd like to be able to set up a host, say "eg", to be an alias to some server on the internet, say "example.example.com". I just need this functionality to be available from my local machine. I'm running dnsmasq on that machine, which is running…
intuited
  • 405
  • 1
  • 5
  • 12
6
votes
5 answers

How can I override TTL of an Internet Address?

I'm running a caching DNS server currently to improve latency in a network. The question is: can I override the TTL I get from a server using BIND9 or other software on Linux? short "dig www.google.com" here: ; <<>> DiG 9.6.1-P2 <<>>…
OmniWired
  • 139
  • 1
  • 1
  • 6
5
votes
1 answer

Large AXFR through dnsmasq causes dig to hang with partial results

I'm attempting to set up dnsmasq as a local cache for consul. While this seems to work fine for normal digs, dnsmasq seems to only allow partial zone transfers. My resolv.conf: search x.domain.com y.domain.com z.domain.com domain.com nameserver…
Connor Bell
  • 136
  • 1
  • 7
1
2
3
27 28