Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Networking

Linux Networking This forum is for Linux Networking Only. Routing, servers, etc.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-2008, 03:32 PM
Member
 
Join Date: Dec 2006
Posts: 51
Grub is on a distinguished road
Default Changing IP address

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?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-03-2008, 01:02 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 533
Jordan is on a distinguished road
Default

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.
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 09:14 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 384
Tor is on a distinguished road
Default

You could also use iptables for this but would be a bit complicated for such a simple task.
Reply With Quote
Reply

Tags
hosts, ip address

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the host name on a linux box Onur Tutorials, Guides and Tips 1 06-28-2008 12:19 PM
Get MAC address Tor Linux Web Server 2 03-21-2008 02:32 AM


All times are GMT. The time now is 02:06 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.