Bind9 listen on IpV4 only – Disable IpV6

For whatever motive, and until IpV6 is fully adopted, you get speed increases on networks and internet by disabling IpV6 lookups wherever you can. This is how to disable IpV6 in Bind9

Login to your server as root and edit the bind9 file:

vim /etc/default/bind9

IPv4 only:

# run resolvconf?
RESOLVCONF=yes
# startup options for the server
OPTIONS=”-4 -u bind”

IPv6 only:

# run resolvconf?
RESOLVCONF=yes
# startup options for the server
OPTIONS=”-6 -u bind”

Once you have edited the bind9  file and chosen either IpV4 or IpV6, you need to restart the BIND service:

/etc/init.d/bind9 restart

Advertisements

One thought on “Bind9 listen on IpV4 only – Disable IpV6

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s