After Netplan processes those YAML files, configurations are generated for systemd-network or Network Manager, depending on whether you’re using Ubuntu Server or Desktop. The process generally makes network configuration much less complex, and naturally has a knock-on effect on how to configure DNS on Ubuntu. The important thing to note is that the files are now located in /etc/netplan, with file names such as ’01-netcgf.yaml’. We’re going to be focusing on configuration on a VPS in this tutorial, so the first step is to log in. How to configure a DNS server in Ubuntu step-by-stepĬonnect to your VPS by entering its IP address in PuTTY’s ‘Host Name’ field and clicking ‘Open’.Įnter the username and password and press Enter to connect to the Linux environment. You can now navigate to your Netplan folder with cd /etc/netplan. You’ll see your nameserver entry in this file, like so: Type ls to list your config files and edit the Ubuntu DNS server with: sudo nano filenamehere.yamlīefore you make any changes, it’s worth noting that your indents must be consistent for Netplan to load the values and you must use spaces, not tabs. The above are the primary and alternate DNS IP addresses for Cloudflare. You can add more DNS addresses separated by commas on the same line, but it’s best to group them on separate lines for clarity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |