From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <5782C16A7C920E469B74E11B5608B8E708A30DFE@Kriegler.ntdom.cupdx> References: <5782C16A7C920E469B74E11B5608B8E708A30DFE@Kriegler.ntdom.cupdx> Date: Fri, 29 Apr 2011 17:14:18 +0400 Message-ID: From: Sergey Kornilovich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00504502cb1b867d7404a20e73e0 Subject: Re: [9fans] dns SRV records Topicbox-Message-UUID: d8c9310c-ead6-11e9-9d60-3106f5b1d025 --00504502cb1b867d7404a20e73e0 Content-Type: text/plain; charset=ISO-8859-1 I took your example without any changes. But unfortunately it still does not return the correct value of srv hostname ... For example: C:\Documents and Settings\Administrator>nslookup Default Server: rit.com Address: 192.168.0.190 > server 192.168.0.193 > set q=srv > _ldap._tcp.testad.test.local Server: [192.168.0.193] Address: 192.168.0.193 _ldap._tcp.testad.test.local SRV service location: priority = 0 weight = 0 port = 389 svr hostname = kfdc1\.testad\.test\.local._ldap._tcp.testad.test.loc al *** Error: record size incorrect (32 != 30) *** [192.168.0.193] can't find _ldap._tcp.testad.test.local: Unspecified error And it should be: > server 192.168.0.2 Default Server: server64.rit.com Address: 192.168.0.2 > _ldap._tcp.rit.com Server: server64.rit.com Address: 192.168.0.2 _ldap._tcp.rit.com SRV service location: priority = 0 weight = 100 port = 389 svr hostname = server65.rit.com _ldap._tcp.rit.com SRV service location: priority = 0 weight = 100 port = 389 svr hostname = server64.rit.com server65.rit.com internet address = 192.168.0.5 server64.rit.com internet address = 192.168.0.2 2011/4/29 Benjamin Huntsman > >Investigating the possibility of replacing the MS DNS on Plan9 DNS,not > found in the man ndb mention of records of type SRV. > >It is necessary to support Microsoft Active Directory. Maybe I missed > something? > >http://en.wikipedia.org/wiki/SRV_record > > I got AD to work with Plan 9 DNS just last year. It didn't work very well, > and I had problems with the DNS > service dying from time to time and I'd have to go restart it. Much as I'd > preferred to have stayed on Plan 9 DNS, > I switched to BIND 9 on OpenBSD and have had far fewer problems. But > anyway, here's the Active Directory support > portion of my /ndb/local. This supported a domain whose domain was > "testad". Like I said, it works, but not as > seamlessly as MS DNS or BIND 9 with dynamic updates enabled... (pardon the > excessive comments) > > > > ################################################# > # > # Active Directory support > # See http://technet.microsoft.com/en-us/library/dd316373.aspx > # > ################################################# > > # > # Domain Controllers: > # > ip=10.0.0.20 sys=kfdc1 dom=kfdc1.testad.test.local > ether= > ip=10.0.0.21 sys=kfdc2 dom=kfdc2.testad.test.local > ether=005056b36086 > > # > # requisite CNAME aliases > # > cname=kfdc2.testad.test.local > dom=testad.test.local > > cname=kfdc2.testad.test.local > dom=8df1f9af-8c89-4263-9c30-a40ad5ac728f._msdcs.testad.test.local > > # > # SRV records, etc > # > dom=testad.test.local soa= > refresh=3600 ttl=3600 > ns=ns2.test.local > #ns=ns1.test.local > dnsdomain=testad.test.local > > > dom=_ldap._tcp.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > dom=_kerberos._tcp.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=88 > srv=kfcd2.testad.test.local pri=1 weight=1 port=88 > > dom=_kpasswd._udp.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=464 > srv=kfdc2.testad.test.local pri=1 weight=1 port=464 > > dom=_kpasswd._tcp.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=464 > srv=kfdc2.testad.test.local pri=1 weight=1 port=464 > > dom=_ldap._tcp.dc._msdcs.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > dom=_ldap._tcp.gc._msdcs.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > # only one PDC > dom=_ldap._tcp.pdc._msdcs.testad.test.local soa= > srv=kfdc2.testad.test.local pri=0 weight=0 port=389 > > dom=_ldap._tcp.KlamathFalls._sites.gc._msdcs.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > dom=_kerberos._tcp.dc._msdcs.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=88 > srv=kfdc2.testad.test.local pri=1 weight=1 port=88 > > dom=gc._msdcs.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=3268 > srv=kfdc2.testad.test.local pri=1 weight=1 port=3268 > > dom=_gc._tcp.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=3268 > srv=kfdc2.testad.test.local pri=1 weight=1 port=3268 > > > dom=_ldap._tcp.e3514235-4b06-11d1-ab04-00c04fc2dcd2.domains._msdcs.testad.test.local > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > # Key Management Service > dom=_VLMCS._tcp.testad.test.local soa= > srv=kfdc2.testad.test.local pri=0 weight=0 port=1688 > > dom=_ldap._tcp.KlamathFalls._sites.domaindnszones.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > dom=_ldap._tcp.domaindnszones.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > dom=_ldap._tcp.KlamathFalls._sites.forestdnszones.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > dom=_ldap._tcp.forestdnszones.testad.test.local soa= > srv=kfdc1.testad.test.local pri=0 weight=0 port=389 > srv=kfdc2.testad.test.local pri=1 weight=1 port=389 > > > > ################################################# > # > # End Active Directory Support > # > ################################################# > --00504502cb1b867d7404a20e73e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I took your example without any changes. But unfortunately it still doe= s not return the correct value of srv hostname ...
For example:
=
C:\Documents and Settings\Administrator>nslookup
Default S= erver: rit.com
Address: 192.168.0.190

