Hi !
I've got some LXC with dual NIC, one for admin (ssh) and the other for services (NFS, http...) and they got their configuration from DHCP (OpenWRT). Both LAN have their own domain (admin.lan / services.lan).
Here's the LXC configuration:
From scratch (debian-10.0-standard_10.0-1_amd64.tar.gz), the container got his configuration with isc-dhcp-client (apparently), installed by default, which only gets the last (apparently) declared NIC (in order of appearance in Proxmox LXC configuration):
But I'd like it to have both LAN resolution, so I installed dnsmasq and configure it accordingly in addition with resolvconf and now, my resolv.conf file looks like this:
even if the Proxmox LXC's configuration is empty.
What process is responsible to that ? If I
Who modifies this file in order ? isc -> dnsmasq -> resolvconf -> proxmox ?
How can I have, in a KIS way, a resolv.conf file like
Thank you !
I've got some LXC with dual NIC, one for admin (ssh) and the other for services (NFS, http...) and they got their configuration from DHCP (OpenWRT). Both LAN have their own domain (admin.lan / services.lan).
Here's the LXC configuration:
Code:
arch: amd64
cores: 1
hostname: proxy
memory: 512
net0: name=eth0,bridge=vmbr0,hwaddr=F6:F4:67:DF:A6:2D,ip=dhcp,type=veth
net1: name=eth1,bridge=vmbr2,hwaddr=72:E2:3F:72:89:07,ip=dhcp,type=veth
onboot: 1
ostype: debian
parent: tempo
rootfs: local-lvm:vm-301-disk-0,mountoptions=noatime,size=8G
swap: 512
unprivileged: 1
From scratch (debian-10.0-standard_10.0-1_amd64.tar.gz), the container got his configuration with isc-dhcp-client (apparently), installed by default, which only gets the last (apparently) declared NIC (in order of appearance in Proxmox LXC configuration):
Code:
cat /etc/resolv.conf
domain service.lan
search service.lan
nameserver 192.168.64.254
But I'd like it to have both LAN resolution, so I installed dnsmasq and configure it accordingly in addition with resolvconf and now, my resolv.conf file looks like this:
Code:
# --- BEGIN PVE ---
search admin.lan
nameserver 192.168.33.254
# --- END PVE ---
even if the Proxmox LXC's configuration is empty.
What process is responsible to that ? If I
touch /etc/.pve-ignore.resolv.conf
, the file is no longer modified by Proxmox, but it doesn't look correct anyway.Who modifies this file in order ? isc -> dnsmasq -> resolvconf -> proxmox ?
How can I have, in a KIS way, a resolv.conf file like
nameserver 127.0.0.1
?Thank you !