Ubuntu :: Dnsmasq Will Not Apply Changes In /etc/dnsmasq.conf?

Dec 27, 2010

ubuntu: 10.04dnsmasq: 2.52-1ubuntu0.1I've installed dnsmasq and it is performing DNS duties correctly. I'd like to limit access to the dnsmasq service to a specific address or interface. I've tried adding variations and combinations of the following to /etc/dnsmasq.conf:



View 1 Replies


Debian :: Running Dnsmasq In Lenny - Wvdial Connecting But Dnsmasq Doesn't Work

Dec 30, 2010

I am running dnsmasq in debian lenny, wvdial connecting but dnsmasq doesn't work, the /var/run/dnsmasq/resolv.conf file is empty this is /var/log/syslog:

The /etc/resolv.conf and /etc/resolvconf/run/resolv.conf is ok:

This is my /etc/dnsmasq.conf:


View 3 Replies View Related

Software :: Is It Possible To Setup DNSMASQ

Apr 19, 2010

Is it possible to setup DNSMASQ so that it respects the TTL it is given by the upstream DNS server, but it sends out a fixed TTL to its clients?My DNSMASQ server is running on the same local network as all its clients. I want all my clients to be served with a 5 minute TTL, regardless of what the actual domain uses. So for instance if google.com has a ttl of 60 minutes, then I want DNSMASQ to cache it for 60 minutes, but I want my clients to receive a TTL of 5 minutes so that they query my DNSMASQ server again every 5 minutes. I basically want to avoid having each client's OS doing any caching.

View 1 Replies View Related

Ubuntu :: Tried Apt-get Remove Dnsmasq. It Didn't Work?

Apr 4, 2010

What does it do?? Can i remove it??i tried apt-get remove dnsmasq. it didn't work

View 9 Replies View Related

Ubuntu Servers :: Dnsmasq DHCP Nor DNS Working?

Jun 11, 2010

I have been rtying for a couple of days now to set up a local dns/dhcp server with dnsmasq on a ubunut server 10.04 I followed the basic instructions from several websites, starting with the ubuntu community one, didnt work, then tried some other, and nothing.

In the server the dns works, i test with dig example.com and i can see the time difference, so dns is working. so the problem is not making the dns work but to make the server listen for dns and dhcp resquests and respond to them.

I have desactivated the dhcp from the router so thats not the problem. making a windows box ping the server works, so the network is configured correctly.

dnsmaq is listed as "LISTEN" on netstat, i read in some blog that it should be using ports 67 and 68 but those are no listed, neither i configured them in any moments, none of the instructions i followed mentioned sth about that. i even tried configuring the window box with the ips and dns accordingly and that wouldnt work either.

so in conclusin i have dnsmasq that does have dns set up but wont answer to any requests of either DNS nor DHCP.

View 1 Replies View Related

Fedora :: Dnsmasq For Dhcp To Setup Dns

Sep 2, 2011

Is dnsmasq important for dhcp to setup dns?

View 3 Replies View Related

Networking :: Dnsmasq Not Resolving How To Investigate

Feb 12, 2010

EDIT: The problem is more basic than dnsmasq. On testing to see if the nameservers are reachableCode:root@ps1:~# ping Network is unreachablePost title pre-pended with [DO NOT REPLY] dnsmasq on a recent Slackware 13.0 install is not resolving. Usually dnsmasq "just works". I have tried all the problem analysis techniques I know and am stumped.

First the symptoms:
root@ps1:~# vi /etc/dnsmasq.conf


View 1 Replies View Related

General :: DCHP Server Or Dnsmasq?

Jul 15, 2010

GUys im trying to setup a linux router w/in our network here in school, and i was using a fc13 as my linux router, i already setup iptables for linux masquerading.. i have a 20 winxp client connected to the said router with an ip of, on each client i manually configured all of the clients ip address.. i was wondering if i could use a dhcp server to ease the manual configuration.., i already installed a dhcp server. Note im a newbie, thus dhcp server will also provide dns resolution to winxp clients??,, on some thread that i read if the client is linux.. you will just need to add nameserver to the /etc/resolv.conf for each linux clients.. the clients that im using here is winxp, i was wondering if i could setup the server to distribute dns & also a dynamic ip to all the clients..w/c 1 is better?? DCHP server or dnsmasq??

