HOW DO YOU EDIT THE HOST FILE AND INPUT THE CORRECT ISP AND DNS SETTINGS

Here is the emergency I have.  
I have a SCOUNIX box that does multiple things including the credit card processing through RITA.  Evidently when they run a cc, it is not able to get out to be processed.  This is also being used as a small email server as well.  We have no problems with email on this box just getting out to process the cc.  In the system.log file we get a "UNKNOWNHOSTEXCEPTION" error message and what I was told we need to edit the HOST file which is located under /etc directory.  How do you edit this file?  I try using vi host but I just get garbae.  If I use cat host I can see whats in the file but can not edit the file.  What I am trying to edit is the ISP and DNS addresses.  I was told we need to put the ISP first and than have our DNS settings in there next.  

I do appreciate it.!
pdavis29577Asked:
Who is Participating?
 
sppalserConnect With a Mentor Commented:
You do not want edit "host" which is an executable file, thus the "garbaged output".  You want to edit the file named "hosts".  /etc/hosts is just a text file that holds ip addresses and their respective aliases.  You may also have to take a look at the file /etc/resolv.conf, if it is being used, to make sure your ISP's primary & seconday name server addresses are correct.

Good Luck
0
 
TintinCommented:
I'm assuming you meant /etc/hosts when you catted the file.

If your DISPLAY is mucked up when you try to vi the file, your terminal settings are probably wrong.

What does

echo $TERM

display?

Do you know what terminal type you are using?

Common ones to try are:

TERM=xterm ; export TERM

or

TERM=vt220 ; export TERM
0
 
yuzhCommented:
For SCO, you better to set the TERM to ansi

TERM=ansi
export TERM
then use the vi editor to edit the file.
0
 
burrcmCommented:
sppalser is on the money. It is not the term settings, the file to edit is hosts not host.

Chris B
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.