Fc34 systemd resolved?

Üdv!

Most akkor a fc34 esetén hol kell beállítani a dns feloldást? A /etc/resolv.conf nem él, csak egy link, de nincs DNS feloldás...

Az /etc/systemd/resolved.conf-ban bent van: DNS=8.8.8.8 8.8.4.4

 

 couldn't resolve host name google.com

Hozzászólások

resolvectl mit mondd ?

Fedora 42, Thinkpad x280

~# resolvectl

Global
       Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
     DNS Servers: 8.8.8.8 8.8.4.4

Link 2 (enp5s0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 3 (enp6s0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 4 (br0)
Current Scopes: none
     Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
   DNS Servers: 10.0.0.15 8.8.8.8
Failed to get link data for 5: Unknown object '/org/freedesktop/resolve1/link/_35'.
Failed to get link data for 6: Unknown object '/org/freedesktop/resolve1/link/_36'.
Failed to get link data for 7: Unknown object '/org/freedesktop/resolve1/link/_37'.

resolv.conf

~# cat /etc/resolv.conf

nameserver 127.0.0.53
options edns0 trust-ad
search .

Nem egészen értem, hogy miért nem veszi át a beállított DNS-t (8.8.8.8 8.8.4.4) a resolv.conf-ba.

Szerkesztve: 2021. 08. 25., sze – 10:37

Most működik, úgy tűnik:

# /etc/systemd/resolved.conf

DNS=8.8.8.8 8.8.4.4
Domains=~.

/etc/resolv.conf:

nameserver 127.0.0.53
options edns0 trust-ad
search .

 

A systemd-resolved service aktív.

 

~# resolvectl status
Global
       Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
     DNS Servers: 8.8.8.8 8.8.4.4
      DNS Domain: ~.

Link 2 (enp5s0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 3 (enp6s0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 4 (br0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
     Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
   DNS Servers: 10.0.0.15 8.8.8.8

Link 5 (lxcbr0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 6 (vethsp3ELX)
Current Scopes: LLMNR/IPv6
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 7 (virbr0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

 

~# resolvectl dns
Global: 8.8.8.8 8.8.4.4
Link 2 (enp5s0):
Link 3 (enp6s0):
Link 4 (br0): 10.0.0.15 8.8.8.8
Link 5 (lxcbr0):
Link 6 (vethsp3ELX):
Link 7 (virbr0):