Skip to content
Documentation
Updated 9 minutes to read
Markdown

Resolve DNS hostname resolution errors when Nodinite Alarm Plugins send e-mail. This guide helps you diagnose and fix SMTP server DNS lookup failures. The Monitoring Service sends every alert, so all checks below run on the server that hosts it. Alerts that fail this way wait in the Alarm Queue, and the next retry sends them once the cause is fixed.

An Email options entry with an SMTP Server name that doesn't resolve: the alert waits in the Alarm Queue with No such host is known, the SMTP Server is corrected, and the next retry delivers the alert, animated walkthrough (7.13)
Animated walkthrough: from the error in the Alarm Queue to the delivered alert. The steps are under Step 5.

Before it sends anything, the Monitoring Service looks up the SMTP Server of the Alarm Plugin entry in DNS and connects to it. When the name doesn't resolve, the connection fails before authentication or message content, and the alert waits in the Alarm Queue with the error as its Last Exception.

flowchart LR Alert["fa:fa-bell Alert from a Monitor View"] --> MS["fa:fa-watch-fitness Monitoring Service"] MS -->|"DNS lookup of the SMTP Server"| DNS["fa:fa-server DNS server"] DNS -->|"No such host is known"| Queue["fa:fa-list Alarm Queue
Last Exception"] Queue -->|"retry with the entry as stored now"| MS MS -->|"name resolves"| SMTP["fa:fa-envelope SMTP server"] style MS fill:#2678BD style Queue fill:#c33d34 style SMTP fill:#93d16d

Blue: the Monitoring Service sends the alert. Red: a failed DNS lookup leaves it in the Alarm Queue. Green: once the name resolves, the retry reaches the SMTP server.

The Last Exception of the queued entry reads, in Nodinite 7.12:

Failed to send all e-mail alarms, To: "operations@contoso.com", Subject: "Contoso order desk: alert from Nodinite - [IBSS | DEV] - With Error", Errors:"No such host is known."

When some recipients get the alert and others don't, the text starts with Failed to send {n} of {m} e-mail alarms instead.

Execute Alarm test on the same entry shows the error in its own layout:

500 Internal Server Error
Execute Test Alarm, Error from Monitoring Service
Internal Server Error : An error occurred while testing the Alarm Plugin [Error] [Test]
Failed to distribute e-mail to e-mail address: operations@contoso.com". Error: No such
host is known., InnerException: 'No such host is known.'

Windows writes one of two messages, depending on what DNS knows about the name:

Message Meaning
No such host is known. The name doesn't exist in DNS (NXDOMAIN): it is misspelled, or the DNS servers the Monitoring Service's server uses don't know it
The requested name is valid, but no data of the requested type was found. (WSANO_DATA) The name exists in DNS, but has no A or AAAA record

This error originates from the MailKit SMTP library used by the Email Plugin:

  • Nodinite.Libraries.Plugins/Core/EmailPlugin/EmailPlugin.cs connects using MailKit.Net.Smtp.SmtpClient.ConnectAsync(server, port, …) before any other operations
  • Both messages come from the Windows DNS lookup of the SMTP server hostname configured in SettingsModel.Server
  • The exception occurs during ConnectAsync, before authentication or message content processing, indicating a DNS resolution failure for the SMTP server hostname
  • The SMTP host name in the entry's SMTP options either doesn't exist in DNS, has no A/AAAA DNS record, or sits in a DNS zone the Monitoring Service cannot reach

This error occurs when Nodinite cannot resolve the SMTP server hostname configured in the Alarm Plugin settings. The MailKit library attempts to connect to the SMTP server but fails during DNS resolution. Common causes include:

  • DNS resolution failure - The Nodinite Monitoring Service cannot resolve the SMTP server hostname to an IP address
  • Missing A/AAAA records - The SMTP server hostname has no DNS A or AAAA records
  • Firewall blocking DNS - Outbound DNS queries (UDP/TCP port 53) are blocked
  • Incorrect DNS server configuration - The server is using DNS servers that cannot resolve the SMTP hostname
  • Typo in SMTP server hostname - The server name is misspelled (e.g., smtp.example.com vs smtp.example.net)
  • Internal DNS zone not accessible - SMTP server uses internal DNS that the Monitoring Service cannot query

Test DNS resolution from the Nodinite Application Server:

Terminal window
# Test if the SMTP server hostname can be resolved
nslookup smtp.example.com
# Check for A records specifically
nslookup -type=A smtp.example.com
# Alternative: Use Resolve-DnsName (PowerShell)
Resolve-DnsName -Name smtp.example.com -Type A
Server: dns-server.example.com
Address: 192.168.1.1
Name: smtp.example.com
Address: 203.0.113.10
Server: dns-server.example.com
Address: 192.168.1.1
*** smtp.example.com can't find smtp.example.com: Non-existent domain

Step 2: Check Firewall and DNS Server Access

Section titled “Step 2: Check Firewall and DNS Server Access”

Ensure the Nodinite Application Server has outbound access to DNS servers:

  • DNS Port 53 (UDP and TCP) must be allowed in firewall rules
  • DNS Server Configuration - Verify the server is using valid DNS servers:
Terminal window
# Check current DNS server configuration
Get-DnsClientServerAddress -AddressFamily IPv4
  • Public DNS Access - If using internal DNS servers, ensure they can forward queries to public DNS (or use public DNS like 8.8.8.8 or 1.1.1.1 for testing)

The full list of ports the Monitoring Service needs for Alarm Plugins is in its firewall settings.

Terminal window
# Test if DNS port 53 is accessible
Test-NetConnection -ComputerName 8.8.8.8 -Port 53
# Temporarily test with Google DNS
Resolve-DnsName -Name smtp.example.com -Server 8.8.8.8
  • Check SMTP server spelling - Ensure the SMTP Server in the SMTP options of the Email options entry is spelled correctly (e.g., smtp.example.com vs smtp.example.net)
  • Verify DNS records exist - Use online DNS lookup tools like MXToolbox or DNS Checker to verify the SMTP server has valid A or AAAA records
  • Test with IP address - Temporarily configure the SMTP server using its IP address instead of hostname to confirm connectivity (if DNS resolution is the issue, this will bypass it)
Terminal window
# Resolve the SMTP hostname to IP address
$smtpHost = "smtp.example.com"
$result = Resolve-DnsName $smtpHost -Type A
Write-Host "SMTP Server IP: $($result.IPAddress)"

Step 4: Configure Windows Firewall for DNS

Section titled “Step 4: Configure Windows Firewall for DNS”

If DNS queries are blocked by Windows Firewall:

Terminal window
# Allow outbound DNS (UDP port 53)
New-NetFirewallRule -DisplayName "Allow DNS UDP" -Direction Outbound -Protocol UDP -RemotePort 53 -Action Allow
# Allow outbound DNS (TCP port 53)
New-NetFirewallRule -DisplayName "Allow DNS TCP" -Direction Outbound -Protocol TCP -RemotePort 53 -Action Allow

Step 5: Fix the Entry and Let the Queue Resend

Section titled “Step 5: Fix the Entry and Let the Queue Resend”

Once the name resolves, correct the entry. The queued alerts are sent with the corrected server at the next retry, as the walkthrough at the top of this page shows:

  1. Open the Alarm Queue (Administration > Settings > Alarm Queue) and click more in the Last Exception column to read the whole error.
  2. Click the name in the Alarm Plugin column. It opens the entry.
  3. Open the Configuration tab, then SMTP options.
  4. Correct SMTP Server, and click Save.
  5. Click Execute Alarm test to confirm delivery (about the alarm tests).
  6. Wait for the next retry. The Monitoring Service retries the queue once an hour, with the entry as it is stored now (when it retries). The queue empties, and the alert arrives.

You don't need to delete the queued alerts. Delete or purge only alerts you no longer want sent.

If DNS resolution works but the test still fails:

If your SMTP server is on an internal DNS zone:

  • Verify DNS zone accessibility - Ensure the Nodinite server can query the internal DNS zone
  • Check DNS suffix search list - Add the internal domain to the DNS suffix search list:
Terminal window
# View current DNS suffix search list
Get-DnsClientGlobalSetting|Select-Object -ExpandProperty SuffixSearchList
# Add internal domain to search list (example)
Set-DnsClientGlobalSetting -SuffixSearchList @("example.com", "internal.example.com")

If using a proxy server:

  • DNS over proxy - Some proxies intercept DNS queries; verify DNS bypass is configured
  • Direct DNS required - Ensure Nodinite server can make direct DNS queries to DNS servers

Cause: SMTP hostname does not exist in DNS
Solution: Verify spelling, check with network team, use IP address temporarily

Cause: Firewall blocking DNS port 53 or DNS server unreachable
Solution: Allow UDP/TCP port 53, verify DNS server configuration

Cause: The hostname doesn't exist in DNS (NXDOMAIN): a misspelled or unknown name
Solution: Correct the spelling, or check that the name exists in the DNS zone the Monitoring Service's server queries

"The requested name is valid, but no data of the requested type was found"

Section titled “"The requested name is valid, but no data of the requested type was found"”

Cause: The hostname exists in DNS but has no A or AAAA record (WSANO_DATA)
Solution: Ask the DNS administrator to add the record, or use a hostname that has one

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...