Resolving AS400 name - pinging and hosts file and DNS

Resolving AS400 name - pinging and hosts file and DNS

In order to make a connection from a PC to the AS400, you must be able to resolve the name of the AS400 to an IP address.  For example, if my AS400 name is AS400.Cook.K12.nc.us, I should be able to go to a DOS prompt on a PC and do the following:

 

PING  AS400.COOK.K12.NC.US

 

If the ping is successful, I will see 4 replies. If the ping is not successful, you will see a message such as "Destination Unreachable" or "Request Timed Out".

 

If you are unable to obtain a successful reply,  check the following items:

 

Try to ping the IP address of the AS400.  For example:

Ping 10.xxx.xxx.xxx  (put your AS400 IP address in place of the 10.xxx.xxx.xxx)


If you are unable to ping the address of the AS400, you may have either a physical connection problem or an ip address problem.  Contact your PC technician

Check to make sure that an entry exists in your hosts file for the AS400.  For Windows/95 and Windows/98, this file is C:\WINDOWS\HOSTS  (no extension).  Edit this file and add and entry for your AS400.  If, for example, my AS400 name is AS400.COOK.K12.NC.US and my AS400 IP address is 10.150.1.5, then the entry should look like this:

10.150.1.15     AS400.COOK.K12.NC.US


IF you are using Windows 10, your hosts file is located in the C:\Windows\SYSTEM32\DRIVERS\ETC directory.


It's helpful to make a shortcut on the desktop to quickly edit the hosts file:


Right click on the desktop, click shortcut, new, use this as the path:


C:\Windows\System32\notepad.exe c:\windows\system32\drivers\etc\hosts


For the name, call it hosts.


To edit, right mouse click and "run as administrator"


Check to make sure that Enable DNS is selected in your network properties (Start, Settings, Control panel.  CLick on the Network Icon.  Find TCP/IP in the list - highlight and click on Properties.   Select the DNS tab.  Make sure that Enable DNS is selected

Also make sure that there is no blank line at the beginning of the hosts file.  Make sure that there is a carriage return after the last entry in the file.

If you are still having problems, try deleting the hosts file and re-creating.

    • Related Articles

    • How to check the system connection name in iSeries Access

      In the iSeries Access session, click on Communication, configure, the system name appears there: As above, it could be a DNS name. As above, it could be an IP address. As above, it could be IP address at SAS.  
    • AS400 iSeries for Technicians

      Helpful information for connections, pinging, hosts file, etc. Click Attachments to view document.
    • Creating an iSeries connection in Navigator

      Creating an iSeries connection in Navigator, and downloading the SSL certificate Click Attachments to view document.  
    • Configuring iSeries Navigator to use SSL

      Configuring iSeries Navigator to use SSL:       Click on Secure Sockets Click on  Download.     Password is ca400 (it is case sensitive).     C lick ok. Click on “Use Secure Sockets Layer and click ok.     You will get a message – click ok.    Close ...
    • Changing qsysopr to the user name in iSeries access printer session

      Messages for individual’s iSeries Access printers should go to their message queue, not QSYSOPR.   Here’s how to fix:   In their printer session, click communication, configure   Click setup Change qsysopr to their name, ex.  Wendy, Carolyn, etc. ...