Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2012
    Posts
    6
    Plugin Contributions
    0

    Default (6) Couldn't resolve host 'api-3t.paypal.com'

    Hello, the last 6-7 days i have had troubleto use paypal express on my site.

    I use Zen cart v1.5 with paypal express.
    My host is host1.no and my url is www.elektroarena.net and www.makeupheaven.no
    I have the same problem on both sites..

    But sometimes the payment goes through. I get the error about 2 out of 10 times.

    The error code is : (6) Couldn't resolve host 'api-3t.paypal.com'

    I have talked to my host and they say that they can resolve api-3t.paypal.com at the same time as i get the error in my cart. So they say that there is no problem at the server.

    What could be wrong?

    The host i located in Norway, i use LIVE api server, and api signature.

    I have a script called ipncheck.php where i get this error:
    CURL ERROR: Attempted connection on: https://www.paypal.com/cgi-bin/webscr

    (6) Couldn't resolve host 'www.paypal.com'

    Trying direct HTTP on port 80 instead ...

    CURL RESPONSE RECEIVED - Communications OKAY
    IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY



    IPN TESTING - Confirmation/Validation response with fsockopen(): FSOCKOPEN() RESPONSE RECEIVED - Communications OKAY



    Default method likely to be used for communications is: CURL, with the fallback method being FSOCKOPEN if possible.

    Script finished.

    And sometimes i get no error with the script.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    3,970
    Plugin Contributions
    1

    Default Re: (6) Couldn't resolve host 'api-3t.paypal.com'

    Quote Originally Posted by elektroarena View Post
    But sometimes the payment goes through. I get the error about 2 out of 10 times.

    The error code is : (6) Couldn't resolve host 'api-3t.paypal.com'

    I have talked to my host and they say that they can resolve api-3t.paypal.com at the same time as i get the error in my cart. So they say that there is no problem at the server.

    What could be wrong?
    Forget what your host has told you. The problem is with your/their nameserver(s). The intermittent nature of the problem indicates that all is set up correctly, but for reasons I can't identify it isn't getting a response in a timely manner. This is almost always caused by one of 3 possible things.

    1. Your server is being overloaded
    2. The network between your server and the DNS servers are being swamped
    3. The DNS server(s) are being overloaded.

    I've checked/verified the problem on your site and there is no evidence that it is your server being overloaded, which means a network or DNS problem. Neither is something that you can fix. It is something your host needs to take care of.

    The fact that your host can resolve this address whilst your server cannot is easily explained by the fact that they are using 4 nameservers (which is good) and *thier* lookups are/were using a different server than your server.

    There ARE ways that you can eliminate this problem by editing the zencart/paypal code to use one of PayPals IP addresses rather than hostname, but it's not good practice and will eventually cause problems of its own. Nonetherless it is an effective way to mitigate DNS lookup issues (and it will provide evidence to your host that it is a nameserver issue rather than a zencart store issue.

    Having said that, if DrByte or any of the zencart team provide different advice than this take their advice over mine. They have a lot more experience with PayPal issues than I do. Besides, a second opinion never goes astray. :)

    Cheers
    Rod
    New support site for the ozpost shipping module now live!

  3. #3
    Join Date
    Jan 2004
    Posts
    58,289
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: (6) Couldn't resolve host 'api-3t.paypal.com'

    Quote Originally Posted by RodG View Post
    The problem is with your/their nameserver(s).

    ...

    It is something your host needs to take care of.
    Agreed.
    Quote Originally Posted by RodG View Post
    There ARE ways that you can eliminate this problem by editing the zencart/paypal code to use one of PayPals IP addresses rather than hostname, but it's not good practice and will eventually cause problems of its own.
    Agreed again.
    Using a direct IP address as a SHORT and TEMPORARY test is suitable for testing only. Do NOT rely on it as a long-term solution. PayPal does change their server addresses from time to time, and hard-coding the IP address will cause you more trouble in the end. It is not a proper fix.

    Get your host to fix their server configuration problem.

    Perhaps their /etc/resolv.conf file is damaged or is pointing to destinations which are no longer working as expected. Again, that's something that only the server's primary administrator can fix.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jul 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: (6) Couldn't resolve host 'api-3t.paypal.com'

    Thank you very much for two very good answers!
    I will get back to my host and ask whats going on.

 

 

Similar Threads

  1. v139h (6) Couldn't resolve host 'api-3t.paypal.com'
    By dmagic in forum General Questions
    Replies: 4
    Last Post: 26 Mar 2012, 03:32 PM
  2. (6) Couldn't resolve host 'www.paypal.com'
    By 524cw in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Nov 2010, 04:07 AM
  3. PayPal express error (6) Couldn't resolve host 'api-3t.paypal.com'
    By SeaMonkey76 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 1 Jul 2010, 09:48 PM
  4. Paypal Direct Alert - Couldn't resolve host 'api-3t.paypal.com'
    By wsmith48 in forum PayPal Website Payments Pro support
    Replies: 4
    Last Post: 9 Mar 2008, 05:42 PM
  5. (6) Couldn't resolve host 'api-3t.paypal.com' FREQUENT errors
    By swingandmiss in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 31 Jan 2008, 04:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •