[Novalug] Router acting as DNS server

John Franklin franklin at elfie.org
Fri Mar 12 07:52:57 EST 2010


On Mar 11, 2010, at 5:43 PM, Jon LaBadie wrote:

> I'm assisting someone with their setup.
> Their router/switch is a LinkSys WRT54G.
>
> The router is functioning properly as a
> DHCP server, and the DHCP clients table
> lists the local hosts including their
> hostnames (no domain names).
>
> I'm trying to get it to work as a DNS
> nameserver as well.  When I point the hosts
> to the router it properly acts as a nameserver
> for external hosts, but it will not resolve
> the hosts listed in the DHCP clients table.
>
> I saw no options in the various menus to
> turn on such a feature.
>
> Nor did I see any option to permanently
> allocate a specific DHCP IP assignment to
> a specific host.
>
> The goal is to do things like ssh <host>.
> Temporarily I've created /etc/hosts entries
> on each machine.  But that will likely go
> out of date when DHCP leases expire.
>
> The systems are not mobile, so maybe I'll
> just recommend static IP assignments.
>
> Any other ideas?

In addition to the DD-WRT firmware upgrade mentioned elsewhere, you  
have two other options:

1. Take DHCP away from the router and give it to a server system  
somewhere in the home.  I do this on my network with a tiny NetBSD VM.

2. Install Avahi on the linux boxes and create an mDNS (what Apple  
calls Bonjour) .local network.  Using Charlie's systems as an example,  
you could then "ssh black.local".

jf
-- 
John Franklin
franklin at elfie.org
ICBM: 39º 01' 58.4"N 77º 24' 49.6"W Z+84m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2665 bytes
Desc: not available
Url : http://calypso.tux.org/pipermail/novalug/attachments/20100312/bcd14b7c/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: This is a digitally signed message part
Url : http://calypso.tux.org/pipermail/novalug/attachments/20100312/bcd14b7c/attachment-0001.bin 


More information about the Novalug mailing list