Hello all,
I have setup two network locations on my Mac - one for the Office, and one for Home.
Both use different DNS settings, and other minor differences...
To change locations in Mac OS X Lion, you simply click on the Apple menu, go down to Location, and select the location you want...
I have a requirement for my location changing to be automated in some way, and I discovered this little tidbit on the web, and thought I'd share it with all!
From the terminal (command-line), or in a bash script, you can use the following command to set the network location:
scselect "Location"
Where "Location" is the name of the network location.
You can wrap this in any logic you need, or even just assign a shortcut key to the bash script to make changing network locations easy!
Have fun!