nv-l
[Top] [All Lists]

Re: [nv-l] aliases

To: "Allison, Jason (JALLISON)" <JALLISON@arinc.com>
Subject: Re: [nv-l] aliases
From: netview@toddh.net (Todd H.)
Date: 17 Jul 2002 10:18:05 -0500
Cc: "'nv-l'" <nv-l@lists.tivoli.com>
Reply-to: nv-l@lists.tivoli.com
"Allison, Jason (JALLISON)" <JALLISON@arinc.com> writes:
> Anyone come across problems using aliases in the /etc/hosts file?  My
> testing has shown netview will only use the first identifier as the node
> name.
> Example:
> 10.10.10.10 router rtr
> 
> The node will always be displayed as 'router'

Aliases provide additional names by which a forward lookup will
resolve to a given numeric address.   They do not affect reverse
lookups. 

The first name listed in /etc/hosts is the canonical name of the
device.  When doing reverse lookups based on ip address (which is what
Netview is doing, a gethostbyaddr() i'm guessing), that canonical name
is what the system function returns.

If you want another name displayed, that one should be the first on
your list of aliases.   You may need to delete the node and rediscover
it for that to happen, however. 

Best Regards, 
-- 
Todd H.
http://www.toddh.net/

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web