Change Networksettings on MacOS X on the commandline
# networksetup -listallnetworkservices Read the current configuration for a service (name as listed in the output above):
# networksetup -getinfo Ethernet Change e.g. the DNS server:
# networksetup -setdnsservers "Ethernet" 8.8.8.8