View previous topic :: View next topic |
Author |
Message |
bigmauler Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/452349735432779b4dcc79.jpg)
Joined: 25 Apr 2005 Posts: 177 Location: Seattle, WA
|
Posted: Wed Jan 25, 2006 6:24 am Post subject: dnsmasq and forwarding local domains? |
|
|
OK I have setup dnsmasq to act as my dhcp server and my dns server.
After checking the logs it seems that if i ask for a box that doesn't exist on my local domain dnsmasq will forward it to my ISP's supplied dns server.
How can I keep anything that asks for mydomain.com to say local and not go out?
in my dnsmasq.conf I have
Code: |
local=/mydomain.com/192.168.0.0 |
set but I can see that it is still forwarded to my isp dns if the host names isn't found in my /etc/hosts.
Also do I have to keep an up-to-date hosts file on my server of the hosts and their addresses? Is there a way to have dhcp automatically add and delete hosts from the hosts file? _________________ Never take raisins from a rabbit |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flanksteak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/178001536543b8c4eb2382b.gif)
Joined: 27 May 2002 Posts: 49 Location: Seattle
|
Posted: Wed Jan 25, 2006 5:37 pm Post subject: |
|
|
Drop the IP address. The local option doesn't use it.
Change the setting to:
Code: | local=/mydomain.com/ |
and try it again. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|