My Rockylinux guests have been configured trough cloud-config (static IP):
and they're getting nameservers config from pve itself + gw of net0:
guest:
pve:
I want to use only 10.0.90.1 nameserver but setting DNS servers in cloud-config doesn't affect anything as there is no difference to generated resolv.conf.
What is going on?
and they're getting nameservers config from pve itself + gw of net0:
guest:
Bash:
[kochan@s1 ~]$ cat /etc/resolv.conf
; Created by cloud-init on instance boot automatically, do not edit.
;
# Generated by NetworkManager
search dc7.box
nameserver 10.0.80.1
nameserver 10.0.90.1
pve:
Bash:
root@pve1:~# cat /etc/resolv.conf
search dc7.box
nameserver 10.0.80.1
I want to use only 10.0.90.1 nameserver but setting DNS servers in cloud-config doesn't affect anything as there is no difference to generated resolv.conf.
What is going on?
Bash:
[root@s1 ~]# cloud-init --version
/usr/bin/cloud-init 22.1-10.el9_2.0.2
[root@s1 ~]# cat /etc/NetworkManager/conf.d/99-cloud-init.conf
# Created by cloud-init on instance boot automatically, do not edit.
#
[main]
dns = none