How I configure DNS on Ubuntu Linux distros via the command line - it's easier than you think

https://www.zdnet.com/a/img/resize/ec3d3df2df1adc7cf9060ea6cf946831c8d99975/2026/07/20/afc61ef6-1707-4aad-a39a-69f931c0901f/netplanhero.jpg?auto=webp&fit=crop&height=675&width=1200

Follow ZDNET: Add us as a preferred source on Google.


ZDNET's key takeaways

  • I use Netplan to customize DNS on Ubuntu-based distros.
  • This CLI method may be daunting, but you'll see its power.
  • This method can be used on desktops and servers alike.

Every once in a while, you might find yourself in a situation where you need to change DNS providers, and you don't have access to a desktop GUI. You might be dealing with a PC remotely, an at-home server, or maybe you just want to up your Linux skills.

Either way, you might want to know how to configure DNS with the Netplan tool, which is the command-line system for configuring networking on Ubuntu-based desktops.

Before we get into it, know that configuring DNS the GUI way is very easy, so if you have access to a desktop environment, you could do this without ever touching the...

Copyright of this story solely belongs to zdnet.com. To see the full text click HERE

Read more