[Solved]
[TLDR] When installing Debian Minimal do not select the option for IPv6 DNS
In a default Debian installation /etc/resolv.conf is autogenerated by the package named 'resolvconf' for IPv4
We already know not to install packages like network-manager or resolvconf because they will conflict with PVE
Similarly for IPv6 the package that overwrites /etc/resolv.conf is 'rdnssd'
apt-get remove rdnssd resolvconf network-manager
[/TLDR]
I can configure DNS settings via the GUI DNS / Edit / Dialog box 'Search Domain' and 'DNS Server'
and DNS resolution then works for a time:
However at some point /etc/resolv.conf is regenerated and the details are lost.
I have searched the forums and google and the 2 most helpful answers were:
Thread: Hostname Issue
https://forum.proxmox.com/threads/8715-Hostname-Issue
and
How do I include lines in resolv.conf that won't get lost on reboot? https://askubuntu.com/questions/157...s-in-resolv-conf-that-wont-get-lost-on-reboot
There are 2 NICs for which I configured 2 Linux Bridges:
and have tried adding to the bridges iface stanzas
dns-search wnr2200.lan
dns-nameservers 192.168.5.1
in /etc/network/interfaces
But cannot resolve this problem.
I have been testing PVE4 since Beta1 and Beta2 and DNS worked ok on other boxes but now I see this problem on a box that I recently freshly installed.
I followed the guide: Install Proxmox VE on Debian Jessie after doing a fresh install of Debian 8.2
[TLDR] When installing Debian Minimal do not select the option for IPv6 DNS
In a default Debian installation /etc/resolv.conf is autogenerated by the package named 'resolvconf' for IPv4
We already know not to install packages like network-manager or resolvconf because they will conflict with PVE
Similarly for IPv6 the package that overwrites /etc/resolv.conf is 'rdnssd'
apt-get remove rdnssd resolvconf network-manager
[/TLDR]
I can configure DNS settings via the GUI DNS / Edit / Dialog box 'Search Domain' and 'DNS Server'
and DNS resolution then works for a time:
Code:
root@deb82:~# cat /etc/resolv.conf
search wnr2200.lan
nameserver 192.168.11.1
nameserver 192.168.5.1
However at some point /etc/resolv.conf is regenerated and the details are lost.
I have searched the forums and google and the 2 most helpful answers were:
Thread: Hostname Issue
https://forum.proxmox.com/threads/8715-Hostname-Issue
and
How do I include lines in resolv.conf that won't get lost on reboot? https://askubuntu.com/questions/157...s-in-resolv-conf-that-wont-get-lost-on-reboot
There are 2 NICs for which I configured 2 Linux Bridges:
and have tried adding to the bridges iface stanzas
dns-search wnr2200.lan
dns-nameservers 192.168.5.1
in /etc/network/interfaces
But cannot resolve this problem.
Code:
root@deb82:~# ls -al /etc/network/interfaces.d/
total 8
drwxr-xr-x 2 root root 4096 Mar 13 2015 .
drwxr-xr-x 7 root root 4096 Oct 16 21:44 ..
root@deb82:~# pveversion
pve-manager/4.0-50/d3a6b7e5 (running kernel: 4.2.2-1-pve)
I have been testing PVE4 since Beta1 and Beta2 and DNS worked ok on other boxes but now I see this problem on a box that I recently freshly installed.
I followed the guide: Install Proxmox VE on Debian Jessie after doing a fresh install of Debian 8.2
Last edited: