Skip to content

Instantly share code, notes, and snippets.

@phlinhng
Created May 26, 2021 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phlinhng/0b02a27248790aa904f28b9f991f06bc to your computer and use it in GitHub Desktop.
Save phlinhng/0b02a27248790aa904f28b9f991f06bc to your computer and use it in GitHub Desktop.
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