problems and suggested fix for route (4.xBSD, x>=2)

treese at bacchus.UUCP treese at bacchus.UUCP
Tue Feb 24 14:03:53 AEST 1987


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 at athena.MIT.EDU



More information about the Comp.unix.wizards mailing list