Skip to content

Instantly share code, notes, and snippets.

@phlinhng
Created May 26, 2021 09:50
sysctl -w "net.ipv6.conf.enp0s31f6.disable_ipv6=1" # change enp0s1f6 to your main interface i.e. eth0
echo "net.ipv6.conf.enp0s31f6.disable_ipv6=1" >> /etc/sysctl.conf # save sysctl conf
echo "precedence ::ffff:0:0/96 100" >> /etc/gai.conf # disable ipv6 dns record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment