Kann einer der KH Entwickler hierzu Auskunft geben - ich bin jetzt wirklich etwas verwirrt

OK habs jetzt purged aber noch keinen reboot gemacht
Code: Select all
nameserver 127.0.0.53
options edns0 trust-ad
search .
Code: Select all
sudo systemctl start systemd-resolved
sudo systemctl enable systemd-resolved
reboot
Yap.Ralph wrote: ↑Sat 26. Nov 2022, 17:36OK habs jetzt purged aber noch keinen reboot gemacht
die /etc/resolv.conf ist weiterhin ein symlink aber der Inhalt hat sich jetzt geändert zu:sieht das bei dir auch so aus?Code: Select all
nameserver 127.0.0.53 options edns0 trust-ad search .
Den reboot, um zu testen, up das Setup rebootfest ist?Ralph wrote: ↑Sat 26. Nov 2022, 17:36
dann müsste ich ja quasi jetzt nur folgendes tun:Code: Select all
sudo systemctl start systemd-resolved sudo systemctl enable systemd-resolved reboot
Code: Select all
nameserver 185.12.64.2
nameserver 185.12.64.1
Klar.
Code: Select all
# cat /etc/systemd/resolved.conf
[Resolve]
DNS=202.61.245.65 2a03:4000:53:1bc:b83e:85ff:fe09:f8d0
FallbackDNS=212.227.160.159 2001:8d8:1801:701::1 202.61.245.65 2a03:4000:53:1bc:b83e:85ff:fe09:f8d0
Domains=24unix.net
DNSSEC=yes
DNSOverTLS=no
MulticastDNS=no
LLMNR=no
Cache=no-negative
DNSStubListener=yes
ReadEtcHosts=yes
Code: Select all
ls /etc/network/if-up.d
bind9 clamav-freshclam-ifupdown ethtool postfix
Zumindest ist es bei mir nicht drin.Ralph wrote: ↑Sat 26. Nov 2022, 18:22 hmm, ethtool hängt da noch drin - ist das richtig?
Code: Select all
ls /etc/network/if-up.d bind9 clamav-freshclam-ifupdown ethtool postfix
Code: Select all
# ls /etc/network/if-up.d
bind9 clamav-freshclam-ifupdown postfix
24unix wrote: ↑Sat 26. Nov 2022, 18:29Zumindest ist es bei mir nicht drin.Ralph wrote: ↑Sat 26. Nov 2022, 18:22 hmm, ethtool hängt da noch drin - ist das richtig?
Code: Select all
ls /etc/network/if-up.d bind9 clamav-freshclam-ifupdown ethtool postfix
Was steht denn in dem Script?Code: Select all
# ls /etc/network/if-up.d bind9 clamav-freshclam-ifupdown postfix
Code: Select all
cat /etc/network/if-up.d/ethtool
#!/bin/sh
ETHTOOL=/sbin/ethtool
test -x $ETHTOOL || exit 0
[ "$IFACE" != "lo" ] || exit 0
# Find settings with a given prefix and print them as they appeared in
# /etc/network/interfaces, only with the prefix removed.
# This actually prints each name and value on a separate line, but that
# doesn't matter to the shell.
gather_settings () {
set | sed -n "
/^IF_$1[A-Za-z0-9_]*=/ {
h; # hold line
s/^IF_$1//; s/=.*//; s/_/-/g; # get name without prefix
y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/; # lower-case
p;
g; # restore line
s/^[^=]*=//; s/^'\(.*\)'/\1/; # get value
p;
}"
}
# Gather together the mixed bag of settings applied with -s/--change
SETTINGS="\
${IF_LINK_SPEED:+ speed $IF_LINK_SPEED}\
${IF_LINK_DUPLEX:+ duplex $IF_LINK_DUPLEX}\
"
# WOL has an optional pass-key
set -- $IF_ETHERNET_WOL
SETTINGS="$SETTINGS${1:+ wol $1}${2:+ sopass $2}"
# Autonegotiation can be on|off or an advertising mask
case "$IF_ETHERNET_AUTONEG" in
'') ;;
on|off) SETTINGS="$SETTINGS autoneg $IF_ETHERNET_AUTONEG" ;;
*) SETTINGS="$SETTINGS autoneg on advertise $IF_ETHERNET_AUTONEG" ;;
esac
[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS
SETTINGS="$(gather_settings ETHERNET_PAUSE_)"
[ -z "$SETTINGS" ] || $ETHTOOL --pause "$IFACE" $SETTINGS
SETTINGS="$(gather_settings HARDWARE_IRQ_COALESCE_)"
[ -z "$SETTINGS" ] || $ETHTOOL --coalesce "$IFACE" $SETTINGS
SETTINGS="$(gather_settings HARDWARE_DMA_RING_)"
[ -z "$SETTINGS" ] || $ETHTOOL --set-ring "$IFACE" $SETTINGS
SETTINGS="$(gather_settings OFFLOAD_)"
[ -z "$SETTINGS" ] || $ETHTOOL --offload "$IFACE" $SETTINGS
Code: Select all
nameserver 127.0.0.53
options edns0 trust-ad
search
Code: Select all
nameserver 185.12.64.2
nameserver 185.12.64.1
Code: Select all
nameserver 127.0.0.53
options edns0 trust-ad
search
Entweder das, oder halt systemd-resolvd.Ralph wrote: ↑Sat 26. Nov 2022, 18:39
also ich finde derzeit überall zu neuen Debian & Ubuntu Distros, das resolvconf package erforderlich ist um die NS Settings permanent zu machen z.b.
https://linuxhint.com/update-resolv-conf-on-ubuntu/
Ja. Ist es ein ASCII File?Ralph wrote: ↑Sat 26. Nov 2022, 18:39
seltsam ist aber das vor dem reboot nach deinstallation von resolvconf, das ganze noch so ausgesehen hat:
nach einem reboot dann:Code: Select all
nameserver 127.0.0.53 options edns0 trust-ad search
Code: Select all
nameserver 185.12.64.2 nameserver 185.12.64.1
Code: Select all
cat /run/systemd/resolve/stub-resolv.conf
nameserver 185.12.64.2
nameserver 185.12.64.1
Was für ein DC?Ralph wrote: ↑Sat 26. Nov 2022, 18:57 das ist ja das Problemnach dem reboot wurden die likalen NS in der stub-resolv.conf geändert auf die externen vom datacenterCode: Select all
cat /run/systemd/resolve/stub-resolv.conf nameserver 185.12.64.2 nameserver 185.12.64.1
KVM - vermutlich werden hier die Ns iunter /etc/networks für systemd als Vorlage verwendet, obwohl wenn Bind vorhanden ist und läuft ...24unix wrote: ↑Sat 26. Nov 2022, 18:59Was für ein DC?Ralph wrote: ↑Sat 26. Nov 2022, 18:57 das ist ja das Problemnach dem reboot wurden die likalen NS in der stub-resolv.conf geändert auf die externen vom datacenterCode: Select all
cat /run/systemd/resolve/stub-resolv.conf nameserver 185.12.64.2 nameserver 185.12.64.1
Was für ein Virtualisierer?
Da würde ich mal googlen, ob Hetzner da irgendwas von Aussen "automatisiert".Ralph wrote: ↑Sat 26. Nov 2022, 19:07KVM - vermutlich werden hier die Ns iunter /etc/networks für systemd als Vorlage verwendet, obwohl wenn Bind vorhanden ist und läuft ...24unix wrote: ↑Sat 26. Nov 2022, 18:59Was für ein DC?Ralph wrote: ↑Sat 26. Nov 2022, 18:57 das ist ja das Problemnach dem reboot wurden die likalen NS in der stub-resolv.conf geändert auf die externen vom datacenterCode: Select all
cat /run/systemd/resolve/stub-resolv.conf nameserver 185.12.64.2 nameserver 185.12.64.1
Was für ein Virtualisierer?
aber warum verschindet der loakle NS komplett aus der resolv.conf?