ssh: Could not resolve hostname after setup vmbr0

steff123

Member
Aug 1, 2020
55
2
13
42
Cannot connect to my node using the hostname. IP works.

I installed debian and then the pve. At this time it works. After I setup the vmbr0 I have the problem. But the setup is identical to my other both nodes, which works. The router is only a retail product (Fritzbox). I deleted the device already there . But still the problem


Code:
#/etc/hosts
127.0.0.1    localhost
192.168.2.15    node05

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouter


#/etc/resolv.conf
search fritz.box
nameserver 192.168.2.1


#/etc/network/interfaces
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

#iface eno1 inet manual

#iface eno2 inet manual

#iface eno3 inet manual

#iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.2.15
    netmask 255.255.255.0
    gateway 192.168.2.1
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0


Here the results of nslookup from a another device

Code:
# nslookup node05
Server:        127.0.0.53
Address:    127.0.0.53#53

** server can't find node05: SERVFAIL


# nslookup node01
Server:        127.0.0.53
Address:    127.0.0.53#53

Non-authoritative answer:
Name:    node01.fritz.box
Address: 192.168.2.11
 
Thanks for the hint. I found it. The problem was I assigned a constant ip in the router for the dropbear login during startup. This contradicts to the static ip setting for the bridge.