View 1 Replies View Related

Server :: DNSMASQ - How To Automatically Add Hostnames

Jan 1, 2011

I am using DNSMASQ on a Debian 5.0.6. server. I configured DNSMASQ as DHCP server, and want it to answer local DNS requests. However, I am unable to use hostnames, and am forced to use IP addresses when pinging, opening a ssh shell on a remote server, opening a remote desktop to a windows system etcedtera.

Because I use DHCP, I can not hard code the ip addresses in the hosts file. How do I configure DNSMASQ so that i can use hostnames for computers who get their IP addresses from DHCP.

View 11 Replies View Related

Ubuntu Servers :: Nfs & Dnsmasq - Cannot Mount The Exports On Clients

Jun 4, 2010

On a Lucid server, dnsmasq is happily running DHCP together with a local DNS; although, in setting up NFS, I seem to have a small problem... I have /etc/exports referencing the hostname of the clients but these IPs change when the DHCP lease is renewed. Unless I restart NFS or run exportfs, I cannot mount the exports on my clients. I know that it would be good to make the all the addresses static; however, I was wondering whether there is another way to configure NFS such as possibly adding in a script to continually monitor /var/lib/misc/dnsmasq.leases and re-export accordingly?

View 3 Replies View Related

Ubuntu Servers :: Dnsmasq Does Not Serve Up Remote Tftp Ip?

Oct 25, 2010

I have it working fine when tftp and dhcp are installed on the same server but when trying to forward to a remote tftp it does not work. Dnsmasq insist on giving its local ip.I have added to config:dhcp-boot=pxelinux.0,pxetest2, I tried with and without the original hcp-boot=/var/lib/tftpboot/pxelinux.0Not much on this topic on the google nor on the dnsmasq homepage.

View 1 Replies View Related

Fedora Networking :: Failing To Configure Dnsmasq?

Jun 11, 2009

I have configured a Fedora 10 server on a mixed Win / ix network but am unable to get DNS to resolve on my Fedora boxes.My DHCP is provided from a D-Link 108G Router - but this will not provide DNS.Therefore I have tried to configure dnsmask to provide just DNS and not DHCP. I can ping around my 192.168.1.x network by IP but not name

View 4 Replies View Related

Debian :: Setup Dnsmasq On A Network That Already Has A Router?

Feb 17, 2010

I am trying to get more control of my small office network. It consists of several windows workstations, a debian box, and a ZyXEL P-660HW-D1 router, Right now, the only way to reach the debian box from other computers is to type in its ip address.

The goal is to be able to reach the box by just typing ://debianBox into my browser, though ideally I want to set it up to be something like ://debianBox.officenet, and to also reach other people's computers by typing ://mattBox.officenet and ://fredBox.officenet

The Zyxel router has a LAN page with a DHCP Setup tab with fields setup like so In the past I was able to mange this using an Orange router, but now I have to use the ZyXel.

So I installed dnsmasq on the debianBox, but I do not know how to configure it to get the results. I want and still get internet fromthe Zyxel router.

In the etc/hosts file of the debian box I added debianBox, and for testing on my windows machine I set the primary dns entry of the Ip4 connection to as well, but typing ://debianBox in my browser still gives me not found.

View 4 Replies View Related

Debian :: Cannot Browse Internet With DNSMasq In Lenny?

Dec 29, 2010

In debian lenny I use the dnsmasq as dns resolver, and wvdial to connect to isp, the wvdial connect to the isp but cannot browse the internet with firefox, these are what is done:

