bind禁用ipv6

国内的教程都是你抄我,我抄你,完全没有自己试过的,大批量教程里让你改/etc/named文件,这特么哪有这个文件,实际修改方式如下:

修改/etc/sysconfig/named文件,修改为如下

#BIND named process options
# ~~~~~~

OPTIONS=”-4″
# — These additional options will be passed to named
# at startup. Don’t add -t here, enable proper
# -chroot.service unit file.
# Use of parameter -c is not supported here. Extend
# systemd named*.service instead. For more
# information please read the following KB article:
# https://access.redhat.com/articles/2986001

#DISABLE_ZONE_CHECKING — By default, service file calls named-checkzone
# utility for every zone to ensure all zones are
# valid before named starts. If you set this option
# to ‘yes’ then service file doesn’t perform those
# checks.

Leave a comment

Your email address will not be published. Required fields are marked *