Welcome to the WS DNS Lookup Service. This service allows you to perform a DNS lookup by providing a hostname. It’s useful for testing network configurations and ensuring that your application can resolve domain names correctly.
curl (for command-line users).
If you’re new to these tools, follow the steps carefully, and soon you’ll be making requests with ease.
The service is accessible at the following endpoint:
POST /webservices/rest/ws-dns-lookup.php
Provide a hostname in the request body, and the service will perform a DNS lookup for that hostname. If the security level is set high, the service will validate the hostname to protect against malicious input.
google.com).Here’s how to send a request to this service using Burp Repeater:
POST /webservices/rest/ws-dns-lookup.php HTTP/1.1
Host: mutillidae.localhost
Content-Type: application/json
Accept: application/json
Origin: http://mutillidae.localhost
Connection: close
{
"hostname": "google.com"
}
Instructions:
curl (Command Line)If you prefer using the command line, here’s how you can make the same request with curl:
curl -X POST "http://mutillidae.localhost/webservices/rest/ws-dns-lookup.php" \
-H "Content-Type: application/json" \
-H "Host: mutillidae.localhost" \
-H "Accept: application/json" \
-H "Origin: http://mutillidae.localhost" \
-H "Connection: close" \
-d '{"hostname": "google.com"}'
Instructions:
curl command.If everything works correctly, you will receive a response like this:
{
"hostname": "google.com",
"command": "nslookup 'google.com'",
"security-level": 5,
"result": "Server: 8.8.8.8\nAddress: 142.250.190.78"
}
mutillidae.localhost host is correctly configured in your environment.If you want to explore more, try providing different hostnames and observe the results.
For example, you can send the hostname example.com and check if it resolves correctly.