CentOS 7.x Disabling IPv6 lookups in bind

From Notes_Wiki
Revision as of 16:13, 28 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > DNS > CentOS 7.x Disabling IPv6 lookups in bind

To disable IPv6 lookups in bind use following steps:

  1. Edit '/etc/named.conf' and set
    filter-aaaa-on-v4 yes;
  2. Disable bind from listening on IPv6 interfaces by commenting following
    #listen-on-v6 port 53 { ::1; };
    in /etc/named.conf file
  3. Edit /etc/sysconfig/named and set
    OPTIONS="-4"
    In case you use vim to edit the file, then do not worry about red coloring of the file
  4. Finally restart bind by using:
    systemctl restart named


Related youtube video

More videos related to this wiki are available at youtube channel https://www.youtube.com/channel/UCk8GVLah-TL2TrLlHVPgFKw


Home > CentOS > CentOS 7.x > DNS > CentOS 7.x Disabling IPv6 lookups in bind