Re: [SLUG] hostname resolution wackiness

From: Chad Perrin (perrin@apotheon.com)
Date: Sat Jul 10 2004 - 04:10:09 EDT


Eben King wrote:

> On Sat, 10 Jul 2004, Chad Perrin wrote:
>
>
>>ethan zimmerman wrote:
>>
>>
>>>Here is the file you want to mess with
>>>/etc/hosts
>>>
>>>you can read about it in the manual pages
>>>man hosts
>>>
>>>Basically it's a bunch of lines that associate an IP address with some
>>>sort of human-friendly name/alias. It has 3 parts
>>>IP_address canonical_hostname aliases
>>
>>
>>That doesn't solve the problem of name resolution when DHCP assigns IP
>>addresses dynamically, though.
>
>
> Is this *your* DHCP server? Do what I do -- have the DHCP server assign
> them the same address every time. If it's not, use one of those "free
> hostname" sites (eg no-ip.com, dhs.com) on each machine.
>

It's the local network, and the "server" is actually a router appliance. I
haven't been able to find any provision for granting dedicated IP addresses to
some machines without disabling dynamic addressing for others, and I do need
dynamic addressing because computers are being added to and subtracted from the
network all the time. Besides, it seems like it should work, since all the
Windows machines are getting name resolution just fine, and both "host foo" and
"nmblookup foo" commands are finding IP addresses just fine -- it's only "ping
foo" that isn't working, as far as quick command-line diagnostics are concerned.
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:21:36 EDT