Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!sol.ctr.columbia.edu!eff!world!ksr!dean From: dean@ksr.com (Dean Anderson) Newsgroups: comp.unix.bsd Subject: Re: 386BSD gethostbyname change Message-ID: <16807@ksr.com> Date: 12 Oct 92 19:12:44 EDT References: <1992Oct5.125237.5267@slustl.slu.edu> Sender: news@ksr.com Organization: Kendall Square Research Lines: 27 In article <1992Oct5.125237.5267@slustl.slu.edu> ejh@slustl.slu.edu (Eric J. Haug) writes: >I became tired of not being able to boot 386bsd and mount the two >NFS partitions because the ethernet bridge was down, or the name server >was not up to date, so i changed the way hostname lookup fails. >Any comments? >eric >In the file gethostnamadr.c in src/lib/libc/net at around line 281 >#if 0 /* get rid of this, in favor of ... ejh@slustl.slu.edu */ > if (errno == ECONNREFUSED) > return (_gethtbyname(name)); > else > return ((struct hostent *) NULL); >#else > /* always check the local host table */ > return (_gethtbyname(name)); >#endif I think the best solution is to have a configuration file ala Dec's /etc/svcorder file, to determine in which order databases should be checked. This gives the administrator control over what happens, but has the disadvantage of requiring a file access. --Dean -- Dean Anderson dean@ksr.com | I'm not voting because the KSR Computing Facilities | lack of a candidate has Kendall Square Research | co-opted me out of the process