How to hide version information of bind DNS server?

Solution Verified - Updated -

Issue

  • I would like to hide version information of bind for the query from the client like below.
# dig @localhost chaos txt version.bind

; <<>> DiG 9.11.26-RedHat-9.11.26-4.el8_4 <<>> @localhost chaos txt version.bind
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34275
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: f8be3d03e4146d5cbc00031d6396ddf6406b7ecdc44311f6 (good)
;; QUESTION SECTION:
;version.bind.          CH  TXT

;; ANSWER SECTION:
version.bind.       0   CH  TXT "9.11.26-RedHat-9.11.26-4.el8_4"  <<<===

;; AUTHORITY SECTION:
version.bind.       0   CH  NS  version.bind.

;; Query time: 6 msec
;; SERVER: ::1#53(::1)
;; WHEN: Mon Dec 12 02:53:26 EST 2022
;; MSG SIZE  rcvd: 126

Environment

  • Red Hat Enterprise Linux 8
  • bind

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content