Jason Copenhaver wrote:
>IP addresses are hadned out by a DHCP server.. usually dhcpd .. BIND
>handles the name -> ip address resolution.. it is a DNS server..for a
>small home network (mine has 3 machines) I use a DHCP server.. and then
>just host files.. because the IP addresses of each machine rarely change..
>
>
I have the same kind of setup, and my dhcpd server is also my masquerade
server (dialup). I run "dnrd" (look on Freshmeat). Dnrd is a DNS
redirection daemon (proxy-ish). All of my LAN machines are told that
their only nameserver is my dnrd box. In /etc/ppp/ip-[up,down] the
running dnrd daemon is changed so that while I am connected to the 'net,
my dnrd process looks like:
/usr/local/sbin/dnrd --cache=off -s 207.69.188.185 -s 198.80.0.6
when I am not on the 'net, my dnrd process looks like:
/usr/local/sbin/dnrd --cache=off
So, dnrd only tries to do remote DNS lookups while I am connected. When
I am offline, dnrd immediately retruns "Address not found" (whatever
message BIND uses).
Furthermore, dnrd is willing to serve-up your /etc/hosts file (or
another file with the same format) as though you were running a real
BIND server:
/usr/local/sbin/dnrd -m /etc/hosts --cache=off -s 207.69.188.185
-s 198.80.0.6
--ronan
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:04:45 EDT