From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <59b80455-8c28-49a8-9cf9-19a5b7c79529@googlegroups.com> References: <7d57bd30-6e43-4d54-8670-ef6c71fefae1@i5g2000vbk.googlegroups.com> <59b80455-8c28-49a8-9cf9-19a5b7c79529@googlegroups.com> Date: Thu, 4 Apr 2013 11:24:04 +0200 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=14dae9340ee71cd7ad04d9858863 Subject: Re: [9fans] [9pi] standardize \ normalize setting dns in Topicbox-Message-UUID: 3d4b1694-ead8-11e9-9d60-3106f5b1d025 --14dae9340ee71cd7ad04d9858863 Content-Type: text/plain; charset=UTF-8 2013/4/4 > term% cat /lib/ndb/local > > # > # files comprising the database, use as many as you like, see ndb(6) > # > database= > file=/lib/ndb/local > file=/lib/ndb/common > > auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com > > # > # because the public demands the name localsource > # > ip=127.0.0.1 sys=localhost dom=localhost > > ipnet=HOME > ip=10.0.0.0 > ipmask=255.255.255.0 > ipsubmask=255.255.255.0 > ipgw=10.0.0.138 > auth=9pi > cpu=9pi > fs=9pi > dns=1.2.3.4 > dns=8.8.8.8 > dns=8.8.4.4 > dns=10.0.0.138 > dnsdomain=HOME > > ip=10.0.0.13 sys=9pi dom=9pi.HOME proto=il > > auth=10.0.0.13 authdom=9pi.HOME > > term% ndb/query sys $sysname > ip=10.0.0.13 sys=9pi dom=9pi.HOME proto=il > > Thanks ! > > Suppose you have ip=10.0.0.13 sys=9pi1 dom=9pi.HOME proto=il ip=10.0.0.14 sys=9pi4 dom=9pi.HOME proto=il which one is this machine? add the 'ether=' excerpt from my /lib/ndb/local: ipnet=9front ip=10.0.2.0 ipmask=255.255.255.0 ipgw=10.0.2.2 dns=10.150.128.15 sys=thor ether=525400123456 dom=thor.9front ip=10.0.2.15 and the output on my qemu terminal looks like this: term% ndb/query sys $sysname ip=10.0.2.15 ipmask=/120 ipgw=10.0.2.2 sys=thor dns=10.150.128.15 sys=thor ether=525400123456 dom=thor.9front ip=10.0.2.15 term% --14dae9340ee71cd7ad04d9858863 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2013/4/4 <c117152@rmqkr.net>
term% cat /lib/ndb/local

#
# =C2=A0files comprising the database, use as many as you like, see ndb(6)<= br> #
database=3D
=C2=A0 =C2=A0 =C2=A0 =C2=A0 file=3D/lib/ndb/local
=C2=A0 =C2=A0 =C2=A0 =C2=A0 file=3D/lib/ndb/common

auth=3Dsource= s.cs.bell-labs.com authdom=3Doutside.plan9.bell-labs.com

#
# =C2=A0because the public demands the name localsource
#
ip=3D127.0.0.1 sys=3Dlocalhost dom=3Dlocalhost

ipnet=3DHOME
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ip=3D10.0.0.0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ipmask=3D255.255.255.0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ipsubmask=3D255.255.255.0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ipgw=3D10.0.0.138
=C2=A0 =C2=A0 =C2=A0 =C2=A0 auth=3D9pi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cpu=3D9pi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 fs=3D9pi
=C2=A0 =C2=A0 =C2=A0 =C2=A0 dns=3D1.2.3.4
=C2=A0 =C2=A0 =C2=A0 =C2=A0 dns=3D8.8.8.8
=C2=A0 =C2=A0 =C2=A0 =C2=A0 dns=3D8.8.4.4
=C2=A0 =C2=A0 =C2=A0 =C2=A0 dns=3D10.0.0.138
=C2=A0 =C2=A0 =C2=A0 =C2=A0 dnsdomain=3DHOME

ip=3D10.0.0.13 sys=3D9pi dom=3D9pi.HOME proto=3Dil

auth=3D10.0.0.13 authdom=3D9pi.HOME

term% ndb/query sys $sysname
ip=3D10.0.0.13 sys=3D9pi dom=3D9pi.HOME proto=3Dil

Thanks !


Suppose you h= ave

ip=3D10.0.0.13 sys=3D9pi1 dom=3D9pi.HOME proto=3Dil

ip=3D10.0.0.14 sys=3D9pi4 dom=3D= 9pi.HOME proto=3Dil

which one is this machine?
add the 'ether=3D'

=
excerpt from my /lib/ndb/local:

ipnet=3D9front ip=3D10.0.2.0 ipmask=3D255.255.255.0
ipgw=3D10.0.2.2=
dns=3D10.150.128.15

sys= =3Dthor ether=3D525400123456 dom=3Dthor.9front
ip=3D10.0.2.15
=


and the output on my qemu terminal looks like this:

term% ndb/query sys $sysname
ip=3D10.0.2.15= ipmask=3D/120 ipgw=3D10.0.2.2 sys=3Dthor dns=3D10.150.128.15=C2=A0
sys=3Dthor ether=3D525400123456 dom=3Dthor.9front = ip=3D10.0.2.15=C2=A0
term%


--14dae9340ee71cd7ad04d9858863--