DNS/Hostname Problem bei LXCs

hivebof832

Member
Mar 4, 2020
18
1
23
44
discorduserinfo.pro
Hallo zusammen,
heute ist mir aufgefallen, dass sich meine LXCs nicht per Hostnamen pingen lassen.

Der Host lässt sich per IP, Hostname und hostname.fritz.box pingen.
und wird in meiner Fritzbox auch als proxmox erkannt.

Bei einem LXC von diesem LXC-build Script https://github.com/tteck/Proxmox/raw/main/ct/homeassistant-v4.sh funktioniert ebenso alles.
1670089539778.png

Nun der Fall meiner selbst erstellten LXcs:
EIn Pingen per hostname und hostname.fritz.box ist nicht möglich, ebenso zeigt mir meine Fritzbox die MAC als Hostname an, was ist da falsch?

Bash:
root@docker:~# cat /etc/hosts
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
# --- BEGIN PVE ---
192.168.10.101 docker.fritz.box docker
# --- END PVE ---
root@docker:~# hostnamectl
 Static hostname: docker
       Icon name: computer-container
         Chassis: container
      Machine ID: 4535af5111f54cb08a87936c5e309217
         Boot ID: 30ae77c26fb041d18d4f7ed928b89fe2
  Virtualization: lxc
Operating System: Ubuntu 22.04.1 LTS
          Kernel: Linux 5.15.39-4-pve
    Architecture: x86-64

Code:
PS C:\Users\x> ping docker
Ping-Anforderung konnte Host "docker" nicht finden. Überprüfen Sie den Namen, und versuchen Sie es erneut.
PS C:\Users\x> ping docker.fritz.box
Ping-Anforderung konnte Host "docker.fritz.box" nicht finden. Überprüfen Sie den Namen, und versuchen Sie es erneut.




1670089506513.png
 
Last edited:
Hi,

wie sieht denn die Konfiguration (pct config xyz) vom selbst erstellten Container aus? Ist die search domain gesetzt? Ich würde mal die Konfigurationen (also, Konfiguration vom Container selbst und die Netzwerkkonfiguration) zwischen den selbst erstellten und denen vom Skript vergleichen, vielleicht fallen da ja irgendwelche Unterschiede auf.
 

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!