Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dnsmasq and forwarding local domains?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bigmauler
Apprentice
Apprentice


Joined: 25 Apr 2005
Posts: 177
Location: Seattle, WA

PostPosted: Wed Jan 25, 2006 6:24 am    Post subject: dnsmasq and forwarding local domains? Reply with quote

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
View user's profile Send private message
flanksteak
n00b
n00b


Joined: 27 May 2002
Posts: 49
Location: Seattle

PostPosted: Wed Jan 25, 2006 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum