FAQ - DNS Resolution Errors
Section titled “FAQ - DNS Resolution Errors”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.

Animated walkthrough: from the error in the Alarm Queue to the delivered alert. The steps are under Step 5.
Understanding the DNS Resolution Error
Section titled “Understanding the DNS Resolution Error”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.
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.
What the Alarm Queue Shows
Section titled “What the Alarm Queue Shows”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.
What Execute Alarm test Shows
Section titled “What Execute Alarm test Shows”Execute Alarm test on the same entry shows the error in its own layout:
500 Internal Server ErrorExecute 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 suchhost is known., InnerException: 'No such host is known.'Which Message You Get
Section titled “Which Message You Get”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 |
Technical Details
Section titled “Technical Details”This error originates from the MailKit SMTP library used by the Email Plugin:
Nodinite.Libraries.Plugins/Core/EmailPlugin/EmailPlugin.csconnects usingMailKit.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/AAAADNS record, or sits in a DNS zone the Monitoring Service cannot reach
Root Cause
Section titled “Root Cause”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.comvssmtp.example.net) - Internal DNS zone not accessible - SMTP server uses internal DNS that the Monitoring Service cannot query
Solution Steps
Section titled “Solution Steps”Step 1: Verify DNS Resolution
Section titled “Step 1: Verify DNS Resolution”Test DNS resolution from the Nodinite Application Server:
# Test if the SMTP server hostname can be resolvednslookup smtp.example.com
# Check for A records specificallynslookup -type=A smtp.example.com
# Alternative: Use Resolve-DnsName (PowerShell)Resolve-DnsName -Name smtp.example.com -Type AExpected Output (DNS records found)
Section titled “Expected Output (DNS records found)”Server: dns-server.example.comAddress: 192.168.1.1
Name: smtp.example.comAddress: 203.0.113.10Error Output (DNS resolution fails)
Section titled “Error Output (DNS resolution fails)”Server: dns-server.example.comAddress: 192.168.1.1
*** smtp.example.com can't find smtp.example.com: Non-existent domainStep 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:
# Check current DNS server configurationGet-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.8or1.1.1.1for testing)
The full list of ports the Monitoring Service needs for Alarm Plugins is in its firewall settings.
Test DNS Connectivity
Section titled “Test DNS Connectivity”# Test if DNS port 53 is accessibleTest-NetConnection -ComputerName 8.8.8.8 -Port 53
# Temporarily test with Google DNSResolve-DnsName -Name smtp.example.com -Server 8.8.8.8Step 3: Verify the SMTP Server Hostname
Section titled “Step 3: Verify the SMTP Server Hostname”- Check SMTP server spelling - Ensure the SMTP Server in the SMTP options of the Email options entry is spelled correctly (e.g.,
smtp.example.comvssmtp.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)
Find SMTP Server IP Address
Section titled “Find SMTP Server IP Address”# Resolve the SMTP hostname to IP address$smtpHost = "smtp.example.com"$result = Resolve-DnsName $smtpHost -Type AWrite-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:
# 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 AllowStep 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:
- Open the Alarm Queue (Administration > Settings > Alarm Queue) and click more in the Last Exception column to read the whole error.
- Click the name in the Alarm Plugin column. It opens the entry.
- Open the Configuration tab, then SMTP options.
- Correct SMTP Server, and click Save.
- Click Execute Alarm test to confirm delivery (about the alarm tests).
- 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.
Additional Troubleshooting
Section titled “Additional Troubleshooting”DNS Resolution Works but Test Still Fails
Section titled “DNS Resolution Works but Test Still Fails”If DNS resolution works but the test still fails:
- Check SMTP port access - Ensure outbound TCP port 25, 587, or 465 is allowed (depending on your SMTP provider; see the Monitoring Service firewall settings)
- Verify email credentials - Ensure the SMTP username and password are correct (the entry's SMTP options tab)
- Review Monitoring Service logs - Check the Monitoring Service log files for detailed error messages
- Check for certificate errors - See FAQ - SSL/TLS Certificate Revocation Issues and FAQ - SSL/TLS Certificate Name Mismatch
Internal DNS Zones
Section titled “Internal DNS Zones”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:
# View current DNS suffix search listGet-DnsClientGlobalSetting|Select-Object -ExpandProperty SuffixSearchList
# Add internal domain to search list (example)Set-DnsClientGlobalSetting -SuffixSearchList @("example.com", "internal.example.com")Proxy and DNS
Section titled “Proxy and DNS”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
Common Error Patterns
Section titled “Common Error Patterns”"Non-existent domain"
Section titled “"Non-existent domain"”Cause: SMTP hostname does not exist in DNS
Solution: Verify spelling, check with network team, use IP address temporarily
"DNS request timed out"
Section titled “"DNS request timed out"”Cause: Firewall blocking DNS port 53 or DNS server unreachable
Solution: Allow UDP/TCP port 53, verify DNS server configuration
"No such host is known"
Section titled “"No such host is known"”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
Next Steps
Section titled “ Next Steps”- FAQ - SSL/TLS Certificate Revocation Issues
- FAQ - Office365 Email Configuration
- Add or manage Alarm Plugin