No changes to the script…
$ uname -mrs
FreeBSD 12.0-RELEASE amd64
$ perl jwDCLocator_linux.pl /domain:k16tst.test.loc
jwDCLocator V01.02.00pl Joe Richards (support@joeware.net) March 2019
Initializing Logging to logfile 20190326-2229-jwDCLocator.log…
Reading configuration file jwDCLocator.config…
Configuration file does not exist, skipping…
Determining bootstrap domain controllers via DNS for k16tst.test.loc…
BootStrap Hosts: k16tst-dc1.k16tst.test.loc k16tst-scdc1.k16tst.test.loc k16tst-dc2.k16tst.test.loc
Dynamically determining site…
Sending LDAP Ping to LDAP://k16tst-dc1.k16tst.test.loc:389…
AutoDetected Server Site : Default-First-Site-Name
AutoDetected Client Site : Site2
AutoDetected Client Next Closest Site: Default-First-Site-Name
Determining site specific DNS records…
Dynamically determining domain k16tst.test.loc site specific domain controllers for site Site2…
Dynamically determining domain k16tst.test.loc site specific domain controllers for site Default-First-Site-Name…
Validating DCs for Site2…(Order=0)
k16tst-dc2.k16tst.test.loc…
TCP LDAP PING…
Sending LDAP Ping to LDAP://k16tst-dc2.k16tst.test.loc:389…
DC Site = Site2
ElapsedTime = 0.006692
Retrieving RootDSE…
Synchronized = TRUE
ElapsedTime = 0.021649
k16tst-scdc1.k16tst.test.loc…
TCP LDAP PING…
Sending LDAP Ping to LDAP://k16tst-scdc1.k16tst.test.loc:389…
DC Site = Site2
ElapsedTime = 0.006101
Retrieving RootDSE…
Synchronized = TRUE
ElapsedTime = 0.017424
Validating DCs for Default-First-Site-Name…(Order=1)
k16tst-dc1.k16tst.test.loc…
TCP LDAP PING…
Sending LDAP Ping to LDAP://k16tst-dc1.k16tst.test.loc:389…
DC Site = Default-First-Site-Name
ElapsedTime = 0.013375
Retrieving RootDSE…
Synchronized = TRUE
ElapsedTime = 0.037377
Checking Validation List for PDC domain controllers
Ordering DCs by Site | Priority | Avg Elapsed Response Time…
Sorted Validated Domain Controller List
k16tst-dc2.k16tst.test.loc
k16tst-scdc1.k16tst.test.loc
k16tst-dc1.k16tst.test.loc
The command completed.
$