View Single Post
Join Date: Nov 2008
Posts: 14
Reputation: EdTheUniqueGeek is an unknown quantity at this point 
Solved Threads: 0
EdTheUniqueGeek EdTheUniqueGeek is offline Offline
Newbie Poster

Change DNS from DHCP to static in Ubuntu

 
0
  #1
Nov 18th, 2008
I'm still learning Linux, and have been for the past 7 years, but am still rusty on scripting.
Can someone tell me if it is possible to create a script that will change the DNS IP address of your interface from dynamic (from DHCP) to a specific static IP address? If so, can someone point me to how this can be done?
I know you can change these settings from command line using VI on the /etc/resolve.conf file but I wasn't sure if there was a way to automatically change that with a script that I can simply launch from the GUI desktop in Ubuntu 8.10.
Thanks in advance.
-----------------------------------
http://www.edwardcrosby.com
http://www.theuniquegeek.com
Reply With Quote