Reputation: 61
Is it possible to get the dns host server name of an LDAP connection? I am using SSL and LDAP connection from DirectoryServices.Protocols, I know it is possible by using the PrincipalContext but I can't use that.
If anyone knows please let me know =)
Upvotes: 1
Views: 1201
Reputation: 11026
LDAP, is a protocol, and has no abilities to provide DNS resolution UNLESS, the DNS entries are present within the LDAP Server Implementation.
And often but not always, Microsoft Active Directory, does contain the DNS records.
I found this article that appears to be STILL be valid.
So if your Microsoft Domain is using the built in DNS information is exposed in Microsoft Active Directory at:
DC=<ZoneName>,cn=MicrosoftDNS,cn=System,<DomainDN>
Sorry, I am not very familiar with c#.
Upvotes: 2