Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network.

learn more… | top users | synonyms

3
votes
1answer
911 views

how can I combine dnsmasq and urlblacklist?

Is there a way to integrate dnsmasq and the popular urlblacklist.com list? I thought about adding all the entries with the -A flag, but that's a lot of hosts for dnsmasq to process, especially on a ...
2
votes
1answer
498 views

reverse usb tethering in strict dns environment

In the environment, all DNS query is blocked by firewall. And wifi or 3G is not allowed I want to let a rooted Android(192.168.42.2) accessing internet by plug usb on PC(192.168.42.1 for usb0 ...
2
votes
1answer
669 views

Create alias to local hostname

I have the following scenario: A host machine (OS X) and a guest machine (Ubuntu). The guest is running through Virtual Box, and the network configurations is set to "Bridged adapter". Both machines ...
1
vote
1answer
89 views

Native IPv6 on Debian Router

After my old Tomato USB router died I started using an old netbook with Debian Wheezy installed as my home router. I have two WLAN interfaces and one LAN interface. wlan0 has internet access and wlan1 ...
1
vote
1answer
90 views

Block (nullroute?) an IPv6 hostname using /etc/hosts

I'm trying to prevent my web browser from communicating with certain hosts (mostly ads and tracking). I have a list of such hosts in my /etc/hosts file. For IPv4 I can do: 255.255.255.255 ...
1
vote
1answer
816 views

dnsmasq fails to start on boot Ubuntu 13.10

dnsmasq fails to start on boot of Ubuntu 13.10, showing the error in the syslog: dnsmasq failed to create listening socket for 192.168.0.10: Cannot assign requested address When I start it ...
1
vote
1answer
707 views

Two DNS servers, one Windows, one Linux

I've got an issue with my home network - I have a DDWRT router running as a gateway and primary DHCP/DNS Server on 192.168.1.1 and a Windows Server 2008 machine running as a domain controller and ...
0
votes
1answer
24 views

How do I simulate a DNS server returning a SERVFAIL in response to a A query?

Goal When an A query returns an NXDOMAIN response, my java app throws an UnknownHostException. I would like to know if a SERVFAIL response from DNS servers caused java to throw this error as well. ...
0
votes
1answer
303 views

resolv.conf keeps getting overwritten when dnsmasq is restarted, breaking dnsmasq

I'm running Debian Jessie and I'm trying to configure dnsmasq as a caching DNS server. I used a guide to come up with the following /etc/dnsmasq.conf: listen-address=127.0.0.1 bind-interfaces ...
0
votes
1answer
255 views

Locate Host Name on LAN with DNSMasq

I am running DNSMasq as both my DHCP and DNS server on my DD-WRT router. I had thought that DNSMasq was adding hosts that it registered in DHCP to the DNS server automatically, but I have a few ...
0
votes
1answer
25 views

Restarting BIND service getting error

When I restart the BIND service getting this error from syslog named[4960]: /etc/bind/named.conf:15: couldn't add command channel 127.0.0.1#953: address in use Even when I execute nslookup ...
0
votes
1answer
190 views

dnsmasq: DNS request timed out for machines in local network

I have a vagrant machine running on my mac with virtual hosts I want to make available to my local network. I installed dnsmasq via brew and have the following in its /usr/local/etc/dnsmasq.conf: ...
0
votes
1answer
28 views

Custom entry in hosts file not directing to correct IP

I have an entry in my local hosts file pointing to: $my-server-ip development.$client-domain.com When I ping development.$client-domain.com, I get $server-ip, but when I visit it in a browser, I do ...
0
votes
1answer
107 views

dd-wrt translates DNS queries sent from LAN from public IP to private IP – how to stop this?

I recently got a router that has dd-wrt firmware installed into it. I'm running a HTTP server behind that router, and as it has a NAT, I have set the appropriate port forwardings. I also have a ...
0
votes
1answer
214 views

dnsmasq - Redirect URL request to guest VM

I am running Linux Apache on my local Parallels VM as a guest, my goal is: redirect an URL request (http://test.dev) from host (OS X) to Linux Guest. I had a local dnsmasq setup with MAMP (which ...
0
votes
1answer
134 views

Computer on home network resolves host name to different IP addresses

I have a computer on my home network that is also accessible from the internet through a dyndns host name. When I am at home, I need the xxx.dyndns.org host name for my machine to resolve to an IP on ...
0
votes
1answer
172 views

how to use use local nameservers with public domain?

I am testing a dynamic configuration of a nameserver on my local machine. I have a public domain (example.com) that I was trying to point its NS records to my private DNS but my registar does not ...
0
votes
1answer
85 views

install dnsmasq on fedora 19 without connection

I am trying to install dnsmasq-2.45.tar.gz on fedora 19 by offline I mean I downloaded the dnsmasq-2.45.tar.gz package from the internet and i am going to install this package without any connection. ...
0
votes
1answer
1k views

How to log all DNS requests made through OpenWRT router?

I have an OpenWRT router that is running dnsmasq. I want to create a file that has each domain that has been requested through the router. My output should looks something like this: google.com ...
0
votes
1answer
270 views

DNS server returns valid IP, but browser can't find server?

OK so I have my Raspberry Pi running a DNS server (dnsmasq), and I have my router set up to use it as the DNS server for the whole network. This was working perfectly until a few hours ago when I ...
0
votes
1answer
292 views

Can Dnsmasq or DNRD forward all DNS packets pass my router?

I have a embedded Linux box as a router which has two interfaces. One interface is connected to public network by dialing into ISP. Another interface (its IP is 192.168.1.1) is connected to LAN ...
0
votes
1answer
310 views

Restrict static IPs (Only DHCP) on Debian Squeeze

How can i restrict access to the Internet for users with static IPs? Can i disable free dhcp leasing? I'm running Debian Squeeze with dnsmasq as dhcp server. All users has their own ip, mapped to ...
0
votes
1answer
338 views

OSX running dnsmasq not always handling default dns queries

I'm a developer on OSX, I've always used .local for local sites im developing, Since ML I've been running DNSmasq to workaround the service query order so I can continue to use /etc/hosts to define my ...
0
votes
1answer
2k views

How to advertise iTunes Server using dnsmasq

How can I advertise an iTunes/DAAP-Server using dnsmasq? None of these entries worked for me: srv-host=_daap._tcp,192.168.1.100,3689 txt-record= _daap._tcp.192.168.1.100,port=3689 Tried to ...
0
votes
1answer
559 views

Is it possible to use dnsmasq to map example.local to IP:port?

I'm using a Linksys WRT54GL running the Victek Mod Tomato 1.25 firmware. It has support for dnsmasq. I also have a local server running on a certain IP and port. How can I map an internal domain name ...
2
votes
0answers
363 views

Using dnsmasq on OS X when not connected to the Internet

I'm routing dns requests through dnsmasq so that domains I'm using for local development point to 127.0.0.1. This works great when I'm connected to the Internet via Wi-Fi or ethernet, but I start to ...
1
vote
0answers
210 views

Windows 7 DHCP flooding server with requests

Am attempting to connect a Windows 7 laptop to a Debian server running dnsmasq. The Windows 7 machine doesn't seem to like the DHCP info it's getting as it re-requests it every ~10 seconds. The log ...
1
vote
0answers
157 views

how to pick addresses and DNSMasq server for PPTP VPN client (in DD-WRT)?

I must be confused about terminology for addresses my remote network uses, but I could not get my DD-WRT (build 20548) connect to the PPTP server. At least I could not even verify that I am connected ...
1
vote
0answers
96 views

dnsmasq doesn't get udp queries

I'm trying to setup dnsmasq on debian box to serve in my local network. dnsmasq seems to work. It listens on 53 port UDP and TCP. It answers queries (nslookup or dig) locally, but when I try to query ...
1
vote
0answers
535 views

Windows not recognizing local network domain name

I'm setting up a small network for a club that I'm a member of. The layout is a single server with two ethernet interfaces, connected to a wireless router and a wireless bridge. The bridge connects to ...
1
vote
0answers
252 views

Send local IP from VPN instead of remote IP

I'm trying to setup a server with L2TP and Apache. Some folders in the Apache config will only be accessible to those connected to the VPN. I do know that I can use the allow and deny rules with the ...
1
vote
0answers
883 views

IPv6 addresses in dnsmasq

As I need to use dnsmasq to route all requests on *.local to my local machine (and use there an IPv6 addresses), i set up the dnsmasq like this: /etc/dnsmasq.d/my-local.conf address=/local/::1 ...
0
votes
0answers
18 views

dnsmasq pass a url using dhcp option 43

I have been reading the documentation of dnsmasq and different examples found on internet but I have been unable to succeed. I am trying to pass a URL to the CPE using dhcp option 43. The CPE is ...
0
votes
0answers
10 views

How to redirect, ignoring path in url.com/path/path

In dnsmasq.conf, I redirect any domain url to an IP. If I enter "url.com/path/path", I get redirected to "IP/path/path". How can I redirect to IP only ? // NB : If I manage to work it out, I guess ...
0
votes
0answers
31 views

hostapd & dnsmasq Obtaining IP forever

I'm trying to set up a wireless access point using hostapd and dnsmasq but I can't get it to work. The AP works, but when I try to connect to it gets stuck on "Obtaining IP address". I see the ...
0
votes
0answers
47 views

DNSMASQ redirecting LAN user to webserver but this doesn't work on wifi

Iam trying to create wifi captive portal on raspberry pi so i've installed nginix server and DNSMASQ,after using dnsmasq for traffic redirecting it works only on LAN but not on WiFi..? how would i do ...
0
votes
0answers
47 views

Change dnsmasq from .dev to .local

I originally tried asking this question on apple.stackexchange.com, but I think it may be a bit beyond the scope of being just for macs (and therefore more of a server config issue), so had no ...
0
votes
0answers
58 views

How to get DD-WRT (dnsmasq) to serve DNS but *not* DHCP?

I want to configure a DD-WRT router just for local DNS resolution of a few names, and then fall back to my ISP's DNS server. I am using a separate router, the sole purpose of this DD-WRT router is as ...
0
votes
0answers
81 views

LAN access to home server using dnsmasq

I set up an OwnCloud server on a Raspberry Pi. To access it easily, I used a dynamic dns solution which points to my public IP. Every port is open and it works just fine when I access the server ...
0
votes
0answers
60 views

Using local DNS server in offline mode

Using OS X Yosemite I have dnsmasq running locally and it works great while I'm connected to a wireless network. However, once I go to adhoc mode or offline mode, the OS refuses to use any DNS ...
0
votes
0answers
88 views

Own DNS is very slow

I run my own DNS with Ubuntu 14.04 and dnsmasq on a VPS of my hosting provider. If I enter the DNS address in the network adapter on my windows machine, websites load very slow. It takes less than a ...
0
votes
0answers
30 views

dd-wrt internal dns resolves directly for a few hosts, with a “.” for a few hosts

I have a dd-wrt router, and a bunch of static leases. The machines themselves all acquire IP through DHCP. When I do a "nslookup host1" or "nslookup host2" the correct IP address is displayed. All ...
0
votes
0answers
33 views

Maximum clients with USB hotspot

I already asked this in "Unix & Linux" StackExchange forum, and they suggested me to ask the question here instead. So, here i am! I made a small access point using Hostapd, Dnsmasq and Debian ...
0
votes
0answers
77 views

How to configure dnsmasq to work with vmware fusion?

I am trying to set a local development environment in which every .loc domain will default to my ubuntu vm running with vmware fusion. Currently I have to add every domain in my /etc/host like ...
0
votes
0answers
123 views

hostapd virtual wlan interface no ip from dnsmasq

I have installed hostapd and also dnsmasq to ppovide dhcp only. On the virtual interfaces i do see the ssid and all. So hostapd seems to work fine( although i am not sure). When i try to connect to ...
0
votes
0answers
68 views

Ask dnsmasq the hostname used to find to an IP address

I know I can find a DNS name from an IP address by using a reverse translation DNS query. But that just gives me a DNS name for that IP. Instead, I'd like to find the DNS name that was used to find ...
0
votes
0answers
1k views

Dnsmasq running on raspberry pi will serve non-local DNS to ethernet but not wireless hosts

I have a Linksys WRV200 wireless router. I have just added a raspberry pi, connected via ethernet, working as a DCHP server and caching DNS server. Dnsmasq also serves local domain names. Dnsmasq ...
0
votes
0answers
321 views

dnsmasq returns 127.0.0.1 for lookup itself

This is a follow up to the question, Ping to dnsmasq's host resolvesto 127.0.0.1, because that answer doesn't work for me. It should work -- I found another one having the same answer: ...