[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

Macintosh: To Edit the DNS setting

Hi,
1) I am used to with the Microsoft Window and (a little bit of) Linux Operating system
2) I am not familiar with the Macintosh OS
3) I saw some MacBoox (The OS is Mac OS X 10.6.8) at a company (production environment)

4) If I want to edit the DNS setting at Linux machine; i will issue the following commands: sudo gedit /etc/resolv.conf

5) My question: What is the command to edit the DNS setting at the above MacBook?

thanks,
tjie
0
tjie
Asked:
tjie
  • 2
1 Solution
 
PapertripCommented:
Same file, just pick an editor that you feel comfortable with, here are a few.
vi /etc/resolv.conf
nano /etc/resolv.conf
pico /etc/resolv.conf

Open in new window

0
 
PapertripCommented:
The following command will open the file in TextEdit GUI.  I suggest getting used to using a command line editor.
open -e /etc/resolv.conf

Open in new window

0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now