Shared libraries

Chris Siebenmann cks at hawkwind.utcs.toronto.edu
Sun May 12 00:07:13 AEST 1991


mohta at necom830.cc.titech.ac.jp (Masataka Ohta) writes:
| Comments in source code do count. But if you need more evidence, you
| should investigate gethostbyname() of 4.3BSD by yourself. When /etc/hosts
| is searched, it dose not return multiple IP addresses.
| Thus, the capability to return multiple IP addresses are added because of
| DNS.

 And this is a bug in 4.2BSD, rightfully corrected in 4.3 while they
were changing it anyways. It just so happens that it doesn't usually
matter which IP address a gethostname() returns, so few people cared
about the breakage.
 
 For specific examples:
- things which use hostnames as the permission mechanism, but compare
  internally against IP numbers; NFS mountds, careful rlogins, etc.
  If you rlogin to a machine on the "wrong" interface of a gateway
  machine, you're in trouble.
- Things which add permissions based on IPs got from hostname lookups;
  X11R4 'xhost' for example. If you xhost + a gateway machine and are
  on the "wrong" interface, it won't work very well.

 Both problems have bitten us locally; they are quite real.

--
	"Summary: ftell chases cars and howls at the moon."
			- Larry Campbell
cks at hawkwind.utcs.toronto.edu	           ...!{utgpu,utzoo,watmath}!utgpu!cks



More information about the Comp.unix.internals mailing list