So on the network that I use, the admin’s like to use IPv4 but have support for IPv6 as well. So there’s always a bunch of IPv6 addresses that my NIC’s get attacked with every time they contact the DHCP server.
I really don’t need all that crap and I would like to speed up my DNS queries by not worrying about IPv6.

So here’s how to disable it…. 1: Open your /etc/modprobe.d/blacklist file. 2: Add the following lines: #disable ipv6 support blacklist ipv6 3: reboot.

After the reboot, your kernel will have no support for ipv6 because you have disabled the module that controls that.

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.