Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
edit hosts to point ip to www addy
#1

to edit your hosts file to point an ip (eg: 100.0.0.1) to a www address (eg: www.linux-noob.com) do this

 

su -

 

vi /etc/hosts

 

press INSERT on your keyboard

 

change it from

 

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

 

 

to

 

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

100.0.0.1 www.linux-noob.com linux-noob

 

press ESCape on your keyboard

 

write the changes with

 

:wq

 

thats it

 

now when you type [/url][url=https://www.linux-noob.com]https://www.linux-noob.com (or whatever it was) you won't get the ip address or host not found, you'll get the www address :-)

\

cool

 

cheers

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)