The path of the file that contains the IP address in mac












0














where can I find the file that contains the IP address of the DNS server that i use in my mac?



I tried the folder /Network but there is nothing in it.










share|improve this question













migrated from serverfault.com Dec 6 '18 at 15:08


This question came from our site for system and network administrators.















  • /etc/resolv.conf or /var/run/resolv.conf.
    – ceejayoz
    Dec 6 '18 at 14:37






  • 1




    Question would be better asked on apple.stackexchange.com
    – Mike Marseglia
    Dec 6 '18 at 14:42










  • ceejayoz thanks so much!
    – Main Void
    Dec 6 '18 at 14:57
















0














where can I find the file that contains the IP address of the DNS server that i use in my mac?



I tried the folder /Network but there is nothing in it.










share|improve this question













migrated from serverfault.com Dec 6 '18 at 15:08


This question came from our site for system and network administrators.















  • /etc/resolv.conf or /var/run/resolv.conf.
    – ceejayoz
    Dec 6 '18 at 14:37






  • 1




    Question would be better asked on apple.stackexchange.com
    – Mike Marseglia
    Dec 6 '18 at 14:42










  • ceejayoz thanks so much!
    – Main Void
    Dec 6 '18 at 14:57














0












0








0







where can I find the file that contains the IP address of the DNS server that i use in my mac?



I tried the folder /Network but there is nothing in it.










share|improve this question













where can I find the file that contains the IP address of the DNS server that i use in my mac?



I tried the folder /Network but there is nothing in it.







networking






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 6 '18 at 14:31







Main Void











migrated from serverfault.com Dec 6 '18 at 15:08


This question came from our site for system and network administrators.






migrated from serverfault.com Dec 6 '18 at 15:08


This question came from our site for system and network administrators.














  • /etc/resolv.conf or /var/run/resolv.conf.
    – ceejayoz
    Dec 6 '18 at 14:37






  • 1




    Question would be better asked on apple.stackexchange.com
    – Mike Marseglia
    Dec 6 '18 at 14:42










  • ceejayoz thanks so much!
    – Main Void
    Dec 6 '18 at 14:57


















  • /etc/resolv.conf or /var/run/resolv.conf.
    – ceejayoz
    Dec 6 '18 at 14:37






  • 1




    Question would be better asked on apple.stackexchange.com
    – Mike Marseglia
    Dec 6 '18 at 14:42










  • ceejayoz thanks so much!
    – Main Void
    Dec 6 '18 at 14:57
















/etc/resolv.conf or /var/run/resolv.conf.
– ceejayoz
Dec 6 '18 at 14:37




/etc/resolv.conf or /var/run/resolv.conf.
– ceejayoz
Dec 6 '18 at 14:37




1




1




Question would be better asked on apple.stackexchange.com
– Mike Marseglia
Dec 6 '18 at 14:42




Question would be better asked on apple.stackexchange.com
– Mike Marseglia
Dec 6 '18 at 14:42












ceejayoz thanks so much!
– Main Void
Dec 6 '18 at 14:57




ceejayoz thanks so much!
– Main Void
Dec 6 '18 at 14:57










1 Answer
1






active

oldest

votes


















3














Use scutil --dns to see how DNS is configured in macOS. Also look into networksetup -getdnsservers and networksetup -setdnsservers (and networksetup -listallnetworkservices).



Modern macOS has a sophisticated "scoped routing" subsystem for DNS queries, controlled by the "System Configuration" system (configd, scutil, scselect), as well as mDNSResponder. This is to help deal with modern networking scenarios like when you have a VPN connection to your work, and DNS queries pertaining to your work's domain names and IP addresses need to go down the VPN tunnel, but all other DNS queries should not go via the VPN tunnel.



