User Tools

Site Tools


linux:dns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:dns [2020/09/28 14:28] – created bstaffordlinux:dns [2022/11/23 12:49] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== DNS on Linux ====== ====== DNS on Linux ======
 +===== Static DNS ===== 
 +<code>sudo vi /etc/netplan/00-installer-config.yaml</code> 
 +<code>network: 
 +  ethernets: 
 +    ens160: 
 +      addresses: 
 +      - 192.168.1.2/24 
 +      - 2001:db8:1111:2222:3333::2/64 
 +      gateway4: 192.168.1.1 
 +      gateway6: 2001:db8:1111:2222:3333::1::
 +      nameservers: 
 +        addresses: 
 +        - 192.168.1.1 
 +        - 192.168.1.2 
 +        - 2001:db8:1111:2222:3333::d1 
 +        - 2001:db8:1111:2222:3333::d2 
 +        search: 
 +        - mydomain.local 
 +  version: 2</code> 
 +<code>sudo netplan apply</code>
 ===== DNS Status ===== ===== DNS Status =====
 <code>resolvectl status</code> <code>resolvectl status</code>
linux/dns.1601303329.txt.gz · Last modified: (external edit)