Discovery: "Include domain name in host name" doesn't seem to work reliably when DNS reverse lookups multiple IP addresses

mholmes
Tera Expert

It's very important to us that the FQDN is used as the "name" for our CIs. For our purposes, the best source for hostnames in our environment is by far DNS, so trusting other sources such as SSH or WMI will not help.

Setting the value of the "Include domain name in host name" sys_property [glide.discovery.hostname.include_domain] to "true" works most of the time, but we keep getting outliers where only the first part of the hostname is used.

I've noticed that the failures are for devices where the DNS probe brings back results for multiple IP addresses.

Example:

<results probe_time="141" result_code="0">
    <result ip_address="XXX.XX.XX.01" result="resolved">
        <name>blahblah.mydomain.com</name>
    </result>
    <result ip_address="XXX.XX.XX.02" result="unresolved">
        <name/>
    </result>
    <result ip_address="XXX.XX.XX.03" result="unresolved">
        <name/>
    </result>
</results>

In this case, the name of the CI would be "blahblah." This is true even if "XXX.XX.XX.01" is set as the "IP Address" for the CI.

It is populating "blahblah.mydomain.com" in the "Fully qualified domain name" field, so it's not like it can't understand it. It's just not ending up in the main "Name" field.

Is there any way to change this behavior and tell it that if one of many reverse lookups is successful, then to use that result as the name?

11 REPLIES 11

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

This is for which type of devices or all type of devices?


Thanks,
Ashutosh

Currently, it is Linux servers. Not all Linux servers, just two.

I am fairly certain that a different type of device had this problem two weeks ago, but we cloned over the instance since then so I can't track down that information.

Since my last reply, we've performed a more extensive Discovery, and at this time all of the affected devices are Linux Servers.

Hi,

I think now you should go and raise HI ticket for more insights.

Thanks,
Ashutosh