[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: HTTPAPI Host name look up failed



I assume you can ping the host name shown in the debug listing from your PC? Check it to make sure you are pinging the name as shown in the debug listing:
Host: www.scottklement.com

From CMD on your PC:

C:\Users\mikekr>ping www.scottklement.com

Pinging www.scottklement.com [82.146.48.99] with 32 bytes of data:

That first line is the important one. It should return an IP address.

Try the same thing on your IBMi ( from CALL QCMD):
ping www.scottklement.com                                          
Verifying connection to host system WWW.SCOTTKLEMENT.COM at address
  82.146.48.99.

If you go to CMD on your PC and type 
ipconfig /all
You will see a section that shows DNS Servers. Does this match what you put in your IBMi? If not, you put in the wrong servers. Change them. If it is the same, then I am not sure what is going on. Maybe try using an open DNS server to see if that works.
On the IBMi:
NSLOOKUP
Server 208.67.222.222
www.scottklement.com

Mine looks like this:
server 208.67.222.222                  
> Default server: 208.67.222.222       
Address: 208.67.222.222#53             
www.scottklement.com                   
> Server:               208.67.222.222 
Address:        208.67.222.222#53      
                                       
Non-authoritative answer:              
Name:   www.scottklement.com           
Address: 82.146.48.99                  

If that works, you could try changing the DNS servers on your IBMi to include the openDNS Addresses but most likely that means that DNS server 192.168.211.214 is misconfigured for internet name lookup.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nuno Carrico
Sent: Tuesday, June 2, 2015 3:54 AM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: HTTPAPI Host name look up failed

Hi,

This is the debug:
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V6R1M0

http_url_get(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: IG.LOCAL
DNS server found: 192.168.211.214
SetError() #2: Host name look up failed.

Thanks
Nuno

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Monday, June 1, 2015 21:29
To: HTTPAPI and FTPAPI Projects
Subject: RE: HTTPAPI Host name look up failed

You aren't giving us anything to help you with.

Look in the debug listing.
Copy the lines that start with DNS and send them to the list.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nuno Carrico
Sent: Monday, June 1, 2015 5:06 AM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: HTTPAPI Host name look up failed

I removed the scottklement.com from option 10 I have configured the DNS server in option 12, the same as in our web browsers but still doesn't find any website

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Thursday, May 28, 2015 17:28
To: HTTPAPI and FTPAPI Projects
Subject: RE: HTTPAPI Host name look up failed

In your debug listing for EXAMPLE1, do you see these lines?
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: YOURCOMPANY.COM
DNS server found: 172.22.1.99
DNS server found: 172.21.1.99


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Thursday, May 28, 2015 11:20 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: HTTPAPI Host name look up failed

Can you ping the DNS hosts?

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nuno Carrico
Sent: Thursday, May 28, 2015 11:03 AM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: HTTPAPI Host name look up failed

Hi Scott,

If I remove from option 10 the entry I can't ping it.
The DNS that is setup on option 12 is the same as I have in my regular web browser setup.

Any idea?

Nuno

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, May 28, 2015 16:54
To: HTTPAPI and FTPAPI Projects
Subject: Re: HTTPAPI Host name look up failed

Nuno,

I would remove the entry for scottklement.com from the host table (CFGTCP opt 10).  That's not the right way to do things...  there are billions of hosts on the Internet, you shouldn't have to put each one into your host table and keep them all up to date, that's crazy!

So remove the host name.  Can you still ping it?   If not, then there's
something wrong with your DNS setup.

If you can still ping it, but get a 'Host name lookup failed' or 'Host not found' in HTTPAPI, then you need to check the spelling closely to make sure they match.  You mention 'scottklement.com' in your e-mail, but
EXAMPLE1 actually uses 'www.scottklement.com' -- so they are not the same.

-SK

On 5/28/2015 8:38 AM, Nuno Carrico wrote:
>     Hi,
>
>
>     I'm testing with the HTTPAPI and keep getting the "Host name look up
>     failed"
>
>     I call example 1 and get the error message.
>
>     I have configures the DNS on cghtcp option 12 and also included
>     scottklement.com in cfgtcg option 10, I even can ping
scottklement.com
>     in the iseries command line.
>
>     Anyone can help me?
>
>
>     thanks
>
>
>     Nuno Carriço
>
>
>     @ [1]nuno.carrico@xxxxxxxxxxxxxx
>
>
>     [2]www.igsolutions.eu
>
>
>     cid:image002.png@01D0827C.00B74230
>
>
>
>     PORTUGAL (Lisboa)
>
>     + Rua do Mar Vermelho
>
>     N.º 2 - 3.4
>
>     1990-152 LISBOA
>
>
>     ( +351 21 842 33 00
>
>     Dir.+351 21 842 33 04
>
>     Ê +351 21 846 05 70
>
>                          ESPANHA (Madrid)
>
>                          + Centro de Empresas Alcalá Office
>
>                          Avda. de Madrid, 48
>
>                          28802 Alcalá de Henares - MADRID
>
>
>                          ( +34 910 609 965
>
>                          Recepção: +34 911 341 582
>
>                                                            ESPANHA
(Barcelona)
>
>                                                            + Calle
Sepúlveda, 143
>
>                                                            Sobre 
> Ático, 4ª
y 5ª
>                                                            08011 
> BARCELONA
>
>
>                                                            ( +34 937
> 247
477
>
>
>                                                            Ê +34 937
> 247
476
>
>
>     The information contained in this communication is for the exclusive
>     use of the above named addressee, it should be only read by them. If
>     you have received this communication by mistake, please notify the
>     sender a.s.a.p., and delete it totally without reading, coping,
saving,
>     distributing it or using it by anyway. This message and its 
> contain
is
>     confidential, so its usage is expressly forbidden if without
sender's
>     authorization.
>
> References
>
>     1. mailto:nuno.carrico@xxxxxxxxxxxxxx
>     2. http://www.igsolutions.eu/
>
>
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------