Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need ubuntu to use a certain domain name to point to a localhost address temporarily. How could I confgure for that ?

share|improve this question

1 Answer 1

What are we talking about here? A single host, a network, a dns server serving your domain?

I'm gonna go with single host:

echo '127.0.0.1 somehost.example.org' | sudo tee -a /etc/hosts

If you are in fact in a network then please add more information to your question.

share|improve this answer
    
thanks I tried modifying the /etc/hosts file but it didn't had any effects even after restart.. –  user01 Feb 4 at 19:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.