>_ IzzyLab

Hands-on task

This task is step 10 of the course “New server: setup from scratch”

A backup DNS server for the new server

easy~2 min

The server resolves names through the provider's only DNS server — if it goes down, the site won't be able to reach the payment gateway. Add a backup nameserver 9.9.9.9 to the resolver config, keeping the provider's server.

What you'll practise:
  • /etc/resolv.conf
  • nameserver
  • dns
  • backup resolver

Topic breakdown

The resolver learns which DNS servers to ask from /etc/resolv.conf: each nameserver <IP> line is one server, they're queried in order, and the next one is used if the previous one didn't answer. So a second server is cheap insurance against the provider's DNS going down. The main thing is to append the line, not overwrite the file. On regular systems the file is often generated by systemd-resolved or NetworkManager, and the permanent setting is made there, but in the sandbox a direct edit is enough.

What's checked

  1. nameserver 9.9.9.9 is added
  2. the provider's DNS is kept

What it looks like