SOAP Services Home Page

SOAP DNS Lookup Service Documentation

This SOAP service allows users to perform DNS lookups using a SOAP interface.

Endpoint

POST /webservices/soap/ws-dns-lookup.php

Request Structure

The request body should follow this XML format:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:urn="urn:commandinjwsdl">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:lookupDNS>
         <targetHost>example.com</targetHost>
      </urn:lookupDNS>
   </soapenv:Body>
</soapenv:Envelope>

Example Using Burp Repeater

POST /webservices/soap/ws-dns-lookup.php HTTP/1.1
Host: mutillidae.localhost
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:commandinjwsdl#lookupDNS"
Content-Length: [length]

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:urn="urn:commandinjwsdl">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:lookupDNS>
         <targetHost>example.com</targetHost>
      </urn:lookupDNS>
   </soapenv:Body>
</soapenv:Envelope>

Example Using curl

curl -X POST "http://mutillidae.localhost/webservices/soap/ws-dns-lookup.php" \
-H "Content-Type: text/xml; charset=utf-8" \
-H "SOAPAction: \"urn:commandinjwsdl#lookupDNS\"" \
--data '<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
              xmlns:urn="urn:commandinjwsdl">
<soapenv:Header/>
<soapenv:Body>
  <urn:lookupDNS>
     <targetHost>example.com</targetHost>
  </urn:lookupDNS>
</soapenv:Body>
</soapenv:Envelope>'

Expected Response

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <lookupDNSResponse>
         <results host="example.com">
            <line>Server: 8.8.8.8</line>
            <line>Address: 8.8.8.8#53</line>
            <line>Non-authoritative answer:</line>
            <line>Name: example.com</line>
            <line>Address: 93.184.216.34</line>
         </results>
      </lookupDNSResponse>
   </soap:Body>
</soap:Envelope>
Troubleshooting Tips: