From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 3 May 2011 12:30:43 +0400 Message-ID: From: Sergey Kornilovich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001636e0a59ebb953a04a25af46d Subject: Re: [9fans] dns SRV records Topicbox-Message-UUID: db758b9e-ead6-11e9-9d60-3106f5b1d025 --001636e0a59ebb953a04a25af46d Content-Type: text/plain; charset=ISO-8859-1 So far, everything looks like a bug in the dns ... Take a simple local file: cat /lib/ndb/local database= file=/lib/ndb/local file=/lib/ndb/common dom=test.local soa= refresh=3600 ttl=3600 ns=server.test.local dom=_ldap._tcp.test.local soa= refresh=3600 ttl=3600 srv=server.test.local pri=0 weight=0 port=389 ip=192.168.0.193 sys=server dom=server.test.local >>From plan9 everything looks fine: cpu% dnsquery > server.test.local server.test.local ip 192.168.0.193 > _ldap._tcp.test.local srv _ldap._tcp.test.local srv 0 0 389 server.test.local But not from linux, not from windows, access to SRV records can not be obtained .. Linux output(Gentoo, bind-tools 9.7.3): krok@krok ~ $ nslookup > server 192.168.0.193 Default server: 192.168.0.193 Address: 192.168.0.193#53 > set q=srv > _ldap._tcp.test.local ;; Warning: Message parser reports malformed message packet. Server: 192.168.0.193 Address: 192.168.0.193#53 *** Can't find _ldap._tcp.test.local: No answer Windows output(Windows Server 2003): Address: 192.168.0.193 > set q=srv > _ldap._tcp.test.local Server: ns.rit.com Address: 192.168.0.193 _ldap._tcp.test.local SRV service location: priority = 0 weight = 0 port = 389 svr hostname = Invalid Name at offset 57! *** Error: record size incorrect (-391819 != 24) _ldap._tcp.test.local SRV service location: priority = 0 weight = 0 port = 389 svr hostname = Invalid Name at offset 57! *** Error: record size incorrect (-391819 != 24) *** ns.rit.com can't find _ldap._tcp.test.local: Unspecified error Does anyone have ideas how to fix the situation? --001636e0a59ebb953a04a25af46d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So far, everything looks like a bug in the dns ...
Take a simple lo= cal file:
cat /lib/ndb/local
database=3D
file=3D/lib/n= db/local
file=3D/lib/ndb/common

dom=3Dtest.local soa=3D
refr= esh=3D3600 ttl=3D3600
ns=3Dserver.test.local

dom=3D_ldap._tcp.test.local soa=3D
refre= sh=3D3600 ttl=3D3600
srv=3Dserver.test.local pri=3D0 weight=3D0 port=3D= 389

ip=3D192.168.0.193 sys=3Dserver dom=3Dserver.test.local

From plan9 everything looks fine:

cpu% dnsquery
> server.test.local
server.test.local ip 19= 2.168.0.193
> _ldap._tcp.test.local srv
_ldap._tcp.test.local srv = 0 0 389 server.test.local

But not from linux, not from windows, acce= ss to SRV records can not be obtained ..
Linux output(Gentoo, bind-tools 9.7.3):

krok@krok ~ $ nslookup
> server 192.168.0.193
Default server: 192= .168.0.193
Address: 192.168.0.193#53
> set q=3Dsrv
> _ldap._= tcp.test.local
;; Warning: Message parser reports malformed message packet.
Server: = 192.168.0.193
Address: 192.168.0.193#53

*** Can't= find _ldap._tcp.test.local: No answer

Windows= output(Windows Server 2003):

Address: 192.168.0.193

> set q=3Dsrv> _ldap._tcp.test.local
Server: ns.r= it.com
Address: 192.168.0.193

_ldap._tcp.test.local SRV se= rvice location:
priority =3D 0
weight =3D 0
= port =3D 389
svr hostname =3D Invalid Name at o= ffset 57!


*** Error: record size incorrect (-391819 !=3D 24)
=
_ldap._tcp.test.local SRV service location:
priority =3D 0
weight =3D 0
= port =3D 389
svr hostname =3D Invalid Name at o= ffset 57!


*** Error: record size incorrect (-391819 !=3D 24)
=
*** ns.rit.com can't find _ldap._= tcp.test.local: Unspecified error

Does anyone have ideas how to fix the situation?<= /div>

--001636e0a59ebb953a04a25af46d--