Bonjour,
Sur F32-64, pas de résolution DNS.
uname -ar
Linux localhost.localdomain 5.7.12-200.fc32.x86_64 #1 SMP Sat Aug 1 16:13:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/systemd/resolved.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
DNS=1.1.1.1 1.0.0.1
#FallbackDNS=1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844
#Domains=
#LLMNR=yes
#MulticastDNS=yes
DNSSEC=allow-downgrade
DNSOverTLS=yes
#Cache=yes
#DNSStubListener=yes
#ReadEtcHosts=yes
# ping google.com
ping: google.com: Nom ou service inconnu
Je précise : j'ai enlevé Network-Manager, puis configuré le fichier :
systemctl list-unit-files | grep NetworkManager
NetworkManager-dispatcher.service disabled enabled
NetworkManager-wait-online.service disabled enabled
NetworkManager.service disabled enabled
Je peux pinguer une @IP extérieure, réseau interne mais pas un nom de domaine extérieur :
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=3.60 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=3.32 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=3.17 ms
Service résolution DNS activé :
systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-08-09 18:42:30 CEST; 2 days ago
Docs: man:systemd-resolved.service(8)
https://www.freedesktop.org/wiki/Software/systemd/resolved
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
Main PID: 1022 (systemd-resolve)
Status: "Processing requests..."
Tasks: 1 (limit: 9494)
Memory: 7.6M
CPU: 99ms
CGroup: /system.slice/systemd-resolved.service
└─1022 /usr/lib/systemd/systemd-resolved
août 09 18:42:30 localhost.localdomain systemd[1]: Starting Network Name Resolution...
août 09 18:42:30 localhost.localdomain systemd-resolved[1022]: Positive Trust Anchors:
août 09 18:42:30 localhost.localdomain systemd-resolved[1022]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
août 09 18:42:30 localhost.localdomain systemd-resolved[1022]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-add>
août 09 18:42:30 localhost.localdomain systemd-resolved[1022]: Defaulting to hostname 'linux'.
août 09 18:42:30 localhost.localdomain systemd[1]: Started Network Name Resolution.
lines 1-21/21 (END)
# dig www.google.com
; <<>> DiG 9.11.21-RedHat-9.11.21-1.fc32 <<>> www.google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
# systemd-resolve --status
Global
LLMNR setting: yes
MulticastDNS setting: yes
DNSOverTLS setting: yes
DNSSEC setting: allow-downgrade
DNSSEC supported: yes
DNS Servers: 1.1.1.1
1.0.0.1
Fallback DNS Servers: 1.1.1.1
8.8.8.8
1.0.0.1
8.8.4.4
2606:4700:4700::1111
2001:4860:4860::8888
2606:4700:4700::1001
2001:4860:4860::8844
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
168.192.in-addr.arpa
17.172.in-addr.arpa
18.172.in-addr.arpa
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp2s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: yes
DNSSEC setting: allow-downgrade
DNSSEC supported: yes
Current DNS Server: 1.1.1.1
DNS Servers: 1.1.1.1
1.0.0.1
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 48:5b:39:af:20:21 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.200/24 brd 192.168.1.255 scope global enp2s0
valid_lft forever preferred_lft forever
inet6 fe80::4a5b:39ff:feaf:2021/64 scope link
valid_lft forever preferred_lft forever
nano /etc/systemd/network/enp2s0.network
[Match]
Name=enp2s0
[Network]
Address=192.168.1.200/24
DNS=1.1.1.1
DNS=1.0.0.1
NTP=pool.ntp.org
[Route]
#Destination=192.168.0.0/24
Gateway=192.168.1.1
nano /etc/resolv.conf.head
nameserver 127.0.0.1
resolvectl query fedoraproject.org
fedoraproject.org: 2604:1580:fe00:0:dead:beef:cafe:fed1 -- link: enp2s0
2605:bc80:3010:600:dead:beef:cafe:feda -- link: enp2s0
2610:28:3090:3001:dead:beef:cafe:fed3 -- link: enp2s0
2620:52:3:1:dead:beef:cafe:fed6 -- link: enp2s0
2620:52:3:1:dead:beef:cafe:fed7 -- link: enp2s0
2605:bc80:3010:600:dead:beef:cafe:fed9 -- link: enp2s0
8.43.85.67 -- link: enp2s0
38.145.60.20 -- link: enp2s0
38.145.60.21 -- link: enp2s0
67.219.144.68 -- link: enp2s0
140.211.169.196 -- link: enp2s0
140.211.169.206 -- link: enp2s0
152.19.134.142 -- link: enp2s0
152.19.134.198 -- link: enp2s0
209.132.190.2 -- link: enp2s0
8.43.85.73 -- link: enp2s0
-- Information acquired via protocol DNS in 121.2ms.
-- Data is authenticated: yes
systemctl status systemd-networkd.service
● systemd-networkd.service - Network Service
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-08-12 17:30:24 CEST; 12s ago
TriggeredBy: ● systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
Main PID: 7154 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 9494)
Memory: 1.6M
CPU: 49ms
CGroup: /system.slice/systemd-networkd.service
└─7154 /usr/lib/systemd/systemd-networkd
août 12 17:30:24 localhost.localdomain systemd[1]: Stopping Network Service...
août 12 17:30:24 localhost.localdomain systemd[1]: systemd-networkd.service: Succeeded.
août 12 17:30:24 localhost.localdomain systemd[1]: Stopped Network Service.
août 12 17:30:24 localhost.localdomain systemd[1]: Starting Network Service...
août 12 17:30:24 localhost.localdomain systemd-networkd[7154]: enp2s0: Gained IPv6LL
août 12 17:30:24 localhost.localdomain systemd-networkd[7154]: Enumeration completed
août 12 17:30:24 localhost.localdomain systemd[1]: Started Network Service.
août 12 17:30:24 localhost.localdomain systemd-networkd[7154]: enp2s0: IPv6 successfully enabled
Toute idée bienvenue .