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?
--
Tivoli Certified Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2003 Jane Curry <jane.curry@skills-1st.co.uk>. All
rights
reserved.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________
Note: Please update your email address for this user to reflect the
new MeadWestvaco Corporation. MeadWestvaco employee email addresses
are in the format of user@MeadWestvaco.com
This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure. The
information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited. If you have
received this transmission in error, please notify MeadWestvaco
immediately at postmaster@MeadWestvaco.com.
_______________________________________________________________________
|