Path: utzoo!attcan!uunet!lll-winken!sun-barr!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!RICHTER.MIT.EDU!krowitz From: krowitz@RICHTER.MIT.EDU (David Krowitz) Newsgroups: comp.sys.apollo Subject: Re: TCP Hostname Resolving - 10.2/BSD Message-ID: <9011021515.AA06296@richter.mit.edu> Date: 2 Nov 90 15:15:45 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 Check your /etc/hosts file ... gateways usually have two entries in the file -- one for each network attached. Unfortunately, it seems that the routines which return the IP number for a given hostname stop as soon as they find *any* *single* entry which matches the given name. If the first entry in /etc/hosts is for the IP number of the network other than the one to which your local machine is attached, that is the IP number which will be returned for the machine ... and you will not know how to reach that network (especially since routed will tell you that to reach that network, you want to forward via the gateway, whose IP address is on the network you want to reach ... I love circular definitions!). -- David Krowitz krowitz@richter.mit.edu (18.83.0.109) krowitz%richter.mit.edu@eddie.mit.edu krowitz%richter.mit.edu@mitvma.bitnet (in order of decreasing preference)