MID Server auto-selection fails when hostname cannot be resolved to an IP address in CMDB<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } .kb-wrapper { font-family: Lato, sans-serif; color: #000000; line-height: 1.7; max-width: 100%; } .kb-wrapper h2 { font-size: 14pt; font-weight: 900; color: #032D42; border-bottom: 2px solid #e8fce4; padding-bottom: 8px; margin-top: 20px; margin-bottom: 12px; } .kb-wrapper h2:first-child { margin-top: 0; } .kb-wrapper p, .kb-wrapper li, .kb-wrapper ul, .kb-wrapper ol { font-size: 12pt; margin-bottom: 10px; } .kb-wrapper ul, .kb-wrapper ol { margin-left: 20px; } .kb-wrapper li { margin-bottom: 8px; } /* Numbered steps */ .kb-wrapper ol { counter-reset: step-counter; list-style: none; } .kb-wrapper ol li { counter-increment: step-counter; position: relative; padding-left: 40px; margin-bottom: 12px; } .kb-wrapper ol li:before { content: counter(step-counter); position: absolute; left: 0; width: 28px; height: 28px; background-color: #032D42; color: #63DF4E; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12pt; } /* Info/Note callout */ .kb-wrapper .note { border-left: 4px solid #52B8FF; background-color: #e6f4ff; padding: 12px 15px; margin: 15px 0; } .kb-wrapper .note p { margin: 0; font-size: 12pt; } /* Warning callout */ .kb-wrapper .warning { border-left: 4px solid #e6a817; background-color: #fff4e0; padding: 12px 15px; margin: 15px 0; } .kb-wrapper .warning p { margin: 0; font-size: 12pt; } /* Inline code */ .kb-wrapper code { background-color: #e6f0f5; color: #032D42; border: 1px solid #b8cfd8; padding: 2px 6px; border-radius: 3px; font-family: monospace; font-size: 11pt; } /* Related Links */ .kb-wrapper .related-links { margin-top: 20px; } .kb-wrapper .related-links ul { list-style: none; padding: 0; margin: 10px 0; } .kb-wrapper .related-links li { margin-bottom: 10px; padding-left: 0; } .kb-wrapper .related-links a { color: #032D42; text-decoration: none; border-bottom: 1px solid #032D42; } .kb-wrapper .related-links a:hover { color: #63DF4E; } .kb-wrapper .link-disclaimer { font-size: 10pt; font-style: italic; color: #666666; margin-left: 20px; margin-top: 4px; } Issue MID Server selection fails during auto-selection when the system cannot resolve a hostname to an IP address in the CMDB. Symptoms When attempting to use MID Server auto-selection, the following error occurs: com.snc.mid.util.midselector.BadArgumentException: IP address not found for this hostname: Unable to resolve IP Address for the host name The error message includes a hostname that should be resolvable, but the auto-selection process cannot locate the corresponding IP address. Facts This issue only occurs when using MID Server auto-selection functionality.The hostname in question exists as a DNS Name CI in the CMDB.The hostname resolves correctly via standard DNS lookup tools (such as nslookup) when executed on the MID Server.The MID Selector does not perform live DNS lookups; it queries the CMDB for IP address information. Release All Versions Cause The MID Selector resolves hostnames by querying the CMDB for relationships between DNS Name CI records and their corresponding IP Address CI records. In this scenario, the DNS Name CI exists in the CMDB and may resolve correctly via external DNS, but the relationship link between the DNS Name CI and its IP Address CI is missing from the CMDB. Because the MID Selector cannot find this relationship, it fails to resolve the hostname and throws the BadArgumentException error. Resolution Manually create the missing relationship between the DNS Name CI and the IP Address CI by following these steps: Navigate to the DNS Name CI record in your instance (Filter Navigator search for: Configuration by Category -> DNS).Open the record and locate the IP Address relationship field.Select the Add button to add an IP address relationship.Search for and filter by the correct IP address (for example, [IP_ADDRESS]) to locate the matching IP Address CI record.Select the matching IP Address CI from the search results.Save the DNS Name CI record. Once this relationship is created in the CMDB, the MID Selector can resolve the hostname successfully, and auto-selection functions as expected. Related Links MID Server OverviewConfiguration Items in the CMDB