Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Changing IP address


  • Please log in to reply
2 replies to this topic

#1 Grub


    CC Resident

  • Just Joined
  • PipPipPipPip
  • 55 posts

Posted 30 March 2008 - 06:32 AM

In Windows I could set a domain to be a different IP address by adding a line to a file called hosts (in system32). Is it possible to achieve the same thing in Linux?
  • 0

#2 Guest_Jordan_*

  • Guest

Posted 03 April 2008 - 04:02 AM

Yes, there is a 'hosts' file in Linux as well. It generally resides in /etc/ named 'hosts' = /etc/hosts

Edit it the same way as you would in Windows.
  • 0

#3 Tor


    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 448 posts

Posted 08 April 2008 - 12:14 PM

You could also use iptables for this but would be a bit complicated for such a simple task.
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download