bvstone

Error Retrieving IP Address by Name

Posted:

Error Retrieving IP Address by Name

If you see this error when using any of our software (or other software that requires internet connectivity) it normally means one thing... You haven't set up your IBM i networking properly.  More specifically, you haven't specified DNS servers that are used to resolve a host or domain name to an IP address in the outside work (ie, the internet, interweb, etc...)

When making a request to a host name, such as google.com, your system needs to look up the IP address of that host name to know where to connect to.  It would be similar if you told your friend to call John Smith.  Without a phone book, he wouldn't know what number to call to contact John.  So you can think of DNS servers as a phone book for the internet.

In order to let your IBM i find the IP addresses of host numbers you should specify the DNS Server(s) in the Configure TCP/IP (CFGTCP) command, option 12.  You can also get there using the Change TCP/IP Domain (CHGTCPDMN) command.

Once there you will see an place to enter one or more DNS servers:

                        Change TCP/IP Domain (CHGTCPDMN)                        
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Domain name server:                                                            
   Internet address . . . . . . .   '8.8.8.8'                                   
                                                                                
   Internet address . . . . . . .   '8.8.4.4'                                   
                                                                                
   Internet address . . . . . . .   *SAME                                       
                                                                                
                                                                                

 In this instance I have specified to use Google's public DNS servers, but in your instance you will want to contact your Network Administrator to find out what values to use here.

Now, you may be tempted to simply use PING on your PC to resolve a host or domain name to an IP address and simply use that on GETURI, MAILTOOL, or another command asking for an internet address or host name.  DO NOT DO THIS.  The same goes for adding your own entries in a Host Table Entry.  This should almost NEVER be done, especially in production.  The proper use of DNS servers is important.  See this article for more information on that.

As always, feel free to contact us with any questions.


Last edited 02/25/2020 at 07:46:50



Latest Posts:

More V7R4 IFS File CCSID Issues and The Fix More V7R4 IFS File CCSID Issues and The Fix
Posted by March 4, 2020
IBM Power Systems >> (QGPL) IBM i
Error Retrieving IP Address by Name Error Retrieving IP Address by Name
Posted by February 25, 2020
BVSTools >> BVSTools Software Discussion
Logging jobs that hit an outq Logging jobs that hit an outq
Posted by February 13, 2020
Programming >> CL Programming
GreenTools for Google Apps (G4G) v12.60 Released with Shared Drive Features and More... GreenTools for Google Apps (G4G) v12.60 Released with Shared Drive Features and More...
Posted by February 4, 2020
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
Allowing Requests over Port 80 For SSL Validation (ie, Namecheap, etc) Allowing Requests over Port 80 For SSL Validation (ie, Namecheap, etc)
Posted by January 31, 2020
Programming >> Web Programming
GreenTools for Slack (G4SLK) v3.00 Released GreenTools for Slack (G4SLK) v3.00 Released
Posted by January 17, 2020
BVSTools >> BVSTools Announcements >> GreenTools for Slack (G4SLK) Specific Announcements
Calling a QSH Command from RPG Calling a QSH Command from RPG
Posted by December 26, 2019
Programming >> RPG Programming
SPLTOOL Print Range (PRTRNG) Function Updated to Handle Spooled Files up to 999,999,999 Pages SPLTOOL Print Range (PRTRNG) Function Updated to Handle Spooled Files up to 999,999,999 Pages
Posted by December 14, 2019
BVSTools >> BVSTools Announcements >> Spooled File Tools (SPLTOOL) Specific Announcements
GreenTools for Microsoft Apps (G4MS) Updated to v6.00 - Now Uses Microsoft Graph APIs GreenTools for Microsoft Apps (G4MS) Updated to v6.00 - Now Uses Microsoft Graph APIs
Posted by November 24, 2019
BVSTools >> BVSTools Announcements >> GreenTools for Microsoft Apps (G4MS) Specific Announcements
V7R4 Changes CCSID of Compressed File Using PASE JAR Command - Here's The Fix V7R4 Changes CCSID of Compressed File Using PASE JAR Command - Here's The Fix
Posted by November 21, 2019
IBM Power Systems >> (QGPL) IBM i
Using GETURI to Make OAuth 2.0 Requests - Custom Headers for Access Tokens Using GETURI to Make OAuth 2.0 Requests - Custom Headers for Access Tokens
Posted by November 11, 2019
BVSTools >> BVSTools Software Discussion >> Get URI (GETURI) Specific Discussion
GreenTools for Microsoft Apps (G4MS) v5.00 Released with Updated OneDrive Support and 3rd Party Functionality GreenTools for Microsoft Apps (G4MS) v5.00 Released with Updated OneDrive Support and 3rd Party Functionality
Posted by October 20, 2019
BVSTools >> BVSTools Announcements >> GreenTools for Microsoft Apps (G4MS) Specific Announcements
BVSTools is Now Running V7R4M0 BVSTools is Now Running V7R4M0
Posted by September 28, 2019
BVSTools >> BVSTools Announcements
GreenTools for G Suite (G4G) Now Includes Send Mail Functionality (G4GSMAIL Addon) GreenTools for G Suite (G4G) Now Includes Send Mail Functionality (G4GSMAIL Addon)
Posted by August 27, 2019
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
GreenTools For G Suite (G4G) v12.00 Released With Base OAuth 2.0 Functionality GreenTools For G Suite (G4G) v12.00 Released With Base OAuth 2.0 Functionality
Posted by July 28, 2019
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements

Reply




Copyright 1983-2020 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).