Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Linux and order it looks up IP addresses

  • 17-02-2014 09:43PM
    #1
    Registered Users, Registered Users 2 Posts: 200 ✭✭


    Hi,

    just looking to clarify something here in relation to Linux and how the system looks up an IP address for a name.

    I am looking to move an old server on to a new one. There are a lot of web services setup that have the old server name in scripts and I would like the option of testing one to ensure it works correctly, or more to the point, if it doesn't work, I want to revert back to the old server while I figure out the problem. To do this, I want to change the IP address temporarily (to an available one) on the new server.

    What is the order Linux uses to convert names into addresses?
    Am I correct in saying that, for a test client Linux machine, I can change the /etc/hosts file to point to the (temporary) IP address of the new server, edit the order for the hosts entry to files, dns (left to right) in the nsswitch.conf file, I can then test functionality of a web service while other devices on the network will still happily be directed to the old server?


Comments

Advertisement