Pb DNS with new version

badji

Renowned Member
Jan 14, 2011
236
35
93
I just noticed that the DNS identifiers fade after a while .

My Network, it work's well.
 
Is this only on the node level or also for guests? I cannot reproduce it here in either case.. Have you configured anything else that touches "/etc/resolv.conf" ? For example NetworkManager, custom hooks in /etc/network/interfaces, ..?
 
Bonjour Fabian,

i'm using /etc/network/interface.
I remade the installation , the problem is still there. On 3 server.

root@pve-ceph1:/home/moula# pveversion -v
proxmox-ve: 4.1-45 (running kernel: 4.4.6-1-pve)
pve-manager: 4.1-30 (running version: 4.1-30/9e199213)
pve-kernel-4.4.6-1-pve: 4.4.6-45
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 1.0-1
pve-cluster: 4.0-39
qemu-server: 4.0-69
pve-firmware: 1.1-8
libpve-common-perl: 4.0-59
libpve-access-control: 4.0-16
libpve-storage-perl: 4.0-50
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-13
pve-container: 1.0-59
pve-firewall: 2.0-24
pve-ha-manager: 1.0-27
ksm-control-daemon: not correctly installed
glusterfs-client: 3.7.9-2
lxc-pve: 1.1.5-7
lxcfs: 2.0.0-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
root@pve-ceph1:/home/moula# date
mardi 19 avril 2016, 14:31:22 (UTC+0200)
root@pve-ceph1:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph1:/home/moula# date
mardi 19 avril 2016, 14:32:11 (UTC+0200)
root@pve-ceph1:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph1:/home/moula# date
mardi 19 avril 2016, 14:36:23 (UTC+0200)
root@pve-ceph1:/home/moula# cat /etc/resolv.conf
nameserver 2a01:e00::1
nameserver 2a01:e00::2

root@pve-ceph2:/home/moula# date
mardi 19 avril 2016, 14:33:12 (UTC+0200)
root@pve-ceph2:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph2:/home/moula# date
mardi 19 avril 2016, 14:34:41 (UTC+0200)
root@pve-ceph2:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph2:/home/moula# date
mardi 19 avril 2016, 14:37:30 (UTC+0200)
root@pve-ceph2:/home/moula# cat /etc/resolv.conf
nameserver 2a01:e00::1
nameserver 2a01:e00::2
root@pve-ceph2:/home/moula#

Thank's.

Moula.
 
Could you please post the content of "/etc/network/interfaces" and any if-pre/post-up/down snippets in /etc/network/if-xx-xx/ that you installed?
 
On one server , I added these two line in the /etc/network/interface
dns-nameservers 192.168.1.1
dns-search tychecloud.lan

Is it works
Of the two other servers , I brought the same changes I restarts the network and the problem is unresolved !!!
loss of data resolv.conf !!!
root@pve-ceph3:/home/moula# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug eth1

auto eth1
iface eth1 inet manual
broadcast 192.168.1.255
network 192.168.1.0
dns-nameservers 192.168.1.1
dns-search tychecloud.lan
# dns-* options are implemented by the resolvconf package, if installed

auto eth0
iface eth0 inet manual

auto eth2
iface eth2 inet manual

auto eth3
iface eth3 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.254
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes

root@pve-ceph3:/home/moula# date
mercredi 20 avril 2016, 11:49:34 (UTC+0200)
root@pve-ceph3:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph3:/home/moula# /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
root@pve-ceph3:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph3:/home/moula#

and at the second server :
root@pve-ceph2:/home/moula# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug eth1

auto eth1
iface eth1 inet manual
broadcast 192.168.1.255
network 192.168.1.0
dns-nameservers 192.168.1.1
dns-search tychecloud.lan
# dns-* options are implemented by the resolvconf package, if installed

auto eth0
iface eth0 inet manual

auto eth2
iface eth2 inet manual

auto eth3
iface eth3 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.1.20
netmask 255.255.255.0
gateway 192.168.1.254
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes

root@pve-ceph2:/home/moula# cat /etc/resolv.conf
search tychecloud.lan
nameserver 192.168.1.1
nameserver 192.168.1.2
nameserver 192.168.1.254
root@pve-ceph2:/home/moula# /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
root@pve-ceph2:/home/moula# cat /etc/resolv.conf
nameserver 2a01:e00::1
nameserver 2a01:e00::2

thank's.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!