298006 - DNS Resolution Failed
Agent error code #298006 indicates that the agent could not resolve the hostname configured for a firewall. The agent attempted to look up the firewall's hostname but the DNS query failed.
This error is distinct from connection refused (#298005) or timeout (#298001) errors, which occur after the hostname has been successfully resolved. A DNS resolution failure means the agent cannot even determine the IP address of the firewall.
Common causes include:
- The hostname configured in Knocknoc contains a typo or is incorrect
- The DNS server used by the agent cannot resolve the hostname
- The firewall uses an internal hostname that is not resolvable from the agent's network
- DNS service is unavailable or misconfigured on the agent's host
Steps to Resolve
Verify the Hostname
- Check the firewall hostname configured in Knocknoc for typos or errors
- Confirm the hostname is the correct fully-qualified domain name (FQDN) for the firewall's management interface
- If the firewall uses an internal DNS name, ensure it matches exactly what is configured in the internal DNS server
Test DNS Resolution
From the machine running the agent:
- Attempt to resolve the hostname using DNS lookup tools (e.g.,
nslookupordigon the command line, or a web-based tool like MXToolbox DNS Lookup) - If the lookup fails, the hostname is not resolvable from the agent's network
- If the lookup succeeds, verify the returned IP address matches the expected value
Note: Web-based DNS tools test resolution from the public internet. If the firewall uses an internal hostname, the lookup must be performed from the agent's host using command-line tools.
If this fails, check the DNS configuration:
- Verify the agent's host has a working DNS configuration
- If the firewall uses an internal hostname, ensure the agent's DNS server can resolve internal names
- Check that no DNS-related firewall rules are blocking queries from the agent's host
Consider Using an IP Address
If DNS resolution continues to fail:
- Configure the firewall backend in Knocknoc using the firewall's IP address instead of its hostname
- Ensure the IP address is the management interface address
- Note that using IP addresses may require updates if the firewall's IP changes
Still Having Issues?
We can help you out, contact us at support@knocknoc.io.