---
title: FAQ - DNS Resolution Errors for SMTP in Nodinite Alarm Plugins
description: "Resolve DNS errors when Nodinite Alarm Plugins send e-mail: read the No such host is known or WSANO_DATA error in the Alarm Queue, verify the SMTP server's DNS records and firewall, fix the entry, and let the next retry send the queued alerts."
---

# 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.

![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)][1]  
*Animated walkthrough: from the error in the [Alarm Queue][] to the delivered alert. The steps are under [Step 5](#step-5-fix-the-entry-and-let-the-queue-resend).*  

## Understanding the DNS Resolution Error

Before it sends anything, the [Monitoring Service][] looks up the **SMTP Server** of the [Alarm Plugin][Add or manage 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**.

<div class="mermaid">
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<br/>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
</div>

*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

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

```text
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

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

```text
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.'
```

### 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

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

### 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.com` vs `smtp.example.net`)
* **Internal DNS zone not accessible** - SMTP server uses internal DNS that the Monitoring Service cannot query

## Solution Steps

### Step 1: Verify DNS Resolution

Test DNS resolution from the :Nodinite: Application Server:

```powershell
# 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
```

#### Expected Output (DNS records found)

```text
Server:  dns-server.example.com
Address:  192.168.1.1

Name:    smtp.example.com
Address:  203.0.113.10
```

#### Error Output (DNS resolution fails)

```text
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

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:

```powershell
# 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][Monitoring Service Alarm Plugin firewall].

#### Test DNS Connectivity

```powershell
# 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
```

### Step 3: Verify the SMTP Server Hostname

* **Check SMTP server spelling** - Ensure the **SMTP Server** in the **SMTP options** of the [Email options][Email with 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](https://mxtoolbox.com/)<sup>:fa-arrow-up-right-from-square:</sup> or [DNS Checker](https://dnschecker.org/)<sup>:fa-arrow-up-right-from-square:</sup> 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)

>[!WARNING]
>Using an **IP address** instead of a hostname will bypass DNS resolution but will **fail SSL/TLS certificate validation** because certificates are issued to hostnames, not IP addresses. Use IP testing only to diagnose DNS issues, then switch back to the hostname. See [FAQ - SSL/TLS Certificate Name Mismatch][] for certificate hostname verification requirements.

#### Find SMTP Server IP Address

```powershell
# 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

If DNS queries are blocked by Windows Firewall:

```powershell
# 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

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][Add or manage Alarm Plugin]).
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][Alarm Queue 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.

>[!TIP]
>If DNS resolution works but you now see an **SSL/TLS certificate error** (e.g., `The host name (…) did not match any of the names given in the server's SSL certificate`), see [FAQ - SSL/TLS Certificate Name Mismatch][] for certificate hostname verification troubleshooting.

## Additional Troubleshooting

### 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][Monitoring Service Alarm Plugin firewall])
* **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

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:

```powershell
# 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")
```

### 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

### "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"

**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"

**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"

**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

## :fa-hand-point-right: Next Steps

* :fa-shield-halved: [FAQ - SSL/TLS Certificate Revocation Issues][]  
* :fa-at: [FAQ - Office365 Email Configuration][]  
* :fa-plug-circle-bolt: [Add or manage Alarm Plugin][]  

## :fa-link-horizontal: Related Topics

* :fa-question-circle: [FAQ - Troubleshooting Alarm Plugins Overview][]  
* :fa-envelope: [Email with Options][]  
* :fa-bell: [Alarm Queue][]  
* :fa-watch-fitness: [Monitoring Service][]  
* :fa-life-ring: [Support][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Settings/AlarmPlugins/AlarmPlugin_DNSResolutionError.gif

[Add or manage Alarm Plugin]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Add%20or%20manage%20Alarm%20Plugin.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Overview.md
[Alarm Queue]:{ndr}/Administration/5.%20Settings/4.%20Alarm%20Queue/Overview.md
[Alarm Queue retries]:{ndr}/Administration/5.%20Settings/4.%20Alarm%20Queue/Overview.md#fa-rotate-when-the-monitoring-service-retries
[Email with Options]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/Email%20with%20Options.md
[FAQ - Office365 Email Configuration]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Troubleshooting/FAQ%20-%20Office365%20Email%20Issues.md
[FAQ - SSL/TLS Certificate Name Mismatch]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Troubleshooting/FAQ%20-%20SSL%20TLS%20Certificate%20Name%20Mismatch.md
[FAQ - SSL/TLS Certificate Revocation Issues]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Troubleshooting/FAQ%20-%20SSL%20TLS%20Certificate%20Revocation.md
[FAQ - Troubleshooting Alarm Plugins Overview]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Troubleshooting/Overview.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Monitoring Service Alarm Plugin firewall]:{ndr}/Core%20Services/Monitoring%20Service/Getting%20started/1.%20Prerequisites.md#between-the-monitoring-service-and-the-alarm-plugin-targets
[Support]:https://support.nodinite.com