Hello everybody,
I have a problem with my LXC container under centos. My DNS does not resolve the name.
Conversely on debian LXC container no worries.
/etc/hosts
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf
Can you help me ?
I have a problem with my LXC container under centos. My DNS does not resolve the name.
Conversely on debian LXC container no worries.
/etc/hosts
Code:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# --- BEGIN PVE ---
192.168.2.223 try1.lan try1
/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.2.223
NETMASK=255.255.255.0
GATEWAY=192.168.2.254
DHCP_HOSTNAME=try1
DNS1=192.168.2.254
/etc/resolv.conf
Code:
# --- BEGIN PVE ---
search lan
nameserver 192.168.2.254
nameserver 208.67.220.220
nameserver 208.67.222.222
# --- END PVE ---
Can you help me ?