How to hide version information of unbound?
Issue
- I would like to hide version information of unbound for the query from the client like below.
# dig @localhost chaos txt version.bind
; <<>> DiG 9.11.20-RedHat-9.11.20-5.el8_3.1 <<>> @localhost chaos txt version.bind
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52429
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;version.bind. CH TXT
;; ANSWER SECTION:
version.bind. 0 CH TXT "unbound 1.7.3" <<<===
;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Thu Dec 08 13:40:01 JST 2022
;; MSG SIZE rcvd: 67
Environment
- Red Hat Enterprise Linux 8
- unbound
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.