Looking at This Post on Multiple Networks, I was wondering how to include the ability to change the dns nameservers. At home I would use one set of information but at school I need to use a different set.
As Milliways points out, on normal DHCP equipped networks there's no need to do this.
However, if you still want to, your nameservers are listed in
/etc/resolv.conf. Beware that when you do connect as a DHCP client, this will get overwritten, so if you want to have several versions, name them something else and copy them in when you want to use them. The effect is immediate, there is no need to reboot or restart anything.