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?
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.
You could also use iptables for this but would be a bit complicated for such a simple task.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks