Xref: utzoo comp.unix.admin:1232 comp.unix.questions:29465 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!news.miami.edu!molbio.med.miami.edu!jkramer From: jkramer@molbio.med.miami.edu (Jack Kramer) Newsgroups: comp.unix.admin,comp.unix.questions Subject: Re: Getting SunOS 4.1 to use DNS -and- /etc/hosts (long) Message-ID: <1991Mar15.020314.25199@news.miami.edu> Date: 15 Mar 91 02:03:14 GMT References: <1991Mar11.014434.23710@wdl1.wdl.loral.com> Sender: news@news.miami.edu (USENET News System) Organization: U of Miami Molecular Biology Computing Lines: 67 I am not a big fan of ULTRIX but this is one case where DEC has done it right. The attached man page from an ULTRIX machine describes the svcorder file which allows specification of which methods to use to resolve name->address resolution and the specific order in which to use /etc/hosts or BIND or YP. Perhaps the other BSD folks (Sun?) could swallow a little pride and provide the same elegant solution. It still allows the use of YP without shoving it down our throats. --------------------------------------------------------------------- NAME svcorder - designate the order and selection of services SYNTAX /etc/svcorder DESCRIPTION The svcorder file designates the order and selection of name services that will be queried to resolve host names and addresses. The queries to the services are made through the gethostent interface. The svcorder file must exist if your system accesses host names and addresses by database lookup services such as Yel- low Pages (YP) or BIND. You do not need the svcorder file if you only have local access, that is, if you are using only the local /etc/hosts file to obtain host name and address information. The service names are defined in the /usr/include/netdb.h file. The order in which the service names are placed in the svcorder file indicates the order that they are queried to resolve a given name or address. The following example shows the contents of the svcorder file if YP will be queried first, then BIND, and then the local service, if YP cannot resolve the data: yp bind local The svcorder file must have an entry for local. Otherwise, your system cannot resolve any queries in the event that the lookup services, other than local, are down. If you set up a database lookup service such as YP or BIND, be sure that the svcorder file exists. Create the file if it does not. The ypsetup and bindsetup commands do this automatically. FILES /etc/hosts /usr/include/netdb.h /etc/svcorder SEE ALSO gethostent(3n), hosts(5), bindsetup(8), ypsetup(8yp) Guide to the BIND Service Guide to the Yellow Pages Service 1