From b6bb2a40935fa50f30b558f14a87c03b59328bfc Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 9 Jun 2011 23:15:09 +0000 Subject: move /lib/ndb to /sys/lib/dist/ndb --- cfg/plan9.ini | 0 lib/ndb/auth | 13 -- lib/ndb/common | 348 ------------------------------------- lib/ndb/consoledb | 5 - lib/ndb/dnsdump | 3 - lib/ndb/local | 29 ---- lib/ndb/local.complicated | 113 ------------ lib/ndb/nfs | 3 - sys/lib/dist/cfg/plan9.ini | 7 + sys/lib/dist/mkfile | 6 +- sys/lib/dist/ndb/auth | 13 ++ sys/lib/dist/ndb/common | 348 +++++++++++++++++++++++++++++++++++++ sys/lib/dist/ndb/consoledb | 5 + sys/lib/dist/ndb/dnsdump | 3 + sys/lib/dist/ndb/local | 29 ++++ sys/lib/dist/ndb/local.complicated | 113 ++++++++++++ sys/lib/dist/ndb/nfs | 3 + sys/lib/dist/pc/plan9.ini.cd | 7 - sys/lib/rootbind | 1 + sys/lib/rootstub | 1 + 20 files changed, 526 insertions(+), 524 deletions(-) delete mode 100644 cfg/plan9.ini delete mode 100644 lib/ndb/auth delete mode 100644 lib/ndb/common delete mode 100644 lib/ndb/consoledb delete mode 100644 lib/ndb/dnsdump delete mode 100644 lib/ndb/local delete mode 100644 lib/ndb/local.complicated delete mode 100644 lib/ndb/nfs create mode 100644 sys/lib/dist/cfg/plan9.ini create mode 100644 sys/lib/dist/ndb/auth create mode 100644 sys/lib/dist/ndb/common create mode 100644 sys/lib/dist/ndb/consoledb create mode 100644 sys/lib/dist/ndb/dnsdump create mode 100644 sys/lib/dist/ndb/local create mode 100644 sys/lib/dist/ndb/local.complicated create mode 100644 sys/lib/dist/ndb/nfs delete mode 100644 sys/lib/dist/pc/plan9.ini.cd diff --git a/cfg/plan9.ini b/cfg/plan9.ini deleted file mode 100644 index e69de29bb..000000000 diff --git a/lib/ndb/auth b/lib/ndb/auth deleted file mode 100644 index 7a1cf402f..000000000 --- a/lib/ndb/auth +++ /dev/null @@ -1,13 +0,0 @@ -# Data Base -# An ndb(2) database file exists for the authentication -# server. The attribute types used by the AS are hostid and -# uid. The value in the hostid is a client host's ID. The -# values in the uid pairs in the same entry list which users -# that host ID may speak for. A uid value of * means the -# host ID may speak for all users. A uid value of !user means -# the host ID may not speak for user. For example: -# hostid=bootes -# uid=!sys uid=!adm uid=* -# -hostid=glenda - uid=!sys uid=!adm uid=* diff --git a/lib/ndb/common b/lib/ndb/common deleted file mode 100644 index ed91141c9..000000000 --- a/lib/ndb/common +++ /dev/null @@ -1,348 +0,0 @@ -# -# The master for this file is /n/fs/lib/ndb/common -# - -# -# real dns root server ips -# -dom=A.ROOT-SERVERS.NET ip=198.41.0.4 -dom=B.ROOT-SERVERS.NET ip=128.9.0.107 -dom=C.ROOT-SERVERS.NET ip=192.33.4.12 -dom=D.ROOT-SERVERS.NET ip=128.8.10.90 -dom=E.ROOT-SERVERS.NET ip=192.203.230.10 -dom=F.ROOT-SERVERS.NET ip=192.5.5.241 -dom=G.ROOT-SERVERS.NET ip=192.112.36.4 -dom=H.ROOT-SERVERS.NET ip=128.63.2.53 -dom=I.ROOT-SERVERS.NET ip=192.36.148.17 -dom=J.ROOT-SERVERS.NET ip=198.41.0.10 -dom=K.ROOT-SERVERS.NET ip=193.0.14.129 -dom=L.ROOT-SERVERS.NET ip=199.7.83.42 # nov 2007 -dom=M.ROOT-SERVERS.NET ip=202.12.27.33 - -dom=a.gtld-servers.net ip=192.5.6.30 -dom=b.gtld-servers.net ip=192.33.14.30 -dom=c.gtld-servers.net ip=192.26.92.30 -dom=d.gtld-servers.net ip=192.31.80.30 -dom=e.gtld-servers.net ip=192.12.94.30 -dom=f.gtld-servers.net ip=192.35.51.30 -dom=g.gtld-servers.net ip=192.42.93.30 -dom=h.gtld-servers.net ip=192.54.112.30 -dom=i.gtld-servers.net ip=192.43.172.30 -dom=j.gtld-servers.net ip=192.48.79.30 -dom=k.gtld-servers.net ip=192.52.178.30 -dom=l.gtld-servers.net ip=192.41.162.30 -dom=m.gtld-servers.net ip=192.55.83.30 - -# -# spam defense. unfortunately, arin doesn't give negative -# rcodes for these non-routable addresses. we'll do it for them. -# -dom=10.in-addr.arpa soa= # rfc1918 zones - dom=16.172.in-addr.arpa soa= - dom=17.172.in-addr.arpa soa= - dom=18.172.in-addr.arpa soa= - dom=19.172.in-addr.arpa soa= - dom=20.172.in-addr.arpa soa= - dom=21.172.in-addr.arpa soa= - dom=22.172.in-addr.arpa soa= - dom=23.172.in-addr.arpa soa= - dom=24.172.in-addr.arpa soa= - dom=25.172.in-addr.arpa soa= - dom=26.172.in-addr.arpa soa= - dom=27.172.in-addr.arpa soa= - dom=28.172.in-addr.arpa soa= - dom=29.172.in-addr.arpa soa= - dom=30.172.in-addr.arpa soa= - dom=31.172.in-addr.arpa soa= - dom=168.192.in-addr.arpa soa= - dom=0.in-addr.arpa soa= # rfc3330 zones - dom=127.in-addr.arpa soa= - dom=254.169.in-addr.arpa soa= - dom=2.0.192.in-addr.arpa soa= - dom=255.255.255.255.in-addr.arpa soa= - dom=d.f.ip6.arpa soa= # rfc4193 recommendation - dom=0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa soa= # rfc4291 zones - dom=1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa soa= - dom=8.e.f.ip6.arpa soa= - dom=9.e.f.ip6.arpa soa= - dom=a.e.f.ip6.arpa soa= - dom=b.e.f.ip6.arpa soa= - refresh=3600 ttl=3600 - ns=ns1.cs.bell-labs.com - ns=ns2.cs.bell-labs.com - -# -# ip protocol numbers -# -protocol=reserved ipv4proto=0 -protocol=icmp ipv4proto=1 -protocol=igmp ipv4proto=2 -protocol=ggp ipv4proto=3 -protocol=ip ipv4proto=4 -protocol=st ipv4proto=5 -protocol=tcp ipv4proto=6 -protocol=ucl ipv4proto=7 -protocol=egp ipv4proto=8 -protocol=igp ipv4proto=9 -protocol=bbn-rcc-mon ipv4proto=10 -protocol=nvp-ii ipv4proto=11 -protocol=pup ipv4proto=12 -protocol=argus ipv4proto=13 -protocol=emcon ipv4proto=14 -protocol=xnet ipv4proto=15 -protocol=chaos ipv4proto=16 -protocol=udp ipv4proto=17 -protocol=mux ipv4proto=18 -protocol=dcn-meas ipv4proto=19 -protocol=hmp ipv4proto=20 -protocol=prm ipv4proto=21 -protocol=xns-idp ipv4proto=22 -protocol=trunk-1 ipv4proto=23 -protocol=trunk-2 ipv4proto=24 -protocol=leaf-1 ipv4proto=25 -protocol=leaf-2 ipv4proto=26 -protocol=rdp ipv4proto=27 -protocol=irtp ipv4proto=28 -protocol=iso-tp4 ipv4proto=29 -protocol=netblt ipv4proto=30 -protocol=mfe-nsp ipv4proto=31 -protocol=merit-inp ipv4proto=32 -protocol=sep ipv4proto=33 -protocol=3pc ipv4proto=34 -protocol=idpr ipv4proto=35 -protocol=xtp ipv4proto=36 -protocol=ddp ipv4proto=37 -protocol=idpr-cmtp ipv4proto=38 -protocol=tp++ ipv4proto=39 -protocol=il ipv4proto=40 -protocol=sip ipv4proto=41 -protocol=sdrp ipv4proto=42 -protocol=sip-sr ipv4proto=43 -protocol=sip-frag ipv4proto=44 -protocol=idrp ipv4proto=45 -protocol=rsvp ipv4proto=46 -protocol=gre ipv4proto=47 -protocol=mhrp ipv4proto=48 -protocol=bna ipv4proto=49 -protocol=sipp-esp ipv4proto=50 -protocol=sipp-ah ipv4proto=51 -protocol=i-nlsp ipv4proto=52 -protocol=swipe ipv4proto=53 -protocol=nhrp ipv4proto=54 -protocol=any ipv4proto=61 -protocol=cftp ipv4proto=62 -protocol=any ipv4proto=63 -protocol=sat-expak ipv4proto=64 -protocol=kryptolan ipv4proto=65 -protocol=rvd ipv4proto=66 -protocol=ippc ipv4proto=67 -protocol=any ipv4proto=68 -protocol=sat-mon ipv4proto=69 -protocol=visa ipv4proto=70 -protocol=ipcv ipv4proto=71 -protocol=cpnx ipv4proto=72 -protocol=cphb ipv4proto=73 -protocol=wsn ipv4proto=74 -protocol=pvp ipv4proto=75 -protocol=br-sat-mon ipv4proto=76 -protocol=sun-nd ipv4proto=77 -protocol=wb-mon ipv4proto=78 -protocol=wb-expak ipv4proto=79 -protocol=iso-ip ipv4proto=80 -protocol=vmtp ipv4proto=81 -protocol=secure-vmtp ipv4proto=82 -protocol=vines ipv4proto=83 -protocol=ttp ipv4proto=84 -protocol=nsfnet-igp ipv4proto=85 -protocol=dgp ipv4proto=86 -protocol=tcf ipv4proto=87 -protocol=igrp ipv4proto=88 -protocol=ospfigp ipv4proto=89 protocol=ospf -protocol=sprite-rpc ipv4proto=90 -protocol=larp ipv4proto=91 -protocol=mtp ipv4proto=92 -protocol=ax.25 ipv4proto=93 -protocol=ipip ipv4proto=94 -protocol=micp ipv4proto=95 -protocol=scc-sp ipv4proto=96 -protocol=etherip ipv4proto=97 -protocol=encap ipv4proto=98 -protocol=any ipv4proto=99 -protocol=gmtp ipv4proto=100 -protocol=rudp ipv4proto=254 # unofficial - -# -# services -# -tcp=cs port=1 -tcp=echo port=7 -tcp=discard port=9 -tcp=systat port=11 -tcp=daytime port=13 -tcp=netstat port=15 -tcp=chargen port=19 -tcp=ftp-data port=20 -tcp=ftp port=21 -tcp=ssh port=22 -tcp=telnet port=23 -tcp=smtp port=25 -tcp=time port=37 -tcp=whois port=43 -tcp=dns port=53 -tcp=domain port=53 -tcp=uucp port=64 -tcp=gopher port=70 -tcp=rje port=77 -tcp=finger port=79 -tcp=http port=80 -tcp=link port=87 -tcp=supdup port=95 -tcp=hostnames port=101 -tcp=iso-tsap port=102 -tcp=x400 port=103 -tcp=x400-snd port=104 -tcp=csnet-ns port=105 -tcp=pop-2 port=109 -tcp=pop3 port=110 -tcp=portmap port=111 -tcp=uucp-path port=117 -tcp=nntp port=119 -tcp=netbios port=139 -tcp=imap4 port=143 -tcp=imap port=143 -tcp=NeWS port=144 -tcp=print-srv port=170 -tcp=z39.50 port=210 -tcp=ldap port=389 -tcp=fsb port=400 -tcp=sysmon port=401 -tcp=proxy port=402 -tcp=proxyd port=404 -tcp=https port=443 -tcp=cifs port=445 -tcp=ssmtp port=465 -tcp=rexec port=512 restricted= -tcp=login port=513 restricted= -tcp=shell port=514 restricted= -tcp=printer port=515 -tcp=ncp port=524 -tcp=courier port=530 -tcp=cscan port=531 -tcp=uucp port=540 -tcp=snntp port=563 -tcp=9fs port=564 -tcp=whoami port=565 -tcp=guard port=566 -tcp=ticket port=567 -tcp=ldaps port=636 -tcp=fmclient port=729 -tcp=ftps-data port=989 -tcp=ftps port=990 -tcp=imaps port=993 -tcp=pop3s port=995 -tcp=ingreslock port=1524 -tcp=pptp port=1723 -tcp=nfs port=2049 -tcp=webster port=2627 -tcp=weather port=3000 -tcp=mysql port=3306 -tcp=sip port=5060 -tcp=sips port=5061 -tcp=ttcp port=5117 -tcp=secstore port=5356 -tcp=vnc-http port=5800 -tcp=vnc port=5900 -tcp=Xdisplay port=6000 -tcp=styx port=6666 -tcp=mpeg port=6667 -tcp=rstyx port=6668 -tcp=infdb port=6669 -tcp=infsigner port=6671 -tcp=infcsigner port=6672 -tcp=inflogin port=6673 -tcp=bandt port=7330 -tcp=face port=32000 -tcp=dhashgate port=11978 -tcp=exportfs port=17007 -tcp=rexexec port=17009 -tcp=ncpu port=17010 -tcp=cpu port=17013 -tcp=glenglenda1 port=17020 -tcp=glenglenda2 port=17021 -tcp=glenglenda3 port=17022 -tcp=glenglenda4 port=17023 -tcp=glenglenda5 port=17024 -tcp=glenglenda6 port=17025 -tcp=glenglenda7 port=17026 -tcp=glenglenda8 port=17027 -tcp=glenglenda9 port=17028 -tcp=glenglenda10 port=17029 -tcp=nupasimap port=17030 -tcp=nupasimaps port=17031 -tcp=flyboy port=17032 -tcp=venti port=17034 -tcp=wiki port=17035 -tcp=vica port=17036 -tcp=aan port=17037 - - -# testing -tcp=9fsa port=18008 - -udp=echo port=7 -udp=tacacs port=49 -udp=tftp port=69 -udp=bootpc port=68 -udp=bootp port=67 -udp=domain port=53 -udp=dns port=53 -udp=portmap port=111 -udp=ntp port=123 -udp=netbios-ns port=137 -udp=snmp port=161 -udp=ha port=434 # mobile ip home agent -udp=ikev2 port=500 -udp=syslog port=514 -udp=rip port=520 -udp=dhcp6c port=546 -udp=dhcp6s port=547 -udp=nfs port=2049 -udp=bfs port=2201 -udp=virgil port=2202 -udp=sip port=5060 -udp=bandt2 port=7331 # viaducts -udp=oradius port=1812 -udp=radius port=1812 -udp=dhash port=11977 -udp=ulctl port=12666 -udp=uldata port=12667 -udp=dldata port=12668 - -gre=ppp port=34827 - -# -# authdom declarations need to be visible on the inside network, -# even for outside machines. putting them here ensures -# their visibility everywhere. -# - -# for geoff -auth=www.9netics.com authdom=9netics.com -auth=newcpu.9netics.net authdom=9netics.net -auth=mordor.tip9ug.jp authdom=tip9ug.jp - -# for geoff's ipv6 testing -auth=9grid.hamnavoe.com - authdom=hamnavoe.com - authdom=9grid.hamnavoe.com - -auth=whale.lsub.org - authdom=lsub.org - authdom=dat.escet.urjc.es - -# for jmk -auth=tor.texas.9grid.us authdom=9grid.us -auth=9grid.net authdom=9grid.net - -# for sape -auth=130.89.145.31 authdom=cs.utwente.nl diff --git a/lib/ndb/consoledb b/lib/ndb/consoledb deleted file mode 100644 index 684433896..000000000 --- a/lib/ndb/consoledb +++ /dev/null @@ -1,5 +0,0 @@ -# see consolefs(4) -group=sys - uid=glenda -console=testing dev=/dev/eia0 openondemand=1 - gid=sys diff --git a/lib/ndb/dnsdump b/lib/ndb/dnsdump deleted file mode 100644 index 54fc31935..000000000 --- a/lib/ndb/dnsdump +++ /dev/null @@ -1,3 +0,0 @@ -# dns debug -# write "dump" to /net/dns -# lots of output here diff --git a/lib/ndb/local b/lib/ndb/local deleted file mode 100644 index dc94031eb..000000000 --- a/lib/ndb/local +++ /dev/null @@ -1,29 +0,0 @@ -# -# files comprising the database, use as many as you like, see ndb(6) -# -database= - file=/net/ndb - file=/lib/ndb/local - file=/lib/ndb/common - -auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com - -#auth=cirno.9front authdom=9front - -#ntp=pool.ntp.org - -# -# because the public demands the name localsource -# -ip=127.0.0.1 sys=localhost dom=localhost - -# example: adjust to fit your network -#ipnet=9front ip=192.168.0.0 ipmask=255.255.255.0 -# auth=cirno.9front -# cpu=cirno.9front -# dns=192.168.0.2 -# dnsdom=9front -# smtp=cirno.9front -# -#ip=192.168.0.1 sys=gw dom=gw.9front -#ip=192.168.0.2 sys=cirno dom=cirno.9front diff --git a/lib/ndb/local.complicated b/lib/ndb/local.complicated deleted file mode 100644 index a85255873..000000000 --- a/lib/ndb/local.complicated +++ /dev/null @@ -1,113 +0,0 @@ - -# -# files comprising the database, use as many as you like -# -database= - file=/lib/ndb/local - file=/lib/ndb/common - -# -# entries defining the dns root. these will be overridden by any -# authentic info obtained from the root. -# -dom= - ns=A.ROOT-SERVERS.NET - ns=B.ROOT-SERVERS.NET - ns=C.ROOT-SERVERS.NET - ns=D.ROOT-SERVERS.NET - ns=E.ROOT-SERVERS.NET - ns=F.ROOT-SERVERS.NET - ns=G.ROOT-SERVERS.NET - ns=H.ROOT-SERVERS.NET - ns=I.ROOT-SERVERS.NET - ns=J.ROOT-SERVERS.NET - ns=K.ROOT-SERVERS.NET - ns=L.ROOT-SERVERS.NET - ns=M.ROOT-SERVERS.NET -dom=A.ROOT-SERVERS.NET ip=198.41.0.4 -dom=B.ROOT-SERVERS.NET ip=128.9.0.107 -dom=C.ROOT-SERVERS.NET ip=192.33.4.12 -dom=D.ROOT-SERVERS.NET ip=128.8.10.90 -dom=E.ROOT-SERVERS.NET ip=192.203.230.10 -dom=F.ROOT-SERVERS.NET ip=192.5.5.241 -dom=G.ROOT-SERVERS.NET ip=192.112.36.4 -dom=H.ROOT-SERVERS.NET ip=128.63.2.53 -dom=I.ROOT-SERVERS.NET ip=192.36.148.17 -dom=J.ROOT-SERVERS.NET ip=198.41.0.10 -dom=K.ROOT-SERVERS.NET ip=193.0.14.129 -dom=L.ROOT-SERVERS.NET ip=198.32.64.12 # old - ip=199.7.83.42 # new, nov 2007 -dom=M.ROOT-SERVERS.NET ip=202.12.27.33 - - -# select one of the following two entries: - -# -# your domain if you are a dns server for your domain -# -dom=myuniversity.edu soa= - refresh=3600 ttl=3600 - ns=ns1.myuniversity.edu - ns=ns2.myuniversity.edu - mx=mail.myuniversity.edu pref=1 - mx=mailbackup.myuniversity.edu pref=2 - mbox=netmaster@myuniversity.edu - -# -# your domain if you aren't a domain server for the domain -# -dom=myuniversity.edu - ns=ns1.myuniversity.edu - ns=ns2.myuniversity.edu - -# -# define your network. dns, ntp, time, and wins are servers that can -# be returned by dhcp. auth and fs are the default plan9 authentication -# and name servers. change the addresses to whatever makes sense in your -# world. -# -# each dnsdomain is a domain to search through when resolving -# dnsnames -# -ipnet=mynetwork ip=10.0.0.0 ipmask=255.0.0.0 - fs=myfileserver.myuniversity.edu - auth=myauthserver.myuniversity.edu - dns=10.0.0.1 - dns=10.0.0.2 - wins=10.0.0.3 - wins=10.0.0.4 - ntp=10.0.0.5 - ntp=10.0.0.6 - time=10.0.0.7 - dnsdomain=cs.myuniversity.edu - dnsdomain=ee.myuniversity.edu - dnsdomain=math.myuniversity.edu - dnsdomain=myuniversity.edu - -# -# a subnet of of your network. you can override anything specified for the -# network. -# -ipnet=mysubnetwork ip=10.0.1.0 ipmask=255.255.255.0 - dns=10.0.1.1 - dns=10.0.1.2 - -# -# define a few systems. if they support the il protocol, say so. otherwise -# the connection server will assume they just know tcp and udp. -# - the sys= tuple specifies a local nickname for the machine. -# - unless a bootf= tuple exists, dhcp will not answer boot requests for it -# -ip=10.0.1.10 ether=0010dc724074 sys=fs - dom=myfileserver.myuniversity.edu - bootf=/386/9pcfs - -ip=10.0.1.11 ether=0010dc724075 sys=auth - dom=myauthserver.myuniversity.edu - bootf=/386/9pccpu - -ip=10.0.1.12 ether=0010dc724076 sys=term - dom=myterminal.myuniversity.edu - bootf=/386/9pc - -auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com diff --git a/lib/ndb/nfs b/lib/ndb/nfs deleted file mode 100644 index c120fb2f0..000000000 --- a/lib/ndb/nfs +++ /dev/null @@ -1,3 +0,0 @@ -#server client uidfile gidfile -!9fs tcp!kremvax -.+ [^.]+\.moscow\.edu /n/kremvax/etc/passwd /n/kremvax/etc/group diff --git a/sys/lib/dist/cfg/plan9.ini b/sys/lib/dist/cfg/plan9.ini new file mode 100644 index 000000000..aab8c4883 --- /dev/null +++ b/sys/lib/dist/cfg/plan9.ini @@ -0,0 +1,7 @@ +# config for initial cd booting +*nomp=1 +cdboot=yes +mouseport=ask +monitor=ask +vgasize=ask +bootfile=/386/9pcf diff --git a/sys/lib/dist/mkfile b/sys/lib/dist/mkfile index 254c5fa81..b1b33026f 100644 --- a/sys/lib/dist/mkfile +++ b/sys/lib/dist/mkfile @@ -1,14 +1,14 @@ proto=/n/src9/sys/lib/sysconfig/proto/cdproto -ini=pc/plan9.ini.cd iso=/tmp/9front.iso cd:V: $iso -%.iso: $proto $ini +%.iso: $proto @{rfork n bind usr /n/src9/usr + bind cfg /n/src9/cfg + bind ndb /n/src9/lib/ndb bind /n/src9 /n/src9/dist/plan9front - bind $ini /n/src9/cfg/plan9.ini disk/mk9660 -c9j -B 386/9bootiso -p $proto -s /n/src9 -v 'Plan 9 Front' $target } diff --git a/sys/lib/dist/ndb/auth b/sys/lib/dist/ndb/auth new file mode 100644 index 000000000..7a1cf402f --- /dev/null +++ b/sys/lib/dist/ndb/auth @@ -0,0 +1,13 @@ +# Data Base +# An ndb(2) database file exists for the authentication +# server. The attribute types used by the AS are hostid and +# uid. The value in the hostid is a client host's ID. The +# values in the uid pairs in the same entry list which users +# that host ID may speak for. A uid value of * means the +# host ID may speak for all users. A uid value of !user means +# the host ID may not speak for user. For example: +# hostid=bootes +# uid=!sys uid=!adm uid=* +# +hostid=glenda + uid=!sys uid=!adm uid=* diff --git a/sys/lib/dist/ndb/common b/sys/lib/dist/ndb/common new file mode 100644 index 000000000..ed91141c9 --- /dev/null +++ b/sys/lib/dist/ndb/common @@ -0,0 +1,348 @@ +# +# The master for this file is /n/fs/lib/ndb/common +# + +# +# real dns root server ips +# +dom=A.ROOT-SERVERS.NET ip=198.41.0.4 +dom=B.ROOT-SERVERS.NET ip=128.9.0.107 +dom=C.ROOT-SERVERS.NET ip=192.33.4.12 +dom=D.ROOT-SERVERS.NET ip=128.8.10.90 +dom=E.ROOT-SERVERS.NET ip=192.203.230.10 +dom=F.ROOT-SERVERS.NET ip=192.5.5.241 +dom=G.ROOT-SERVERS.NET ip=192.112.36.4 +dom=H.ROOT-SERVERS.NET ip=128.63.2.53 +dom=I.ROOT-SERVERS.NET ip=192.36.148.17 +dom=J.ROOT-SERVERS.NET ip=198.41.0.10 +dom=K.ROOT-SERVERS.NET ip=193.0.14.129 +dom=L.ROOT-SERVERS.NET ip=199.7.83.42 # nov 2007 +dom=M.ROOT-SERVERS.NET ip=202.12.27.33 + +dom=a.gtld-servers.net ip=192.5.6.30 +dom=b.gtld-servers.net ip=192.33.14.30 +dom=c.gtld-servers.net ip=192.26.92.30 +dom=d.gtld-servers.net ip=192.31.80.30 +dom=e.gtld-servers.net ip=192.12.94.30 +dom=f.gtld-servers.net ip=192.35.51.30 +dom=g.gtld-servers.net ip=192.42.93.30 +dom=h.gtld-servers.net ip=192.54.112.30 +dom=i.gtld-servers.net ip=192.43.172.30 +dom=j.gtld-servers.net ip=192.48.79.30 +dom=k.gtld-servers.net ip=192.52.178.30 +dom=l.gtld-servers.net ip=192.41.162.30 +dom=m.gtld-servers.net ip=192.55.83.30 + +# +# spam defense. unfortunately, arin doesn't give negative +# rcodes for these non-routable addresses. we'll do it for them. +# +dom=10.in-addr.arpa soa= # rfc1918 zones + dom=16.172.in-addr.arpa soa= + dom=17.172.in-addr.arpa soa= + dom=18.172.in-addr.arpa soa= + dom=19.172.in-addr.arpa soa= + dom=20.172.in-addr.arpa soa= + dom=21.172.in-addr.arpa soa= + dom=22.172.in-addr.arpa soa= + dom=23.172.in-addr.arpa soa= + dom=24.172.in-addr.arpa soa= + dom=25.172.in-addr.arpa soa= + dom=26.172.in-addr.arpa soa= + dom=27.172.in-addr.arpa soa= + dom=28.172.in-addr.arpa soa= + dom=29.172.in-addr.arpa soa= + dom=30.172.in-addr.arpa soa= + dom=31.172.in-addr.arpa soa= + dom=168.192.in-addr.arpa soa= + dom=0.in-addr.arpa soa= # rfc3330 zones + dom=127.in-addr.arpa soa= + dom=254.169.in-addr.arpa soa= + dom=2.0.192.in-addr.arpa soa= + dom=255.255.255.255.in-addr.arpa soa= + dom=d.f.ip6.arpa soa= # rfc4193 recommendation + dom=0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa soa= # rfc4291 zones + dom=1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa soa= + dom=8.e.f.ip6.arpa soa= + dom=9.e.f.ip6.arpa soa= + dom=a.e.f.ip6.arpa soa= + dom=b.e.f.ip6.arpa soa= + refresh=3600 ttl=3600 + ns=ns1.cs.bell-labs.com + ns=ns2.cs.bell-labs.com + +# +# ip protocol numbers +# +protocol=reserved ipv4proto=0 +protocol=icmp ipv4proto=1 +protocol=igmp ipv4proto=2 +protocol=ggp ipv4proto=3 +protocol=ip ipv4proto=4 +protocol=st ipv4proto=5 +protocol=tcp ipv4proto=6 +protocol=ucl ipv4proto=7 +protocol=egp ipv4proto=8 +protocol=igp ipv4proto=9 +protocol=bbn-rcc-mon ipv4proto=10 +protocol=nvp-ii ipv4proto=11 +protocol=pup ipv4proto=12 +protocol=argus ipv4proto=13 +protocol=emcon ipv4proto=14 +protocol=xnet ipv4proto=15 +protocol=chaos ipv4proto=16 +protocol=udp ipv4proto=17 +protocol=mux ipv4proto=18 +protocol=dcn-meas ipv4proto=19 +protocol=hmp ipv4proto=20 +protocol=prm ipv4proto=21 +protocol=xns-idp ipv4proto=22 +protocol=trunk-1 ipv4proto=23 +protocol=trunk-2 ipv4proto=24 +protocol=leaf-1 ipv4proto=25 +protocol=leaf-2 ipv4proto=26 +protocol=rdp ipv4proto=27 +protocol=irtp ipv4proto=28 +protocol=iso-tp4 ipv4proto=29 +protocol=netblt ipv4proto=30 +protocol=mfe-nsp ipv4proto=31 +protocol=merit-inp ipv4proto=32 +protocol=sep ipv4proto=33 +protocol=3pc ipv4proto=34 +protocol=idpr ipv4proto=35 +protocol=xtp ipv4proto=36 +protocol=ddp ipv4proto=37 +protocol=idpr-cmtp ipv4proto=38 +protocol=tp++ ipv4proto=39 +protocol=il ipv4proto=40 +protocol=sip ipv4proto=41 +protocol=sdrp ipv4proto=42 +protocol=sip-sr ipv4proto=43 +protocol=sip-frag ipv4proto=44 +protocol=idrp ipv4proto=45 +protocol=rsvp ipv4proto=46 +protocol=gre ipv4proto=47 +protocol=mhrp ipv4proto=48 +protocol=bna ipv4proto=49 +protocol=sipp-esp ipv4proto=50 +protocol=sipp-ah ipv4proto=51 +protocol=i-nlsp ipv4proto=52 +protocol=swipe ipv4proto=53 +protocol=nhrp ipv4proto=54 +protocol=any ipv4proto=61 +protocol=cftp ipv4proto=62 +protocol=any ipv4proto=63 +protocol=sat-expak ipv4proto=64 +protocol=kryptolan ipv4proto=65 +protocol=rvd ipv4proto=66 +protocol=ippc ipv4proto=67 +protocol=any ipv4proto=68 +protocol=sat-mon ipv4proto=69 +protocol=visa ipv4proto=70 +protocol=ipcv ipv4proto=71 +protocol=cpnx ipv4proto=72 +protocol=cphb ipv4proto=73 +protocol=wsn ipv4proto=74 +protocol=pvp ipv4proto=75 +protocol=br-sat-mon ipv4proto=76 +protocol=sun-nd ipv4proto=77 +protocol=wb-mon ipv4proto=78 +protocol=wb-expak ipv4proto=79 +protocol=iso-ip ipv4proto=80 +protocol=vmtp ipv4proto=81 +protocol=secure-vmtp ipv4proto=82 +protocol=vines ipv4proto=83 +protocol=ttp ipv4proto=84 +protocol=nsfnet-igp ipv4proto=85 +protocol=dgp ipv4proto=86 +protocol=tcf ipv4proto=87 +protocol=igrp ipv4proto=88 +protocol=ospfigp ipv4proto=89 protocol=ospf +protocol=sprite-rpc ipv4proto=90 +protocol=larp ipv4proto=91 +protocol=mtp ipv4proto=92 +protocol=ax.25 ipv4proto=93 +protocol=ipip ipv4proto=94 +protocol=micp ipv4proto=95 +protocol=scc-sp ipv4proto=96 +protocol=etherip ipv4proto=97 +protocol=encap ipv4proto=98 +protocol=any ipv4proto=99 +protocol=gmtp ipv4proto=100 +protocol=rudp ipv4proto=254 # unofficial + +# +# services +# +tcp=cs port=1 +tcp=echo port=7 +tcp=discard port=9 +tcp=systat port=11 +tcp=daytime port=13 +tcp=netstat port=15 +tcp=chargen port=19 +tcp=ftp-data port=20 +tcp=ftp port=21 +tcp=ssh port=22 +tcp=telnet port=23 +tcp=smtp port=25 +tcp=time port=37 +tcp=whois port=43 +tcp=dns port=53 +tcp=domain port=53 +tcp=uucp port=64 +tcp=gopher port=70 +tcp=rje port=77 +tcp=finger port=79 +tcp=http port=80 +tcp=link port=87 +tcp=supdup port=95 +tcp=hostnames port=101 +tcp=iso-tsap port=102 +tcp=x400 port=103 +tcp=x400-snd port=104 +tcp=csnet-ns port=105 +tcp=pop-2 port=109 +tcp=pop3 port=110 +tcp=portmap port=111 +tcp=uucp-path port=117 +tcp=nntp port=119 +tcp=netbios port=139 +tcp=imap4 port=143 +tcp=imap port=143 +tcp=NeWS port=144 +tcp=print-srv port=170 +tcp=z39.50 port=210 +tcp=ldap port=389 +tcp=fsb port=400 +tcp=sysmon port=401 +tcp=proxy port=402 +tcp=proxyd port=404 +tcp=https port=443 +tcp=cifs port=445 +tcp=ssmtp port=465 +tcp=rexec port=512 restricted= +tcp=login port=513 restricted= +tcp=shell port=514 restricted= +tcp=printer port=515 +tcp=ncp port=524 +tcp=courier port=530 +tcp=cscan port=531 +tcp=uucp port=540 +tcp=snntp port=563 +tcp=9fs port=564 +tcp=whoami port=565 +tcp=guard port=566 +tcp=ticket port=567 +tcp=ldaps port=636 +tcp=fmclient port=729 +tcp=ftps-data port=989 +tcp=ftps port=990 +tcp=imaps port=993 +tcp=pop3s port=995 +tcp=ingreslock port=1524 +tcp=pptp port=1723 +tcp=nfs port=2049 +tcp=webster port=2627 +tcp=weather port=3000 +tcp=mysql port=3306 +tcp=sip port=5060 +tcp=sips port=5061 +tcp=ttcp port=5117 +tcp=secstore port=5356 +tcp=vnc-http port=5800 +tcp=vnc port=5900 +tcp=Xdisplay port=6000 +tcp=styx port=6666 +tcp=mpeg port=6667 +tcp=rstyx port=6668 +tcp=infdb port=6669 +tcp=infsigner port=6671 +tcp=infcsigner port=6672 +tcp=inflogin port=6673 +tcp=bandt port=7330 +tcp=face port=32000 +tcp=dhashgate port=11978 +tcp=exportfs port=17007 +tcp=rexexec port=17009 +tcp=ncpu port=17010 +tcp=cpu port=17013 +tcp=glenglenda1 port=17020 +tcp=glenglenda2 port=17021 +tcp=glenglenda3 port=17022 +tcp=glenglenda4 port=17023 +tcp=glenglenda5 port=17024 +tcp=glenglenda6 port=17025 +tcp=glenglenda7 port=17026 +tcp=glenglenda8 port=17027 +tcp=glenglenda9 port=17028 +tcp=glenglenda10 port=17029 +tcp=nupasimap port=17030 +tcp=nupasimaps port=17031 +tcp=flyboy port=17032 +tcp=venti port=17034 +tcp=wiki port=17035 +tcp=vica port=17036 +tcp=aan port=17037 + + +# testing +tcp=9fsa port=18008 + +udp=echo port=7 +udp=tacacs port=49 +udp=tftp port=69 +udp=bootpc port=68 +udp=bootp port=67 +udp=domain port=53 +udp=dns port=53 +udp=portmap port=111 +udp=ntp port=123 +udp=netbios-ns port=137 +udp=snmp port=161 +udp=ha port=434 # mobile ip home agent +udp=ikev2 port=500 +udp=syslog port=514 +udp=rip port=520 +udp=dhcp6c port=546 +udp=dhcp6s port=547 +udp=nfs port=2049 +udp=bfs port=2201 +udp=virgil port=2202 +udp=sip port=5060 +udp=bandt2 port=7331 # viaducts +udp=oradius port=1812 +udp=radius port=1812 +udp=dhash port=11977 +udp=ulctl port=12666 +udp=uldata port=12667 +udp=dldata port=12668 + +gre=ppp port=34827 + +# +# authdom declarations need to be visible on the inside network, +# even for outside machines. putting them here ensures +# their visibility everywhere. +# + +# for geoff +auth=www.9netics.com authdom=9netics.com +auth=newcpu.9netics.net authdom=9netics.net +auth=mordor.tip9ug.jp authdom=tip9ug.jp + +# for geoff's ipv6 testing +auth=9grid.hamnavoe.com + authdom=hamnavoe.com + authdom=9grid.hamnavoe.com + +auth=whale.lsub.org + authdom=lsub.org + authdom=dat.escet.urjc.es + +# for jmk +auth=tor.texas.9grid.us authdom=9grid.us +auth=9grid.net authdom=9grid.net + +# for sape +auth=130.89.145.31 authdom=cs.utwente.nl diff --git a/sys/lib/dist/ndb/consoledb b/sys/lib/dist/ndb/consoledb new file mode 100644 index 000000000..684433896 --- /dev/null +++ b/sys/lib/dist/ndb/consoledb @@ -0,0 +1,5 @@ +# see consolefs(4) +group=sys + uid=glenda +console=testing dev=/dev/eia0 openondemand=1 + gid=sys diff --git a/sys/lib/dist/ndb/dnsdump b/sys/lib/dist/ndb/dnsdump new file mode 100644 index 000000000..54fc31935 --- /dev/null +++ b/sys/lib/dist/ndb/dnsdump @@ -0,0 +1,3 @@ +# dns debug +# write "dump" to /net/dns +# lots of output here diff --git a/sys/lib/dist/ndb/local b/sys/lib/dist/ndb/local new file mode 100644 index 000000000..dc94031eb --- /dev/null +++ b/sys/lib/dist/ndb/local @@ -0,0 +1,29 @@ +# +# files comprising the database, use as many as you like, see ndb(6) +# +database= + file=/net/ndb + file=/lib/ndb/local + file=/lib/ndb/common + +auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com + +#auth=cirno.9front authdom=9front + +#ntp=pool.ntp.org + +# +# because the public demands the name localsource +# +ip=127.0.0.1 sys=localhost dom=localhost + +# example: adjust to fit your network +#ipnet=9front ip=192.168.0.0 ipmask=255.255.255.0 +# auth=cirno.9front +# cpu=cirno.9front +# dns=192.168.0.2 +# dnsdom=9front +# smtp=cirno.9front +# +#ip=192.168.0.1 sys=gw dom=gw.9front +#ip=192.168.0.2 sys=cirno dom=cirno.9front diff --git a/sys/lib/dist/ndb/local.complicated b/sys/lib/dist/ndb/local.complicated new file mode 100644 index 000000000..a85255873 --- /dev/null +++ b/sys/lib/dist/ndb/local.complicated @@ -0,0 +1,113 @@ + +# +# files comprising the database, use as many as you like +# +database= + file=/lib/ndb/local + file=/lib/ndb/common + +# +# entries defining the dns root. these will be overridden by any +# authentic info obtained from the root. +# +dom= + ns=A.ROOT-SERVERS.NET + ns=B.ROOT-SERVERS.NET + ns=C.ROOT-SERVERS.NET + ns=D.ROOT-SERVERS.NET + ns=E.ROOT-SERVERS.NET + ns=F.ROOT-SERVERS.NET + ns=G.ROOT-SERVERS.NET + ns=H.ROOT-SERVERS.NET + ns=I.ROOT-SERVERS.NET + ns=J.ROOT-SERVERS.NET + ns=K.ROOT-SERVERS.NET + ns=L.ROOT-SERVERS.NET + ns=M.ROOT-SERVERS.NET +dom=A.ROOT-SERVERS.NET ip=198.41.0.4 +dom=B.ROOT-SERVERS.NET ip=128.9.0.107 +dom=C.ROOT-SERVERS.NET ip=192.33.4.12 +dom=D.ROOT-SERVERS.NET ip=128.8.10.90 +dom=E.ROOT-SERVERS.NET ip=192.203.230.10 +dom=F.ROOT-SERVERS.NET ip=192.5.5.241 +dom=G.ROOT-SERVERS.NET ip=192.112.36.4 +dom=H.ROOT-SERVERS.NET ip=128.63.2.53 +dom=I.ROOT-SERVERS.NET ip=192.36.148.17 +dom=J.ROOT-SERVERS.NET ip=198.41.0.10 +dom=K.ROOT-SERVERS.NET ip=193.0.14.129 +dom=L.ROOT-SERVERS.NET ip=198.32.64.12 # old + ip=199.7.83.42 # new, nov 2007 +dom=M.ROOT-SERVERS.NET ip=202.12.27.33 + + +# select one of the following two entries: + +# +# your domain if you are a dns server for your domain +# +dom=myuniversity.edu soa= + refresh=3600 ttl=3600 + ns=ns1.myuniversity.edu + ns=ns2.myuniversity.edu + mx=mail.myuniversity.edu pref=1 + mx=mailbackup.myuniversity.edu pref=2 + mbox=netmaster@myuniversity.edu + +# +# your domain if you aren't a domain server for the domain +# +dom=myuniversity.edu + ns=ns1.myuniversity.edu + ns=ns2.myuniversity.edu + +# +# define your network. dns, ntp, time, and wins are servers that can +# be returned by dhcp. auth and fs are the default plan9 authentication +# and name servers. change the addresses to whatever makes sense in your +# world. +# +# each dnsdomain is a domain to search through when resolving +# dnsnames +# +ipnet=mynetwork ip=10.0.0.0 ipmask=255.0.0.0 + fs=myfileserver.myuniversity.edu + auth=myauthserver.myuniversity.edu + dns=10.0.0.1 + dns=10.0.0.2 + wins=10.0.0.3 + wins=10.0.0.4 + ntp=10.0.0.5 + ntp=10.0.0.6 + time=10.0.0.7 + dnsdomain=cs.myuniversity.edu + dnsdomain=ee.myuniversity.edu + dnsdomain=math.myuniversity.edu + dnsdomain=myuniversity.edu + +# +# a subnet of of your network. you can override anything specified for the +# network. +# +ipnet=mysubnetwork ip=10.0.1.0 ipmask=255.255.255.0 + dns=10.0.1.1 + dns=10.0.1.2 + +# +# define a few systems. if they support the il protocol, say so. otherwise +# the connection server will assume they just know tcp and udp. +# - the sys= tuple specifies a local nickname for the machine. +# - unless a bootf= tuple exists, dhcp will not answer boot requests for it +# +ip=10.0.1.10 ether=0010dc724074 sys=fs + dom=myfileserver.myuniversity.edu + bootf=/386/9pcfs + +ip=10.0.1.11 ether=0010dc724075 sys=auth + dom=myauthserver.myuniversity.edu + bootf=/386/9pccpu + +ip=10.0.1.12 ether=0010dc724076 sys=term + dom=myterminal.myuniversity.edu + bootf=/386/9pc + +auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com diff --git a/sys/lib/dist/ndb/nfs b/sys/lib/dist/ndb/nfs new file mode 100644 index 000000000..c120fb2f0 --- /dev/null +++ b/sys/lib/dist/ndb/nfs @@ -0,0 +1,3 @@ +#server client uidfile gidfile +!9fs tcp!kremvax +.+ [^.]+\.moscow\.edu /n/kremvax/etc/passwd /n/kremvax/etc/group diff --git a/sys/lib/dist/pc/plan9.ini.cd b/sys/lib/dist/pc/plan9.ini.cd deleted file mode 100644 index aab8c4883..000000000 --- a/sys/lib/dist/pc/plan9.ini.cd +++ /dev/null @@ -1,7 +0,0 @@ -# config for initial cd booting -*nomp=1 -cdboot=yes -mouseport=ask -monitor=ask -vgasize=ask -bootfile=/386/9pcf diff --git a/sys/lib/rootbind b/sys/lib/rootbind index 16c89dbd0..a399fbdcb 100755 --- a/sys/lib/rootbind +++ b/sys/lib/rootbind @@ -1,4 +1,5 @@ bind `{pwd} /n/src9 bind /n/src9/$objtype/bin /bin bind -a /n/src9/rc/bin /bin +bind /lib/ndb /n/src9/lib/ndb for(i in $objtype rc acme mail sys lib cron){bind -c /n/src9/$i /$i} diff --git a/sys/lib/rootstub b/sys/lib/rootstub index a487e7ee6..4e326ac94 100755 --- a/sys/lib/rootstub +++ b/sys/lib/rootstub @@ -107,6 +107,7 @@ mkdir -p cron mkdir -p dist/plan9front mkdir -p fd mkdir -p lib/audio +mkdir -p lib/ndb mkdir -p mail/box/bootes mkdir -p mail/box/glenda mkdir -p mail/faxoutqueue -- cgit v1.2.3