Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dnsmasq and remote dns servers
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
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Oct 16, 2003 10:29 am    Post subject: dnsmasq and remote dns servers Reply with quote

I'm running a home network from a Gentoo box (192.168.0.1), which uses iptables for masquerading the net connection, dnsmasq for dns caching, and dhcpd for auto-configuration for network clients.

dhcpd is set up to give the other computers DNS server 192.168.0.1 and this is working as expected.

From what i gather about dnsmasq, on request, it will either read a stored dns entry from its own cache, or will contact my ISP's DNS servers to get a result (and cache it). I'm assuming that dnsmasq will contact my ISP's nameservers in the order that they appear in /etc/resolv.conf

Now- I would like the actual server (192.168.0.1) to be able to take advantage of the DNS caching too. But, if i add "nameserver 192.168.0.1" to the top of /etc/resolv.conf, will dnsmasq get confused and stuck in a loop querying itself?

are there better ways to achieve this?

thanks
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Lozzer
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2003
Posts: 84
Location: England

PostPosted: Thu Oct 16, 2003 8:08 pm    Post subject: The manual says... Reply with quote

use
Code:

nameserver 127.0.0.1

at the top of your resolv.conf to do this. It works for me.
dnsmasq will also look in your hosts file for local addresses.
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