If you require DNS for your temporary network configuration, you can add DNS server IP addresses in the file /etc/resolv.conf. In general, editing /etc/resolv.conf directly is not recommanded, but this is a temporary and non-persistent configuration.
Create a DHCP and DNS Server with Dnsmasq on Ubuntu Server Dec 18, 2019 How to Configure Network Settings in Ubuntu Oct 24, 2019 linux - How do I set my DNS when resolv.conf is being For static IP situations, the Ubuntu Server Guide says to change the file /etc/network/interfaces, which may look like this: iface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 gateway 192.168.3.1 dns-search example.com dns-nameservers 192.168.3.45 192.168.8.10 Set permanent DNS nameservers on Ubuntu or Debian with
SSH Server (1) Password Authentication (2) SSH File Transfer(Ubuntu) (3) SSH File Transfer(Windows) (4) SSH Key-Pair Authentication (5) SFTP only + Chroot (6) Use SSHPass (7) Use SSH-Agent (8) Use Parallel SSH; DNS / DHCP Server. DNS Server (BIND) (1) Configure BIND (2) Set Zone Info (3) Start BIND (4) Set CNAME record (5) Slave DNS Server
Apr 19, 2014 How To Configure Static IP Address on Ubuntu 20.04/18.04
How To Configure BIND as a Private Network DNS Server on
How To Set Permanent DNS Nameservers in Ubuntu and Debian Sep 14, 2018 Service - Domain Name Service (DNS) | Server - Ubuntu