Macintosh: To Edit the DNS setting

Posted on 2011-10-05
Last Modified: 2012-05-12
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?

Question by:tjie
    LVL 21

    Accepted Solution

    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

    LVL 21

    Expert Comment

    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


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Macbookpro 8 70
    Bootcamp WinX 100% Disk 3 51
    Back to my mac / teamviewer 1 43
    Putting data back onto a mac after a reinstall 9 38
    Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
    As a Mac user and former AppleCare AHA & Senior Advisor, I'm constantly bombarded with questions about Macs and if they need Antivirus. This short article is my response to those questions.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now