I need to have my own DNS server in the corporate.
I have the following config set for netplan:
network:
version: 2
renderer: NetworkManager
ethernets:
eno1:
dhcp4: yes
addresses:
- 192.168.1.240/24
nameservers:
addresses: [192.168.1.10]
At first I have the following on running resolvectl status
after running sudo netplan apply
:
Link 2 (eno1)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.10
DNS Servers: 192.168.1.10 192.168.254.112 192.168.254.113 192.168.254.114
But after a while I get the following:
Link 2 (eno1)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.254.112
DNS Servers: 192.168.1.10 192.168.254.112 192.168.254.113 192.168.254.114
What's wrong here?
How can I fix using my own DNS using netplan.
And the DNS server is since it is on my local network.
dhcp-options
; see the netplan manpage for details.use-dns
is not working on NetworkManager backend. @slangasek