What Linux command line tool can I use to determine the version and name of a remote DNS?
Clash 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?
linux command-line dns
add a comment |Â
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?
linux command-line dns
add a comment |Â
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?
linux command-line dns
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?
linux command-line dns
asked Aug 20 at 1:14


Alexis Wilke
300211
300211
add a comment |Â
add a comment |Â
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
Great, that worked withversion.bind
andhostname.bind
, but theserver-id.bind
doesn't return anything...
– Alexis Wilke
Aug 20 at 2:23
2
@AlexisWilke: It'sid.server
, a later addition.
– grawity
Aug 20 at 6:27
add a comment |Â
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
Great, that worked withversion.bind
andhostname.bind
, but theserver-id.bind
doesn't return anything...
– Alexis Wilke
Aug 20 at 2:23
2
@AlexisWilke: It'sid.server
, a later addition.
– grawity
Aug 20 at 6:27
add a comment |Â
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
Great, that worked withversion.bind
andhostname.bind
, but theserver-id.bind
doesn't return anything...
– Alexis Wilke
Aug 20 at 2:23
2
@AlexisWilke: It'sid.server
, a later addition.
– grawity
Aug 20 at 6:27
add a comment |Â
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
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
edited Aug 20 at 6:34
grawity
215k32434504
215k32434504
answered Aug 20 at 1:47
Hogstrom
628114
628114
Great, that worked withversion.bind
andhostname.bind
, but theserver-id.bind
doesn't return anything...
– Alexis Wilke
Aug 20 at 2:23
2
@AlexisWilke: It'sid.server
, a later addition.
– grawity
Aug 20 at 6:27
add a comment |Â
Great, that worked withversion.bind
andhostname.bind
, but theserver-id.bind
doesn't return anything...
– Alexis Wilke
Aug 20 at 2:23
2
@AlexisWilke: It'sid.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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password