Hi!
I've been stumbling accross this part of the code in
driver.c:
/*
* If the listen address was not specified, attempt to determine it
* through a DNS lookup of the specified hostname or the server's
* primary hostname.
*/
if (address == NULL) {
he = gethostbyname(host ? host : Ns_InfoHostname());
/*
* If the lookup suceeded but the resulting hostname does not
* appear to be fully qualified, attempt a reverse lookup on
the
* address which often returns the fully qualified name.
*
* NB: This is a common but sloppy configuration for a Unix
* network.
*/
if (he != NULL && he->h_name != NULL &&
strchr(he->h_name, '.') == NULL) {
he = gethostbyaddr(he->h_addr, he->h_length, he-
>h_addrtype);
}
My problem is: why on earth is this step needed at all?
We do not make use of the fully qualified address, at least
I do not see that.
So why insist on getting one? Why not taking the address from
the "he" as returned by gethostbyname?
Chees
Zoran