I bought CopSSH yesterday and I have a problem with GetDCName.
This problem occurs because CopSSH can't talk to a domain controller on ldap udp 389.
I have done some digging and found out that when CopSSH is looking/asking the DNS for the domain controller it uses this command:
_ldap._tcp.pdc._msdcs. DnsDomainName .
CopSSH should not ask DNS for the PDC(primary domain controller), but for the DC for the AD site in which the server resides.
CopSSH should use this command to find the correct DC:
_ldap._tcp. SiteName ._sites.dc._msdcs. DnsDomainName
My PDC is in another subnet and blocked by firewall because of security reasons, so I can not use CopSSH with domain accounts as it is now.
Can you please fix this or give us a way to hardcode which DC CopSSH should talk to.