We help IT Professionals succeed at work.

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

863 Views
Last Modified: 2013-12-19
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.!
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2007

Commented:
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
CERTIFIED EXPERT

Commented:
For SCO, you better to set the TERM to ansi

TERM=ansi
export TERM
then use the vi editor to edit the file.
Chris BRetired

Commented:
sppalser is on the money. It is not the term settings, the file to edit is hosts not host.

Chris B

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.