How to get the IP address of DNS Nameserver












0















When I do an nslookup on the net. zone, I get the following output:



nslookup -type=soa net 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
net
origin = a.gtld-servers.net
mail addr = nstld.verisign-grs.com
serial = 1542217316
refresh = 1800
retry = 900
expire = 604800
minimum = 86400

Authoritative answers can be found from:


This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net. However, the IP Address of a.gtld-servers.net is not given. This results in a catch-22, because in order to get the IP address of any subzone in the net. zone, one should query a.gtld-servers.net.



So my question is, how to get out of this catch-22? How can I get the IP address of a.gtld-servers.net without having to do another DNS request?










share|improve this question



























    0















    When I do an nslookup on the net. zone, I get the following output:



    nslookup -type=soa net 8.8.8.8
    Server: 8.8.8.8
    Address: 8.8.8.8#53

    Non-authoritative answer:
    net
    origin = a.gtld-servers.net
    mail addr = nstld.verisign-grs.com
    serial = 1542217316
    refresh = 1800
    retry = 900
    expire = 604800
    minimum = 86400

    Authoritative answers can be found from:


    This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net. However, the IP Address of a.gtld-servers.net is not given. This results in a catch-22, because in order to get the IP address of any subzone in the net. zone, one should query a.gtld-servers.net.



    So my question is, how to get out of this catch-22? How can I get the IP address of a.gtld-servers.net without having to do another DNS request?










    share|improve this question

























      0












      0








      0








      When I do an nslookup on the net. zone, I get the following output:



      nslookup -type=soa net 8.8.8.8
      Server: 8.8.8.8
      Address: 8.8.8.8#53

      Non-authoritative answer:
      net
      origin = a.gtld-servers.net
      mail addr = nstld.verisign-grs.com
      serial = 1542217316
      refresh = 1800
      retry = 900
      expire = 604800
      minimum = 86400

      Authoritative answers can be found from:


      This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net. However, the IP Address of a.gtld-servers.net is not given. This results in a catch-22, because in order to get the IP address of any subzone in the net. zone, one should query a.gtld-servers.net.



      So my question is, how to get out of this catch-22? How can I get the IP address of a.gtld-servers.net without having to do another DNS request?










      share|improve this question














      When I do an nslookup on the net. zone, I get the following output:



      nslookup -type=soa net 8.8.8.8
      Server: 8.8.8.8
      Address: 8.8.8.8#53

      Non-authoritative answer:
      net
      origin = a.gtld-servers.net
      mail addr = nstld.verisign-grs.com
      serial = 1542217316
      refresh = 1800
      retry = 900
      expire = 604800
      minimum = 86400

      Authoritative answers can be found from:


      This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net. However, the IP Address of a.gtld-servers.net is not given. This results in a catch-22, because in order to get the IP address of any subzone in the net. zone, one should query a.gtld-servers.net.



      So my question is, how to get out of this catch-22? How can I get the IP address of a.gtld-servers.net without having to do another DNS request?







      dns






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 17:51









      TomTom

      5719




      5719
























          1 Answer
          1






          active

          oldest

          votes


















          1














          The root server addresses can be found in a file downloaded from iana




          This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net




          You could, and at least initially, probably would, but the root servers don't move around frequently, so once you got the ip address for .net server, for example, you would use the cached value.






          share|improve this answer


























          • Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

            – Tom
            Nov 14 '18 at 18:09








          • 1





            Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

            – Terry Carmen
            Nov 14 '18 at 18:14








          • 1





            FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

            – Terry Carmen
            Nov 14 '18 at 18:25






          • 1





            True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

            – Tom
            Nov 14 '18 at 18:27






          • 1





            All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

            – Patrick Mevzek
            Nov 14 '18 at 18:29











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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%2fstackoverflow.com%2fquestions%2f53306107%2fhow-to-get-the-ip-address-of-dns-nameserver%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









          1














          The root server addresses can be found in a file downloaded from iana




          This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net




          You could, and at least initially, probably would, but the root servers don't move around frequently, so once you got the ip address for .net server, for example, you would use the cached value.






          share|improve this answer


























          • Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

            – Tom
            Nov 14 '18 at 18:09








          • 1





            Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

            – Terry Carmen
            Nov 14 '18 at 18:14








          • 1





            FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

            – Terry Carmen
            Nov 14 '18 at 18:25






          • 1





            True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

            – Tom
            Nov 14 '18 at 18:27






          • 1





            All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

            – Patrick Mevzek
            Nov 14 '18 at 18:29
















          1














          The root server addresses can be found in a file downloaded from iana




          This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net




          You could, and at least initially, probably would, but the root servers don't move around frequently, so once you got the ip address for .net server, for example, you would use the cached value.






          share|improve this answer


























          • Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

            – Tom
            Nov 14 '18 at 18:09








          • 1





            Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

            – Terry Carmen
            Nov 14 '18 at 18:14








          • 1





            FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

            – Terry Carmen
            Nov 14 '18 at 18:25






          • 1





            True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

            – Tom
            Nov 14 '18 at 18:27






          • 1





            All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

            – Patrick Mevzek
            Nov 14 '18 at 18:29














          1












          1








          1







          The root server addresses can be found in a file downloaded from iana




          This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net




          You could, and at least initially, probably would, but the root servers don't move around frequently, so once you got the ip address for .net server, for example, you would use the cached value.






          share|improve this answer















          The root server addresses can be found in a file downloaded from iana




          This means that in order to get DNS records for the net. zone, one should query the DNS Server a.gtld-servers.net




          You could, and at least initially, probably would, but the root servers don't move around frequently, so once you got the ip address for .net server, for example, you would use the cached value.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 14 '18 at 18:04

























          answered Nov 14 '18 at 17:59









          Terry CarmenTerry Carmen

          2,5391818




          2,5391818













          • Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

            – Tom
            Nov 14 '18 at 18:09








          • 1





            Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

            – Terry Carmen
            Nov 14 '18 at 18:14








          • 1





            FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

            – Terry Carmen
            Nov 14 '18 at 18:25






          • 1





            True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

            – Tom
            Nov 14 '18 at 18:27






          • 1





            All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

            – Patrick Mevzek
            Nov 14 '18 at 18:29



















          • Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

            – Tom
            Nov 14 '18 at 18:09








          • 1





            Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

            – Terry Carmen
            Nov 14 '18 at 18:14








          • 1





            FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

            – Terry Carmen
            Nov 14 '18 at 18:25






          • 1





            True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

            – Tom
            Nov 14 '18 at 18:27






          • 1





            All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

            – Patrick Mevzek
            Nov 14 '18 at 18:29

















          Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

          – Tom
          Nov 14 '18 at 18:09







          Thank you for your answer. However, my computer doesn't have the file from iana and Google's public DNS (8.8.8.8) doesn't have it. So how can my computer get the ip address for .net server the first time? And more specifically: can I execute a command to get the actual IP Address?

          – Tom
          Nov 14 '18 at 18:09






          1




          1





          Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

          – Terry Carmen
          Nov 14 '18 at 18:14







          Google doesn't have the file for you to download, but they do know the address and use it when you do a lookup.

          – Terry Carmen
          Nov 14 '18 at 18:14






          1




          1





          FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

          – Terry Carmen
          Nov 14 '18 at 18:25





          FWIW, unless you have a special need of some sort, these aren't things you would normally need to deal with. You would use your ISP's DNS server or another public DNS server and they would handle your request.

          – Terry Carmen
          Nov 14 '18 at 18:25




          1




          1





          True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

          – Tom
          Nov 14 '18 at 18:27





          True, but I just wanted to know how the black box works. Plus it might be interested for my AWS exam of which Route 53 is a topic.

          – Tom
          Nov 14 '18 at 18:27




          1




          1





          All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

          – Patrick Mevzek
          Nov 14 '18 at 18:29





          All recursive nameservers are shipped with a given list of root servers (and their IPv4+IPv6 addresses) and at boot they will "prime" the root by querying any of known nameserver to grab the list of current root nameservers, in order to accomodate for changes. There are rare but do exist. Like in average at least one IPv4 or IPv6 address change per year.

          – Patrick Mevzek
          Nov 14 '18 at 18:29


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f53306107%2fhow-to-get-the-ip-address-of-dns-nameserver%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







          這個網誌中的熱門文章

          Academy of Television Arts & Sciences

          L'Équipe

          1995 France bombings