Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net
March 5, 2021February 21, 2022

Disable IPV6 in Ubuntu 18.04

IPV6 sometimes break DNS resolution in Ubuntu 18.04. Follow the steps below to disable and verify
that IPV6 is disabled in Ubuntu.
Edit /etc/sysctl.conf and add the following lines to the end of the file …

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Save the file and issue the following command to force Ubuntu to reload the file.

sysctl -p

To verify that the new configuration has been applied, you can issue the next command.

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

You should receive a result of 1 if it was successfully applied and 0 if it failed.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to print (Opens in new window) Print
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading...

Related

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • HPE Aruba-CX Notes
  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy
  • Mount Google Drive in Linux using rclone

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!
%d