> server 192.168.0.193
>= set q=3Dsrv
> _ldap._tcp.testad.test.local
Server: [192.168.0.19= 3]
Address: 192.168.0.193

_ldap._tcp.testad.test.local SRV se= rvice location:
priority =3D 0
weight =3D 0
= port =3D 389
svr hostname =3D kfdc1\.testad\.te= st\.local._ldap._tcp.testad.test.loc
al

*** Error: record size in= correct (32 !=3D 30)

*** [192.168.0.193] can't find _ldap._tcp.testad.test.local: Unspec= ified error

And it should be:
> s= erver 192.168.0.2
Default Server: s= erver64.rit.com
Address: 192.168.0.2

> _ldap._tcp= .rit.com
Server: server64.rit.c= om
Address: 192.168.0.2

_ldap._tcp.rit.com SRV service location:
priority =3D 0
weight =3D 100
= port =3D 389
svr hostname =3D server65.rit.com
_ldap._tcp.rit.com SRV service location:
priority =3D 0
weight =3D 100
= port =3D 389
svr hostname =3D server64.rit.com
server65.rit.com internet address =3D 192.168.0.5
server64.rit.com internet ad= dress =3D 192.168.0.2

2011/4/29 Ben= jamin Huntsman <BHuntsman@mail2.cu-portland.edu>
>Investigating the pos= sibility of replacing the MS DNS on Plan9 DNS,not found in the man ndb ment= ion of records of type SRV.
>It is necessary to support Microsoft Active Directory. Maybe I missed s= omething?
>h= ttp://en.wikipedia.org/wiki/SRV_record

I got AD to work with Plan 9 DNS just last year. =A0It didn't wor= k very well, and I had problems with the DNS
service dying from time to time and I'd have to go restart it. =A0Much = as I'd preferred to have stayed on Plan 9 DNS,
I switched to BIND 9 on OpenBSD and have had far fewer problems. =A0But any= way, here's the Active Directory support
portion of my /ndb/local. =A0This supported a domain whose domain was "= ;testad". =A0Like I said, it works, but not as
seamlessly as MS DNS or BIND 9 with dynamic updates enabled... =A0(pardon t= he excessive comments)



#################################################
#
# Active Directory support
# See http://technet.microsoft.com/en-us/library/dd316373.aspx<= /a>
#
#################################################

#
# Domain Controllers:
#
ip=3D10.0.0.20 sys=3Dkfdc1 dom=3Dkfdc1.testad.test.local
=A0 =A0 =A0 =A0ether=3D
ip=3D10.0.0.21 sys=3Dkfdc2 dom=3Dkfdc2.testad.test.local
=A0 =A0ether=3D005056b36086

#
# requisite CNAME aliases
#
cname=3Dkfdc2.testad.test.local
=A0 =A0 =A0 =A0dom=3Dtestad.test.local

cname=3Dkfdc2.testad.test.local
=A0 =A0 =A0 =A0dom=3D8df1f9af-8c89-4263-9c30-a40ad5ac728f._msdcs.testad.te= st.local

#
# SRV records, etc
#
dom=3Dtestad.test.local soa=3D
=A0 =A0 =A0 =A0refresh=3D3600 ttl=3D3600
=A0 =A0 =A0 =A0ns=3Dns2.test.local
=A0 =A0 =A0 =A0#ns=3Dns1.test.local
=A0 =A0 =A0 =A0dnsdomain=3Dtestad.test.local


dom=3D_ldap._tcp.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389

dom=3D_kerberos._tcp.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D88<= br> =A0 =A0srv=3Dkfcd2.testad.test.local pri=3D1 weight=3D1 port=3D88

dom=3D_kpasswd._udp.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D464=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D464=

dom=3D_kpasswd._tcp.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D464=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D464=

dom=3D_ldap._tcp.dc._msdcs.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389

dom=3D_ldap._tcp.gc._msdcs.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=

# only one PDC
dom=3D_ldap._tcp.pdc._msdcs.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D0 weight=3D0 port=3D389=

dom=3D_ldap._tcp.KlamathFalls._sites.gc._msdcs.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=

dom=3D_kerberos._tcp.dc._msdcs.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D88<= br> =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D88

dom=3Dgc._msdcs.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D326= 8
=A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D3268

dom=3D_gc._tcp.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D326= 8
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D326= 8

dom=3D_ldap._tcp.e3514235-4b06-11d1-ab04-00c04fc2dcd2.domains._msdcs.testad= .test.local
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=

# Key Management Service
dom=3D_VLMCS._tcp.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D0 weight=3D0 port=3D168= 8

dom=3D_ldap._tcp.KlamathFalls._sites.domaindnszones.testad.test.local soa= =3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=

dom=3D_ldap._tcp.domaindnszones.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=

dom=3D_ldap._tcp.KlamathFalls._sites.forestdnszones.testad.test.local soa= =3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=

dom=3D_ldap._tcp.forestdnszones.testad.test.local soa=3D
=A0 =A0 =A0 =A0srv=3Dkfdc1.testad.test.local pri=3D0 weight=3D0 port=3D389=
=A0 =A0 =A0 =A0srv=3Dkfdc2.testad.test.local pri=3D1 weight=3D1 port=3D389=



#################################################
#
# End Active Directory Support
#
#################################################

--00504502cb1b867d7404a20e73e0--