Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!bacchus!treese From: treese@bacchus.UUCP Newsgroups: comp.unix.wizards Subject: Re: problems and suggested fix for route (4.xBSD, x>=2) Message-ID: <248@bacchus.MIT.EDU> Date: Mon, 23-Feb-87 23:03:53 EST Article-I.D.: bacchus.248 Posted: Mon Feb 23 23:03:53 1987 Date-Received: Thu, 26-Feb-87 22:51:40 EST References: <4595@brl-adm.ARPA> Sender: daemon@bacchus.MIT.EDU Reply-To: treese@athena.mit.edu (Win Treese) Organization: MIT Project Athena Lines: 16 We modified gethostbyname() to first check to see if the name is a valid dotted quad Internet address. If it is, the function constructs the appropriate structure with the name as the string dotted quad. A nice side effect of this is that now all programs understand addresses and can deal with them. Another solution to Barry's problem is to simply compile those few programs that really need to work without the nameserver (e.g., /etc/route, /etc/ifconfig) with the libhostlib.a library that still reads /etc/hosts. Win Treese MIT Project Athena Internet: treese@athena.MIT.EDU