Plan 9 from Bell Labs’s /usr/web/sources/plan9/rc/bin/ipconf/outside

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
ip/ipconfig -dDG

# supply unknowns with outside addresses
if( ! grep -s 'auth=' /net/ndb){
	echo '	auth=204.178.31.3'>>/net/ndb
	echo '	authdom=cs.bell-labs.com'>>/net/ndb
}
if( ! grep -s 'ntp=' /net/ndb)
	echo '	ntp=204.178.31.2'>>/net/ndb
if( ! grep -s 'dns=' /net/ndb){
	echo '	dns=204.178.31.3'>>/net/ndb
	echo '	dns=204.178.31.4'>>/net/ndb
}

# set ndbfile for termrc touse
NDBFILE=/lib/ndb/external

# start dns if it isn't already going
if(! test -e /srv/dns )
	ndb/dns -r

# just in case we can't find achille
cpu=tcp!204.178.31.2

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.