Closed Thread
Results 1 to 3 of 3

Thread: Changing IP address

  1. #1
    Grub is offline Learning Programmer
    Join Date
    Dec 2006
    Posts
    57
    Rep Power
    0

    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?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    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.

  4. #3
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    You could also use iptables for this but would be a bit complicated for such a simple task.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 04-30-2011, 04:12 PM
  2. General interrupt changing
    By h4x in forum Assembly
    Replies: 17
    Last Post: 09-29-2009, 04:56 PM
  3. Changing the name of a DLL
    By bugale in forum C# Programming
    Replies: 3
    Last Post: 02-21-2009, 11:59 AM
  4. WMP changing visualization
    By nojbox87 in forum Visual Basic Programming
    Replies: 7
    Last Post: 07-12-2008, 09:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts