Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authority Section not in output #19

Closed
uggyuggy opened this issue Apr 21, 2022 · 1 comment
Closed

Authority Section not in output #19

uggyuggy opened this issue Apr 21, 2022 · 1 comment

Comments

@uggyuggy
Copy link

Hi,
Thank's for sharing q

Noticed the AUTHORITY SECTION is not into the output (checked options but can't find something related)
Is it the expected design ? Or something that could be added ?

$ q -V
https://github.com/natesales/q version 0.5.8 (e84c6bbbfaa762f904ffbbd402f83630fa67589e 2022-04-18T20:59:46Z)
$
$ q ns org.
org. 24h0m0s NS a0.org.afilias-nst.info.
org. 24h0m0s NS d0.org.afilias-nst.org.
org. 24h0m0s NS b0.org.afilias-nst.org.
org. 24h0m0s NS a2.org.afilias-nst.info.
org. 24h0m0s NS c0.org.afilias-nst.info.
org. 24h0m0s NS b2.org.afilias-nst.org.
$
$ q ns eff.org @a0.org.afilias-nst.info.
$
$  dig  ns eff.org @a0.org.afilias-nst.info.
..
;; AUTHORITY SECTION:
eff.org.		86400	IN	NS	ns4.eff.org.
eff.org.		86400	IN	NS	ns1.eff.org.
eff.org.		86400	IN	NS	ns2.eff.org.
..
$
@natesales
Copy link
Owner

I've changed this behavior in v0.6.0 to be more configurable. You can now toggle on each section with +[no]question/answer/authority/additional. +[no]all toggles them all at once.

~ ▴ q NS org. +authority @k.root-servers.net
Authority:
org. 48h0m0s NS a0.org.afilias-nst.info.
org. 48h0m0s NS a2.org.afilias-nst.info.
org. 48h0m0s NS b0.org.afilias-nst.org.
org. 48h0m0s NS b2.org.afilias-nst.org.
org. 48h0m0s NS c0.org.afilias-nst.info.
org. 48h0m0s NS d0.org.afilias-nst.org.
~ ▴ q NS org. +authority @k.root-servers.net
Authority:
org. 48h0m0s NS a0.org.afilias-nst.info.
org. 48h0m0s NS a2.org.afilias-nst.info.
org. 48h0m0s NS b0.org.afilias-nst.org.
org. 48h0m0s NS b2.org.afilias-nst.org.
org. 48h0m0s NS c0.org.afilias-nst.info.
org. 48h0m0s NS d0.org.afilias-nst.org.
~ ▴ q NS org. +all @k.root-servers.net
Question:
org. NS
Authority:
org. 48h0m0s NS a0.org.afilias-nst.info.
org. 48h0m0s NS a2.org.afilias-nst.info.
org. 48h0m0s NS b0.org.afilias-nst.org.
org. 48h0m0s NS b2.org.afilias-nst.org.
org. 48h0m0s NS c0.org.afilias-nst.info.
org. 48h0m0s NS d0.org.afilias-nst.org.
Additional:
a0.org.afilias-nst.info. 48h0m0s AAAA 2001:500:e::1
a2.org.afilias-nst.info. 48h0m0s AAAA 2001:500:40::1
b0.org.afilias-nst.org. 48h0m0s AAAA 2001:500:c::1
b2.org.afilias-nst.org. 48h0m0s AAAA 2001:500:48::1
c0.org.afilias-nst.info. 48h0m0s AAAA 2001:500:b::1
d0.org.afilias-nst.org. 48h0m0s AAAA 2001:500:f::1
a0.org.afilias-nst.info. 48h0m0s A 199.19.56.1
a2.org.afilias-nst.info. 48h0m0s A 199.249.112.1
b0.org.afilias-nst.org. 48h0m0s A 199.19.54.1
b2.org.afilias-nst.org. 48h0m0s A 199.249.120.1
c0.org.afilias-nst.info. 48h0m0s A 199.19.53.1
d0.org.afilias-nst.org. 48h0m0s A 199.19.57.1

This works the same way for the raw output format (which is different than dig's default).

~ ▴ q NS org. @k.root-servers.net --format raw
;; opcode: QUERY, status: NOERROR, id: 0
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 12

~ ▴ q NS org. +authority @k.root-servers.net --format raw
;; opcode: QUERY, status: NOERROR, id: 0
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 12

;; AUTHORITY SECTION:
org.	172800	IN	NS	a0.org.afilias-nst.info.
org.	172800	IN	NS	a2.org.afilias-nst.info.
org.	172800	IN	NS	b0.org.afilias-nst.org.
org.	172800	IN	NS	b2.org.afilias-nst.org.
org.	172800	IN	NS	c0.org.afilias-nst.info.
org.	172800	IN	NS	d0.org.afilias-nst.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants