set dns servers ubuntu 20.04 code example
Example 1: ubunt server 20.04 dns tuto
;
;
;
$TTL 604800
@ IN SOA ns.domain-name.com. admin.domain-name.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.domain-name.com.
@ IN A 10.1.1.1
ns IN A 10.1.1.9
ns2 IN A 10.1.1.10
mx IN A 10.1.1.15
Example 2: ubuntu 20.04 how to check dns server
systemd-resolve --status | grep Current