ich habe ein Verständniss-Problem. Es geht um einen Debian-Docker-Container und die Einträge in der /etc/hosts.
Nach dem booten sieht die /etc/resolv.conf so:
Code: Alles auswählen
cat /etc/resolv.conf
# Generated by NetworkManager
search linuxlab.local
nameserver 192.168.10.1
nameserver 8.8.8.8
nameserver 8.8.4.4
Code: Alles auswählen
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Tuts aber nicht.
Ich habe da noch was von der nsswitch.conf gesehen. Die sieht so aus:
Code: Alles auswählen
cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files systemd
group: files systemd
shadow: files
gshadow: files
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Die resolv.conf ist offenbar richtig.
Danke schon mal