Mark Henderson <mch@squirrel.com>, <henderso@netcom.com>

This package allows you modify the hostname and hostid returned
by gethostname and gethostid depending upon the group membership
of the process calling gethostname and gethostid.

It has been tested under Solaris 1.1.

Together with vif-1.11 by Steinar Haug, this allows you to also spoof 
  IP addresses in a limited sense. You can get vif-1.11 from the following 
  sites:

  ftp://ftp.nethelp.no/pub/net/vif-1.11.tar.gz
  ftp://ftp.ntnu.no/pub/unix/network/vif-1.11.tar.gz
  ftp.netcom.com:/pub/he/henderso/vif-1.11.tar.gz
  ftp.wimsey.com:/pub/crypto/sun-stuff/vif-1.11.tar.gz
  http://www.nethelp.no/net/vif/readme.html

to use this:

example/instructions
         - you want certain processes to see the hostname joe.test.com
         - the "real" hostname of the host is ratatosk

You'll need to be root to do most of this. 

0. make sure that joe.test.com is in /etc/hosts, the YP hosts database or
   DNS as appropriate.
1. fetch, unpack, make, and install vif
2. install run (source is in ../run)
3. make load
4. make sethostid
5. ./sethostid 0 72000000 joe.test.com
   which should modify the hostid and hostname for processes with gid 900
   to be 0x72000000 and joe.test.com resp.
6. /usr/etc/ifconfig vif0 joe.test.com up
   now "telnet joe.test.com" should connect to the local host
7. /usr/etc/route add joe.test.com ratatosk 0
8. If you want another host (say squirrel) to also be able to communicate
   with ratatosk as joe.test.com, login to squirrel and do
   /usr/etc/route add joe.test.com ratatosk 1
   go back to ratatosk
9. run 0 /bin/sh
   hostname will return joe.test.com
   hostid will return 0x72000000
   most programs that run in group 900 and try to determine the IP address of 
       the machine will think it is the IP address of joe.test.com. The point 
       is that this will spoof many licence manager daemons which are locked to 
       hostname and/or IP address.

N.B. sethostid.exec must be executable. Depending upon where you got
the distribution you might have to chmod +x it.

