[Novalug] Fwd: Router acting as DNS server
Megan Larko
larkoc at iges.org
Thu Mar 11 19:13:00 EST 2010
Hi,
If there is a linux box in the arrangement which is up all the time (as I am guessing a WINS system would have to be to make this technique using WINS), use dnsmasq on the linux box. The /etc/dnsmasq.conf file will assign IP numbers by MAC addr on the local net.
>From my /etc/dnsmasq.conf:
---- snip ---
# Always allocate the host with ethernet address 11:22:33:44:55:66
# The IP address 192.168.0.60
#dhcp-host=11:22:33:44:55:66,192.168.0.60
dhcp-host=00:E0:81:47:CC:68,box1,10.1.0.12,infinite
dhcp-host=00:E0:81:74:11:CF,box2,10.1.0.14,infinite
dhcp-host=00:E0:81:B0:8C:63,box3,10.1.0.15,infinite
----- snip ----
The dnsmasq program will also allow tftp for diskless boot systems, regular dhcp, and setting on mx box for your local system network. I have personally liked this program.
Cheers,
megan
----- Original Message -----
From: Ken Kauffman <kkauffman at headfog.com>
To: NOVALUG <novalug at calypso.tux.org>
Sent: Thu, 11 Mar 2010 18:25:50 -0500 (EST)
Subject: [Novalug] Fwd: Router acting as DNS server
---------- Forwarded message ----------
From: Ken Kauffman <kkauffman at headfog.com>
Date: Thu, Mar 11, 2010 at 18:25
Subject: Re: [Novalug] Router acting as DNS server
To: Jon LaBadie <novalugml at jgcomp.com>
One possible option. You can use SAMBA as a WINS client. If the internal
machines are windows then you can use WINS for internal resolution. They
will broadcast on the internal network and manage it itself. You can also
set up SAMBA as a WINS server.
I used to run a hybrid network at home and just let WINS handle the internal
name resolutions.
Ken
On Thu, Mar 11, 2010 at 17:43, Jon LaBadie <novalugml at jgcomp.com> 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?
>
> jl
> --
> Jon H. LaBadie jon at jgcomp.com
> JG Computing
> 12027 Creekbend Drive (703) 787-0884
> Reston, VA 20194 (703) 787-0922 (fax)
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>
More information about the Novalug
mailing list