home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.infosystems.gopher
- Path: sparky!uunet!munnari.oz.au!yarra-glen.aaii.oz.au!rgg
- From: rgg@yarra-glen.aaii.oz.au (Rupert G. Goldie)
- Subject: Re: Problem with Xgopher 1.2 and/or gethostbyname
- Message-ID: <1992Dec24.035738.27407@yarra-glen.aaii.oz.au>
- Organization: Australian Artificial Intelligence Institute
- References: <9212211931.AA09915@spirit.aud.alcatel.com>
- Date: Thu, 24 Dec 1992 03:57:38 GMT
- Lines: 26
-
- droelke@spirit.aud.alcatel.com (Daniel R. Oelke) writes:
-
- >I just compiled Xgopher 1.2 - my first gopher client.
- >It appears to work great, but only with numerical IP address.
-
- >The problem I have is that the function call to gethostbyname according
- >to my man pages only resolves hosts listed in /etc/hosts , but apparently
- >it is intended to (in net.c of xgopher.c) to access the domain name server
- >and resolve the host this way. This defficiency of course creates
- >problems as I can't use anything other than the IP addresses for
- >xgopher.
-
- >My big question is: Is there a workaround or fix for this?
-
- I have run into this problem many times on the Sun. I just add -lresolv to
- the list of libraries to be linked to make it use the nameserver. You can
- hack your libc to make it use the resolver by default, but I haven't tried
- that yet.
-
- Hope this helps,
-
- Rupert
- --
- Rupert G. Goldie, Research Scientist rgg@aaii.oz.au
- Australian Artificial Intelligence Institute
- Life's a bitch and then you die.
-