To support old Unix tools (and old Unix nerds) that expect to find a DNS server IP address listed in /etc/resolv.conf, macOS still has that file, but it is autogenerated by the more modern subsystems I mentioned above. Editing that file won't change how your system's main DNS resolver subsystem is configured. Editing that file will probably only change what DNS server is used by old Unix tools for DNS debugging that contain their own DNS resolver code instead of relying on system calls (so things like nslookup(1) and dig(1) and maybe host(1)).






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1381380%2fthe-path-of-the-file-that-contains-the-ip-address-in-mac%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown
























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Use scutil --dns to see how DNS is configured in macOS. Also look into networksetup -getdnsservers and networksetup -setdnsservers (and networksetup -listallnetworkservices).



    Modern macOS has a sophisticated "scoped routing" subsystem for DNS queries, controlled by the "System Configuration" system (configd, scutil, scselect), as well as mDNSResponder. This is to help deal with modern networking scenarios like when you have a VPN connection to your work, and DNS queries pertaining to your work's domain names and IP addresses need to go down the VPN tunnel, but all other DNS queries should not go via the VPN tunnel.



    To support old Unix tools (and old Unix nerds) that expect to find a DNS server IP address listed in /etc/resolv.conf, macOS still has that file, but it is autogenerated by the more modern subsystems I mentioned above. Editing that file won't change how your system's main DNS resolver subsystem is configured. Editing that file will probably only change what DNS server is used by old Unix tools for DNS debugging that contain their own DNS resolver code instead of relying on system calls (so things like nslookup(1) and dig(1) and maybe host(1)).






    share|improve this answer




























      3














      Use scutil --dns to see how DNS is configured in macOS. Also look into networksetup -getdnsservers and networksetup -setdnsservers (and networksetup -listallnetworkservices).



      Modern macOS has a sophisticated "scoped routing" subsystem for DNS queries, controlled by the "System Configuration" system (configd, scutil, scselect), as well as mDNSResponder. This is to help deal with modern networking scenarios like when you have a VPN connection to your work, and DNS queries pertaining to your work's domain names and IP addresses need to go down the VPN tunnel, but all other DNS queries should not go via the VPN tunnel.



      To support old Unix tools (and old Unix nerds) that expect to find a DNS server IP address listed in /etc/resolv.conf, macOS still has that file, but it is autogenerated by the more modern subsystems I mentioned above. Editing that file won't change how your system's main DNS resolver subsystem is configured. Editing that file will probably only change what DNS server is used by old Unix tools for DNS debugging that contain their own DNS resolver code instead of relying on system calls (so things like nslookup(1) and dig(1) and maybe host(1)).






      share|improve this answer


























        3












        3








        3






        Use scutil --dns to see how DNS is configured in macOS. Also look into networksetup -getdnsservers and networksetup -setdnsservers (and networksetup -listallnetworkservices).



        Modern macOS has a sophisticated "scoped routing" subsystem for DNS queries, controlled by the "System Configuration" system (configd, scutil, scselect), as well as mDNSResponder. This is to help deal with modern networking scenarios like when you have a VPN connection to your work, and DNS queries pertaining to your work's domain names and IP addresses need to go down the VPN tunnel, but all other DNS queries should not go via the VPN tunnel.



        To support old Unix tools (and old Unix nerds) that expect to find a DNS server IP address listed in /etc/resolv.conf, macOS still has that file, but it is autogenerated by the more modern subsystems I mentioned above. Editing that file won't change how your system's main DNS resolver subsystem is configured. Editing that file will probably only change what DNS server is used by old Unix tools for DNS debugging that contain their own DNS resolver code instead of relying on system calls (so things like nslookup(1) and dig(1) and maybe host(1)).






        share|improve this answer














        Use scutil --dns to see how DNS is configured in macOS. Also look into networksetup -getdnsservers and networksetup -setdnsservers (and networksetup -listallnetworkservices).



        Modern macOS has a sophisticated "scoped routing" subsystem for DNS queries, controlled by the "System Configuration" system (configd, scutil, scselect), as well as mDNSResponder. This is to help deal with modern networking scenarios like when you have a VPN connection to your work, and DNS queries pertaining to your work's domain names and IP addresses need to go down the VPN tunnel, but all other DNS queries should not go via the VPN tunnel.



        To support old Unix tools (and old Unix nerds) that expect to find a DNS server IP address listed in /etc/resolv.conf, macOS still has that file, but it is autogenerated by the more modern subsystems I mentioned above. Editing that file won't change how your system's main DNS resolver subsystem is configured. Editing that file will probably only change what DNS server is used by old Unix tools for DNS debugging that contain their own DNS resolver code instead of relying on system calls (so things like nslookup(1) and dig(1) and maybe host(1)).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 7 '18 at 2:11

























        answered Dec 6 '18 at 22:34









        Spiff

        76.5k10116161




        76.5k10116161






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1381380%2fthe-path-of-the-file-that-contains-the-ip-address-in-mac%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Сан-Квентин

            Алькесар

            Josef Freinademetz