Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

enabling Hosts file on OS/2 Warp 4

Posted on 1998-09-17
2
Medium Priority
?
629 Views
Last Modified: 2013-12-23
How do you enable hosts file on OS/2 Warp 4.  What directory you put it in.  is c:\tcpip\etc?  How can you save the file in ASCII.  I know that it prompt you to save the file either in text, OS/2 command prompt, or DOS command prompt.  Any suggestions??? help...
0
Comment
Question by:JNGIN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
jpmcdon earned 80 total points
ID: 1558386
The hosts file is always "enabled" in OS/2, unlike in Windows where you need to rename the "hosts.sam" file to "hosts" in order to "enable" it.

However, the hosts file is empty by default.

The way to add a host to your hosts list:
1) Open an OS/2 command prompt
2) Type TCPCFG and press Enter
3) In a few seconds the TCP/IP Configuration window will open
4) Click on the HOSTNAMES tab on the right of the window
5) Go to "page 2" of the HOSTNAMES tab by clicking the right-arrow in the lower right corner of the window
6) The list of hostnames that are defined on your system will be displayed in a box, with a series of buttons below it.  By default, the box only contains <NO ENTRIES>
7) Click the ADD button
8) Fill in the IP Address field with the IP number (i.e. 9.91.4.10), the Hostname field with the full host hame (i.e. www.ibm.com).  You can optionally add a short "alias" for the hostname (like "IBM"), as well as a comment that will be displayed in the listing.  These two parameters are not required, however.
9) Click the ADD button.  You should see your new hostname in the list.
10) Exit TCP/IP configuration by double-clicking the icon in the upper-left corner of the window (close the program).  You will be asked if you want to SAVE or DISCARD your changes - click SAVE.11) The program may tell you it needs to make changes to the CONFIG.SYS file - click YES if asked
12) The program may also ask you if you want to configure SENDMAIL.  Click NO when asked.

You will likely not need to reboot the system for this change - test it by using your still-open command window to "ping" your new hostname.
0
 

Author Comment

by:JNGIN
ID: 1558387
Good answer.
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question