Skip to content
Tech News
← Back to articles

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

read original more articles
Why This Matters

This article highlights how configuring DNS via the command line on Ubuntu Linux using Netplan is a straightforward process that empowers users to manage network settings without a GUI. This skill is especially valuable for remote servers, headless systems, or those looking to enhance their Linux networking expertise, making it a practical tool for both developers and system administrators.

Key Takeaways

Jack Wallen/ZDNET

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 command line. If, on the other hand, you've used SSH to remote into a machine (or the machine simply has no GUI), be glad the command line method is almost as easy (as long as you have at least a modicum of experience with the command line).

Also: 7 Linux commands I can't live without after 20 years in the terminal

... continue reading