Service Virtualization

  • 1.  Network Error (dns_unresolved_hostname)

    Posted Nov 28, 2016 12:11 AM

    Hi all,

     

    I am using DevTest 9.0, where I am trying to record one https API, & recorder content is having below error in reponse:

     

    Network Error (dns_unresolved_hostname)

    Your requested host "abc.com" could not be resolved by DNS.

     

    can anyone please help to understand the issue & possible solution to rectify this.

     

    Thanks in advance!



  • 2.  Re: Network Error (dns_unresolved_hostname)
    Best Answer

    Posted Nov 28, 2016 08:26 AM

    Hi Sona0703, it sounds like you have some debugging to do since the issue is very likely peculiar to your specific installation.  DevTest is not providing the DNS lookup.

     

    Have you checked to ensure that firewalls are not preventing access?

     

    Is the endpoint inside or outside of the network?  

    If the endpoint is outside, does your installation require a Proxy Server?  If so, you may need to specify the proxy in local.properties.  

     

    From the server or Workstation where the recording is performed:

    - Can you launch a command prompt and try nslookup www.abc.com  - what do you see?

    - Are you able to successfully send an HTTPS request from a browser, Postman, SoapUI, etc. to the endpoint?

    - Are you able to successfully use a DevTest Test Case to send an HTTPS request successfully?

    - Do you have a tool such as Wireshark or tcpdump that you can turn on to view the request-on-the-wire to the endpoint? This is often helpful as you can see the low level communications attempts that are happening.

     

    Since your error is a DNS resolution problem, it is unlikely that adding a -Djavax.net.debug=all directive to the VMOPTIONS is going to yield much info.