• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 843
  • Last Modified:

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.!
0
pdavis29577
Asked:
pdavis29577
1 Solution
 
sppalserCommented:
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

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now