This is based, in part, upon an anonymous contribution. I've improved
it by making it loadable, so one does not have to build a new kernel.
You'll find the original contribution in ../hostid-by-egid

This will probably only work on versions of Sun OS later than 4.1.1.
Certainly there is no support for Solaris 5.x

to use this:
make load
make sethostid
./sethostid 0 72000000

which should modify the hostid for processes with gid 900.

You can remove the sethostid call by using modunload. You can check
whether or not it is currently installed with modstat.

     This package check running process's effective gid and user's gid
to determine which hostid should be returned.  If the gid is between
900 to 909, the specified hostid will be returned.  Otherwise, the original
hostid will be returned.  Therefore, you can setgid the target checking
excutable file and it will get what you want when the gethostid system
call is called.  For example, we run '/bin/sethostid 0 12345678'.  All
running processes with gid 900 will get hostid as 12345678 rather than
the real hostid.  Remember the hostid above are all hexadecimal values.

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

see ../run for a small utility for use with this.
