How to change or add condition on FQDN rule ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
I need to adjust the FQDN matching rule so that if the full FQDN does not match, it falls back to matching based on the hostname (without the domain).
In some cases, the FQDN received from Tenable does not include the domain, whereas the existing CI in ServiceNow does. I also want the rule to handle the reverse scenario—where the incoming FQDN lacks the domain but the CI record includes it, and still ensure proper matching.
Could someone guide me on where and how to modify the FQDN matching rule in ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago - last edited a week ago
We did this - at least half of your need - with a stand-alone scripted rule to match on hostname. We run this rule prior to any other matching rule.
Here are the rule values:
Lookup method: Script
Type: Custom
Source field: HOST_NAME
Condition: FQDN/Host name [contains] "."
Here's the script (credit to Chris McDevitt, whose source script I used).
