DNS domain for Windows Servers

Ankush13
Kilo Guru

I am discovering windows servers and I have 1 server with DNS domain and 3 others with empty DNS domain.


A quick wiki reference shows that "dns_domain" is the variable name which is populating CMDB and it's source is DNS. Now when I search for this variable in scripts, i don't find this variable anywhere. I have checked Sensors, Script includes, but I can't find it.


Comparing the ECC queue of the server that has DNS Domain and the server that doesn't under Windows - Identity, I found that one had dns_domain under CIData and one doesn't. But when I look at DNS ECC Queue, I see result as resolved with FQDN for both the servers.


Can someone please direct me to the correct script which is populating DNS domain info in the CMDB. Also, the possible causes for this behavior. My DNS server is resolving and has entries for both the servers that I am comparing.


Thank you,

Ankush Latawa

1 ACCEPTED SOLUTION

That is a function in the HostnameJS Script include


View solution in original post

4 REPLIES 4

brendanaye
Giga Contributor

Take a look at Discovery Definition-->Properties



You can set the trusted name source for a Windows device (DNS/Netbios or WMI).   You can also set if the domain is included in the hostname.



Finally, look at the DNS Host Name and Domain Name Regex, which determines how the FQDN will be split into hostname and domain.


Yes, I know about those properties and have already tweaked them to meet the needs.



I am looking for the script/sensor that is populating "DNS domain" in CMDB.



- AL


That is a function in the HostnameJS Script include


I believe the actual CMDB update/insert is part of DiscoveryIDSensor.   You don't see the variable name because it's using reflection to loop through class properties, rather than defining them as static fields..