Chris,
That's because the nslookup command does NOT use the operating
system gethostbyname() APIs call in the way that NetView does when it
does a lookup.
nslookup is a compiled binary program specifically for interfacing to
DNS.
A better test would be to attempt to ping the device.
Ping and netview both use the gethostbyname() API as provided by the
operating system. Therefore ping should behave exactly as you have
configured the OS using netsvc.conf.
Jon Austing.
cjp8@meadwestvaco.com 12/22/03 03:38PM >>>
I verified on the AIX box that netsvc.conf is setup as
hosts-local,bind. I
then tried doing a NSLookup by device name from the box and it returned
only that it could not find it in the DNS server. I did verify that it
was in the /etc/hosts file though. That is where I guess I am asking
about Netview. Does it just execute a nslookup when it receives a
device
name?
Thanks
Chris Petrina
James Shanks <jshanks@us.ibm.com>
Sent by: owner-nv-l@lists.us.ibm.com
12/22/2003 09:55 AM
Please respond to nv-l
To: nv-l@lists.us.ibm.com
cc:
Subject: Re: [nv-l] netview name lookup
Great, but your DNS guys are mistaken if they think you cannot override
DNS locally on AIX with an /etc/hosts file.
To do it, you need another file called /etc/netsvc.conf. In there you
specify the order in which you would like name resolution to proceed.
For example,
hosts = local, bind
says to use your local /etc/hosts first, and if no match is found, then
go
to DNS.
Lot's of NetView users employ this.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group
"Christopher J Petrina" <cjp8@meadwestvaco.com>
Sent by: owner-nv-l@lists.us.ibm.com
12/22/2003 09:29 AM
Please respond to nv-l
To: nv-l@lists.us.ibm.com
cc:
Subject: Re: [nv-l] netview name lookup
This is how I would figure it did the Name resolution. HOwever with
Netview running on an AIX box, my UNIX guru's have come to tell me that
name resolution is only done via a DNS server from AIX. AIX cannot be
configured to use the /etc/hosts file for resolution. We ahve a DNS
server that it attaches to. And your answer is what I was looking for
Thank you
Chris Petrina
Jane Curry <jane.curry@skills-1st.co.uk>
Sent by: owner-nv-l@lists.us.ibm.com
12/20/2003 06:57 AM
Please respond to nv-l
To: nv-l@lists.us.ibm.com
cc:
Subject: Re: [nv-l] netview name lookup
NetView himself has no name-to-address resolution mechanism - he uses
whatever the host Operating System uses. That is, if all you have is a
hosts file with the NetView box in it, everything else will have IP
addresses as labels. It is strongly recommended that you have a
reliable DNS employed by the NetView system (preferably with the
NetView
system acting as a caching / secondary DNS server).
Cheers,
Jane
Christopher J Petrina wrote:
how does netview look attempt to determine the name of a device.
i.e. in my location.conf file I am using names in place of IP
addresses for my gateways. How does Netview resolve the name on a
AIX
box?