Dec 28 21:19:53 jan pppd[8398]: pppd 2.4.4 started by root, uid 0
Dec 28 21:19:53 jan pppd[8398]: Using interface ppp0
Dec 28 21:19:53 jan pppd[8398]: Connect: ppp0 <--> /dev/ttySHSF0
Dec 28 21:19:54 jan pppd[8398]: PAP authentication succeeded
Dec 28 21:19:54 jan kernel: [ 2655.428889] PPP BSD Compression module registered
Dec 28 21:19:54 jan kernel: [ 2655.500676] PPP Deflate Compression module registered
Dec 28 21:19:54 jan pppd[8398]: local IP address
Dec 28 21:19:54 jan pppd[8398]: remote IP address
Dec 28 21:19:54 jan pppd[8398]: primary DNS address ....

cat /etc/resolv.conf:# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# Do not edit this file by hand -- Your changes will be overwritten
nameserver ....

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=255 time=190 ms
64 bytes from icmp_seq=2 ttl=255 time=249 ms

# ping
PING ( 56(84) bytes of data.
From icmp_seq=1 Destination Host Unreachable
From icmp_seq=2 Destination Host Unreachable

this is my /etc/dnsmasq.conf:

this is the epipheny browser error:
"[URL]" could not be found.

Check that you are connected to the internet, and that the address is correct. If this page used to exist, you may find an archived version: in the Google Cache.

View 2 Replies View Related

Networking :: DNSMasq - Cannot Ping Win7 Machine By Name

Mar 4, 2011

This is the scenario: gentoo box (distro shouldn't be relevant here) and win7 box. Gentoo box is dhcp and dns server, via dnsmasq. From win7, I can ping gentoo by both ip and name. No problem there. From Gentoo, I can ping win7 by ip, but not by name. The dnsmasq log seems to receive the name ok, it's "Tere-PC". I have been looking around for many hours now and I know there must be something simple I am not taking into account.

dnsmasq-dhcp: 55480937 available DHCP range: --
dnsmasq-dhcp: 55480937 client provides name: Tere-PC
dnsmasq-dhcp: 55480937 vendor class: MSFT 5.0 .....

# ping Tere-PC
ping: unknown host Tere-PC
Is there any way that dnsmasq, which is supposedly a dns server, will link this name to the given ip?

View 1 Replies View Related

Networking :: Set The TTL To 2 Days For All Stuff Cached By Dnsmasq?

Mar 20, 2011

I have 2 questions:

1. How can I set the TTL to 2 days for all stuff cached by dnsmasq?

2. When I go to [URL] from my browser and then execute [URL] the query time returned is > 0 ms. When i execute it again it is 0 as it should be. So is dnsmasq not caching the domains looked up by my browser or what? in /etc/resolv.conf I have only and for the upstream servers I have a different file that is only used by dnsmasq.

View 1 Replies View Related

General :: Dnsmasq Service Not Running - Bad Option

Jan 29, 2011

It says that this is a bad option
I am very new to linux but it says that's a bad option to why my dnsmasq service isn't running.

View 10 Replies View Related

Server :: View The Dhcp Clients Over Dnsmasq?

Jul 23, 2010

Is there anyway how to view the dhcp clients over dnsmasq?

View 1 Replies View Related

CentOS 5 Networking :: Dnsmasq Not Starting Correctly?

Nov 2, 2009

Since latest large update to CentOS 5.3, which also upgraded to 5.4, I have problem with dnsmasq. CentOS is real server on real hardware (not virtual). I use dnsmasq as dhcp server as usual. On hardware startup or reboot, these lines are included in /var/log/messages

Nov 2 19:06:16 server avahi-daemon[2965]: New relevant interface eth0.IPv4 for mDNS.
Nov 2 19:06:16 server avahi-daemon[2965]: Joining mDNS multicast group on interface eth0.IPv4 with address


View 14 Replies View Related

Ubuntu Networking :: Connection Sharing With Network Manager And Dnsmasq?

Jan 1, 2010

how to change the IP range provided by default by Network Manager / dnsmasq from 10.42.43.-- to something else?

I have setup a working network using a Bell wireless modem (Canada) and Network Manager in 8.10, 9.04, and 9.10.to do Internet connection sharing. In 8.10 the only way I could get it to work was with WICD and KPPP, many hours spent on this one. I got it to work in 9.04 and 9.10 using network manager, but certainly not out-of-the-box. If someone would like some tips on how I did it, in each case, let me know.

My current challenge is trying to set the dhcp range of dnsmasq (which I am 99% sure is what is handing out addresses) from th 10.42.43.-- address range to a 192.168.0.-- range.

I HAVE edited /etc/dnsmasq.conf and can get the edits to this file to break the setup (dnsmasq will not start) but have not been able to get it to change the IP address range.

It seems that either this file is ignored, or overridden by some other process. I have looked at the very good post at [URL] about dnsmasq but this does not do the trick.

By the way, the way I can get this to work is to start NM, establish my cellular internet connection, then kill dnsmasq then establish my ICS network (on eth0). If I don't kill dnsmasq, then it does bring up the connection, but it then shuts down in a matter of seconds. It is all very manageable using a launcher (kdesudo pkill dnsmasq) on the task bar, but not all that elegant.

the IP range and where this is provided to Network Manager or the network itself is my real question now.

View 7 Replies View Related

Ubuntu Networking :: Hostname.local Addresses On Windows (using Dnsmasq)

May 5, 2010

I'm trying to get the Windows machines on my network to access hostname.local addresses. I want to do this without setting up extra software or settings on the Windows computers.

I already have dnsmasq on my server handling all DHCP and DNS requests. How can I get dnsmasq to return an IP address for a .local address?

View 9 Replies View Related

Ubuntu Networking :: Low Retention Duration For Cached Addresses By DNSMASQ

Nov 12, 2010

I am experiencing severe DNS delays today, so I tried to install DNSMASQ by following the instructions given on several pages on the web to make it function as a local DNS cache.

The installation was successful, and after editing the configuration files as instructed, I now have a working DNS cache on my computer.

However, it seems that the addresses are not cached for a long time ; for a given domain, the speedup lasts for a few minutes. If I try to access a previously visited domain once more after several minutes, a new (slow) external lookup is made.

Since websites' IP addresses are not changed every five minutes, would there be a way to tell DNSMASQ to keep the IPs in the cache for a long time (several hours at least) ?
This is very important for me because the DNS lag that I am experiencing makes external lookups last 10 to 20 seconds.

View 1 Replies View Related

OpenSUSE Network :: No DNS Caching Until Manually Restart Dnsmasq?

May 29, 2010

My upstream DNS server is a bit slow, so I've installed the dnsmasq cacher locally. I have the service starting on runlevels 2, 3, and 5. But I can tell by Firefox's behavior that dnsmasq does not work upon boot. Firefox lets its own DNS cache expire after 60 seconds. When I do my second Google search five minutes after my first, the second DNS lookup for www.google.com is just as slow as the first.If I manually restart the dnsmasq service, I get the fast name resolutions I expect.

View 2 Replies View Related

General :: Dnsmasq Without Altering /etc/hosts File Manually?

Jul 19, 2011

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information from clients.

The outcome of this is that i can only ping a node by hostname if i know it's address, which means setting a static dhcp allocation and putting the hostname into /etc/hosts manually, which is very annoying and kind of defeats the poit of dhcp. There must be a way to get dnsmasq to update the hosts file, surely The clients aren't using fqdn's if that matters, and i think i've tried every combinination of "expand-hosts" and "domain=" following is the dnsmasq config file contents:



View 2 Replies View Related

Networking :: Installed Dnsmasq To Speed Up Dns Querry For My Network

Dec 20, 2010

I installed dnsmasq to speed up dns querry for my network. i didn't really change any thing in my dnsmasq.conf file. i only just put my upstream dns addresses in resolv.conf. i have dchp running and configured to issue the ip address of the system running dnsmasq as dns ip to the dhcp clients. But i have noticed that if i do ipconfig /all on my windows clients, instead of the dnsmasq server ip showing, i still see the dns ip of my upstream provider. by this, iam assuming that the client are not using the cache even though the service is running on the server.

View 6 Replies View Related

Networking :: Network Sharing Work After Disable Dnsmasq?

Mar 17, 2010

I'm sharing the wireless signal (wlan0) on my fedora 12 machine.However, when the computer starts up I have to execute:> service dnsmasq stopOnly after this, will the computer share the internet signal (through eth0).Why is that? Should I uninstall dnsmasq?I've already removed it from chkconfig:> chkconfig --del dnsmasq

View 4 Replies View Related

Server :: Dnsmasq.lease File + Description Of Its Contents?

May 4, 2011

iam running dnsmasq on my target board , my dnsmasq.conf has following configurations

# cat /var/etc/dnsmasq.conf


View 1 Replies View Related

CentOS 5 Networking :: DNSMasq Update Looking For Config File

May 26, 2010

I did a yum update this morning that included a dnsmasq update. Subsequently, for an unrelated reason, I restarted dnsmasq, but it failed because /etc/dnsmasq.d didn't exist. It looks like my /etc/dnsmasq.conf file now includes "conf-dir=/etc/dnsmasq.d" at the end. Since dnsmasq was starting and I didn't remove dnsmasq.d, I assume this line was added by the update. Commenting the line resolves the issue.

An alternative hypothesis, given that I don't really know what the state of /etc/dnsmasq.conf and /etc/dnsmasq.d/ was before the update, might be that the directory did exist, but was removed by the update. I find this the least likely of my 2 stated hypotheses. (There are other hypotheses, but I think they are even less likely). Am I correct is concluding the conf-dir line was added by the update? If so, shouldn't the updated RPM create the directory during install?

View 6 Replies View Related

CentOS 5 Networking :: Dnsmasq Dhcp - DNS Server Does Not Respond

Jan 9, 2011

I got a CentOS server setup as a dhcp server using dnsmasq. I followed this guide more or less: [URL] So, the problem seems to be concerning the DNS server on the clients. In windows I get the "limited connectivity" icon for the network, and when I select troubleshoot it says the DNS server does not respond. Issuing 'ipconfig /all' clearly shows the IP of the CentOS machine as the DNS server, which should be correct, yes?

ETH0 is working as WAN connection and that works great.. no problem with the WAN connection at all on the CentOS machine. ETH1 has the IP and mask When starting eth1, it sometimes says that it can't start eth1 because the IP is already in use.. but that is most certainly not the case. Maybe there's some kind of issue here that messes with the DNS? What's mind boggling is that it works great on a linux machine (dhcp client) and on a windows xp machine. but it does not work on the windows 7 laptop and a vista laptop and a pda device.

View 1 Replies View Related

OpenSUSE Network :: Name Resolution On Multi-homed Networks Using Dnsmasq?

May 11, 2011

I have a DNS server (dnsmasq v2.55) at the center of three subnets: x.y.1.0/24, x.y.2.0/24 & x.y.3.0/24. dnsmasq does a grand job of issuing a suitable DNS server address with the DHCP option 6. So, machines on subnet x.y.3.0/24 are told that the DNS server is x.y.3.2, machines on subnet x.y.2.0/24 are told that the DNS server is x.y.2.2 and machines on subnet x.y.1.0/24 are told that the DNS server is at x.y.1.2. Even though the DNS server is the same box (although with three nics).

Now the question is:
How do I make dnsmasq respond similarly to name resolution requests? So that when:
Machines from x.y.3.0/24, ping <name of DNS server> dnsmasq returns x.y.3.2,
Machines from x.y.2.0/24, ping <name of DNS server> dnsmasq returns x.y.2.2, and
Machines from x.y.1.0/24, ping <name of DNS server> dnsmasq returns x.y.1.2.

Currently, the DNS server returns the IP address that is assigned in /etc/host. Which, of course can be changed, but via that mechanism, will always be wrong two out of three cases.

View 4 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved