On 2007-07-22, Randy Yates <(E-Mail Removed)> wrote:
> David M <(E-Mail Removed)> writes:
>
>> On Sat, 21 Jul 2007 15:17:59 -0400, Randy Yates rearranged some electrons
>> to form:
>>
>>> Keith Keller <kkeller-(E-Mail Removed)> writes:
>>>
>>>> Do you even need DHCP at all? If you need the names to be static, make
>>>> them static, don't even have them ask for an IP. You should be able to
>>>> configure the Linksys to reserve a range of IPs that are not DHCP, then
>>>> use IPs in that range as static IPs on your home machines. Then, you
>>>> can either run named,
>>>
>>> If I ran named (I like this idea since I like the performance advantage
>>> it offers for all locally-connect machines), and I disabled DHCP, then
>>> how do I assign a specific IP address to each machine?
Just configure it. I believe RedHat/CentOS has a network configuration
utility; don't recall the name off the top of my head.
>>> Also, if I did run named (i.e., if I ran a "local caching
>>> nameserver"), then is it true that all I'd have to do is edit the
>>> /etc/resolv.conf to add 127.0.0.1 and comment out any other (ISP)
>>> nameservers? That's what is stated in "Red Hat Fedora 4 Unleashed"
>>> by Paul Hudson et al.
More or less, yes. You would configure your named to query your ISP's
nameserver when needed. I would only run one named at your site,
though, and let the other machines query it, instead of localhost or
your ISP's DNS.
>>> Also, if I disabled DHCP, wouldn't I also have the negative side-effect
>>> of losing dynamic nameserver updates? I.e., if a nameserver address
>>> changes at my ISP, I'd have to go in and manually update it somewhere,
>>> right?
You're conflating two networks into one. Your home network, with
192.168.* IP addresses, is completely private, should never be on the
Internet directly, and so you have complete control over them. I'm
guessing your Linksys is connected to your dsl modem/cable modem or
equivalent, and it still *receives* its IP from your ISP via DHCP. I'm
suggesting you turn off the feature where it *gives out* IPs to your
home machines.
>> 1) Assign fixed IP addresses for each computer on your network.
>> 2) Add each name & IP to /etc/hosts
>
> I hear you. But what if I get a new (linux) laptop next week? Then
> I need to update three computers' /etc/hosts file plus initialize
> the one on the laptop. And if the IP addresses change, etc., etc.
>
> OK OK. It's not a big deal. I guess I wanted a more "elegant" method.
In some cases the fastest method is the most elegant.

That being
said, I do run a local named for my boxes at home, and it's not that
complicated (though I need named for my external DNS, or I might just do
/etc/hosts). But if you wanted to do /etc/hosts, you'd pick one machine
as the ''master'', and when changes are needed, do something like
for host in host2 host3 host4
do
scp /etc/hosts root@$host:/etc/hosts
done
Easy peasy. Almost definitely easier than named, though if you wanted
to learn named this would be a good (and straightforward, and not
critical to someone else's DNS) time to try.
--keith
--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information