What Linux command line tool can I use to determine the version and name of a remote DNS?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Bind offers you the ability to change the version, name, and hostname as follow:



options 
server-id none;
hostname none;
version "Domain Name Server";
;


What I'm wondering is: how can I check that information from my Linux command line?







share|improve this question
























    up vote
    2
    down vote

    favorite












    Bind offers you the ability to change the version, name, and hostname as follow:



    options 
    server-id none;
    hostname none;
    version "Domain Name Server";
    ;


    What I'm wondering is: how can I check that information from my Linux command line?







    share|improve this question






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Bind offers you the ability to change the version, name, and hostname as follow:



      options 
      server-id none;
      hostname none;
      version "Domain Name Server";
      ;


      What I'm wondering is: how can I check that information from my Linux command line?







      share|improve this question












      Bind offers you the ability to change the version, name, and hostname as follow:



      options 
      server-id none;
      hostname none;
      version "Domain Name Server";
      ;


      What I'm wondering is: how can I check that information from my Linux command line?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 20 at 1:14









      Alexis Wilke

      300211




      300211




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          I think you're looking for dig. Specify id.server, hostname.bind, version.bind as the domain name, TXT as rrtype, and CHAOS (or CH) as the class. For example, to query Level3's DNS:



          $ dig @4.2.2.2 hostname.bind chaos txt

          ; <<>> DiG 9.13.2 <<>> @4.2.2.2 hostname.bind chaos txt
          ; (1 server found)
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49354
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

          ;; OPT PSEUDOSECTION:
          ; EDNS: version: 0, flags:; udp: 8192
          ;; QUESTION SECTION:
          ;hostname.bind. CH TXT

          ;; ANSWER SECTION:
          hostname.bind. 1 CH TXT "pubntp2.frf1.Level3.net"

          ;; Query time: 194 msec
          ;; SERVER: 4.2.2.2#53(4.2.2.2)
          ;; WHEN: Mon Aug 20 09:27:21 EEST 2018
          ;; MSG SIZE rcvd: 78





          share|improve this answer






















          • Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
            – Alexis Wilke
            Aug 20 at 2:23






          • 2




            @AlexisWilke: It's id.server, a later addition.
            – grawity
            Aug 20 at 6:27










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1350517%2fwhat-linux-command-line-tool-can-i-use-to-determine-the-version-and-name-of-a-re%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote



          accepted










          I think you're looking for dig. Specify id.server, hostname.bind, version.bind as the domain name, TXT as rrtype, and CHAOS (or CH) as the class. For example, to query Level3's DNS:



          $ dig @4.2.2.2 hostname.bind chaos txt

          ; <<>> DiG 9.13.2 <<>> @4.2.2.2 hostname.bind chaos txt
          ; (1 server found)
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49354
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

          ;; OPT PSEUDOSECTION:
          ; EDNS: version: 0, flags:; udp: 8192
          ;; QUESTION SECTION:
          ;hostname.bind. CH TXT

          ;; ANSWER SECTION:
          hostname.bind. 1 CH TXT "pubntp2.frf1.Level3.net"

          ;; Query time: 194 msec
          ;; SERVER: 4.2.2.2#53(4.2.2.2)
          ;; WHEN: Mon Aug 20 09:27:21 EEST 2018
          ;; MSG SIZE rcvd: 78





          share|improve this answer






















          • Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
            – Alexis Wilke
            Aug 20 at 2:23






          • 2




            @AlexisWilke: It's id.server, a later addition.
            – grawity
            Aug 20 at 6:27














          up vote
          4
          down vote



          accepted










          I think you're looking for dig. Specify id.server, hostname.bind, version.bind as the domain name, TXT as rrtype, and CHAOS (or CH) as the class. For example, to query Level3's DNS:



          $ dig @4.2.2.2 hostname.bind chaos txt

          ; <<>> DiG 9.13.2 <<>> @4.2.2.2 hostname.bind chaos txt
          ; (1 server found)
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49354
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

          ;; OPT PSEUDOSECTION:
          ; EDNS: version: 0, flags:; udp: 8192
          ;; QUESTION SECTION:
          ;hostname.bind. CH TXT

          ;; ANSWER SECTION:
          hostname.bind. 1 CH TXT "pubntp2.frf1.Level3.net"

          ;; Query time: 194 msec
          ;; SERVER: 4.2.2.2#53(4.2.2.2)
          ;; WHEN: Mon Aug 20 09:27:21 EEST 2018
          ;; MSG SIZE rcvd: 78





          share|improve this answer






















          • Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
            – Alexis Wilke
            Aug 20 at 2:23






          • 2




            @AlexisWilke: It's id.server, a later addition.
            – grawity
            Aug 20 at 6:27












          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          I think you're looking for dig. Specify id.server, hostname.bind, version.bind as the domain name, TXT as rrtype, and CHAOS (or CH) as the class. For example, to query Level3's DNS:



          $ dig @4.2.2.2 hostname.bind chaos txt

          ; <<>> DiG 9.13.2 <<>> @4.2.2.2 hostname.bind chaos txt
          ; (1 server found)
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49354
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

          ;; OPT PSEUDOSECTION:
          ; EDNS: version: 0, flags:; udp: 8192
          ;; QUESTION SECTION:
          ;hostname.bind. CH TXT

          ;; ANSWER SECTION:
          hostname.bind. 1 CH TXT "pubntp2.frf1.Level3.net"

          ;; Query time: 194 msec
          ;; SERVER: 4.2.2.2#53(4.2.2.2)
          ;; WHEN: Mon Aug 20 09:27:21 EEST 2018
          ;; MSG SIZE rcvd: 78





          share|improve this answer














          I think you're looking for dig. Specify id.server, hostname.bind, version.bind as the domain name, TXT as rrtype, and CHAOS (or CH) as the class. For example, to query Level3's DNS:



          $ dig @4.2.2.2 hostname.bind chaos txt

          ; <<>> DiG 9.13.2 <<>> @4.2.2.2 hostname.bind chaos txt
          ; (1 server found)
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49354
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

          ;; OPT PSEUDOSECTION:
          ; EDNS: version: 0, flags:; udp: 8192
          ;; QUESTION SECTION:
          ;hostname.bind. CH TXT

          ;; ANSWER SECTION:
          hostname.bind. 1 CH TXT "pubntp2.frf1.Level3.net"

          ;; Query time: 194 msec
          ;; SERVER: 4.2.2.2#53(4.2.2.2)
          ;; WHEN: Mon Aug 20 09:27:21 EEST 2018
          ;; MSG SIZE rcvd: 78






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 20 at 6:34









          grawity

          215k32434504




          215k32434504










          answered Aug 20 at 1:47









          Hogstrom

          628114




          628114











          • Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
            – Alexis Wilke
            Aug 20 at 2:23






          • 2




            @AlexisWilke: It's id.server, a later addition.
            – grawity
            Aug 20 at 6:27
















          • Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
            – Alexis Wilke
            Aug 20 at 2:23






          • 2




            @AlexisWilke: It's id.server, a later addition.
            – grawity
            Aug 20 at 6:27















          Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
          – Alexis Wilke
          Aug 20 at 2:23




          Great, that worked with version.bind and hostname.bind, but the server-id.bind doesn't return anything...
          – Alexis Wilke
          Aug 20 at 2:23




          2




          2




          @AlexisWilke: It's id.server, a later addition.
          – grawity
          Aug 20 at 6:27




          @AlexisWilke: It's id.server, a later addition.
          – grawity
          Aug 20 at 6:27

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1350517%2fwhat-linux-command-line-tool-can-i-use-to-determine-the-version-and-name-of-a-re%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          One-line joke