Unresolved Target Domain Error

Fix unresolved target domain issues in Pynt. Learn how to troubleshoot and resolve problems with domain name resolution to ensure successful API security scans.

This error in Pynt indicates that the domain name of your API target cannot be resolved, preventing the security scan from running. This guide will help you troubleshoot and resolve domain name resolution issues, ensuring that your API targets are reachable and your scans can be completed successfully.

Message: The target domain was unresolved. Please make sure your functional tests use the correct domain

What Happened: We couldn’t resolve the test target’s domain name to an IP or otherwise couldn’t communicate with the server

How To Solve:

1. Use β€œlocalhost” instead of IP (such as β€œ127.0.0.1”) for a server running on the local machine

2. Make sure the correct environment is selected in Postman UI

3. Make sure that the domain is reachable by using Postman to run the test collection and that no β€œDNS Lookup Failed” errors were received

4. Make sure that the domain is accessible from the docker container by running the following commands in a command prompt, replace "<THE TEST DOMAIN>" with your domain:

docker run -it alpine:latest /bin/sh
ping <THE TEST DOMAIN>

Make sure that error message such as β€œName or service not known” wasn’t received

Last updated