dig +nocomment still comments
The +nocomment option for dig still prints comments. For example:
; <<>> DiG 9.10.3-P4-Ubuntu <<>> www.isc.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36505
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.isc.org. IN A
;; ANSWER SECTION:
www.isc.org. 60 IN CNAME dualstack.osff2.map.fastly.net.
dualstack.osff2.map.fastly.net. 30 IN A 151.101.42.217
;; AUTHORITY SECTION:
fastly.net. 4277 IN NS ns1.fastly.net.
fastly.net. 4277 IN NS ns2.fastly.net.
fastly.net. 4277 IN NS ns3.fastly.net.
fastly.net. 4277 IN NS ns4.fastly.net.
;; Query time: 10 msec
;; SERVER: 173.230.147.5#53(173.230.147.5)
;; WHEN: Mon Jul 29 15:32:59 UTC 2019
;; MSG SIZE rcvd: 172
# dig www.isc.org +nocomments
; <<>> DiG 9.10.3-P4-Ubuntu <<>> www.isc.org +nocomments
;; global options: +cmd
;www.isc.org. IN A
www.isc.org. 55 IN CNAME dualstack.osff2.map.fastly.net.
dualstack.osff2.map.fastly.net. 25 IN A 151.101.42.217
fastly.net. 4272 IN NS ns1.fastly.net.
fastly.net. 4272 IN NS ns2.fastly.net.
fastly.net. 4272 IN NS ns3.fastly.net.
fastly.net. 4272 IN NS ns4.fastly.net.
;; Query time: 0 msec
;; SERVER: 173.230.147.5#53(173.230.147.5)
;; WHEN: Mon Jul 29 15:33:04 UTC 2019
;; MSG SIZE rcvd: 172