>Where does amanda get the ip address 10.0.0.100 in the first place?  ...

That's kind of a complicated question.  Amanda calls standard
system provided routines (e.g. gethostbyname) to do those lookups.
Those routines, in turn, decide where to get the data -- Amanda has no
control over it or knowledge about the details.  How the lookups are
done is highly system and configuration dependent.

For instance, on Solaris, there is a file called /etc/nsswitch.conf that
tells the routines whether to look in /etc/hosts, use DNS, use NIS, use
the Psychic Hotline, and so on.  It also tells them where to look first,
what to do when a lookup fails, etc.  What's in that file, of course,
depends entirely on how the system administrator set things up.

So just doing grep's of /etc/hosts or calling nslookup is not a valid
way to test these problems and may only confuse the issue more.

I have a couple of trivial command line interfaces to the gethost* calls:

  ftp://gandalf.cc.purdue.edu/pub/amanda/gethost*.c

They won't tell you how the searches are done, but will let you ask the
exact same questions as Amanda (and other programs) and test various
setups.

How to compile them on the various OS's is left as an exercise for
the reader :-).  Try "man gethostbyname" and see if it gives the magic
incantation (it sometimes needs a special set of libraries).

>/Fredrik Persson

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to