View previous topic :: View next topic |
Author |
Message |
jockstrap1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Aug 2024 Posts: 6
|
Posted: Tue Aug 06, 2024 8:53 am Post subject: [Solved]DNS resolve fail |
|
|
I installed gentoo as server. I am using it with CLI. When I was installing KVM and some programs, DNS resolv sudden fail. At first, only wget and links failed but after a few hours, emerge get started to fail. /etc/resolv.d permission and nameservers are properly set-up. I checked dmesg but nothing special. I restart server but it fails again. The strange is that only resolving new DNS fails. Since I always ping gentoo.org to check connection, gentoo.org is cached on pc before problem happen. Ping at gentoo.org or with ip address works fine but trying with new address doesn't work. Here is output of emerge, wget and ping:
Code: | SERVER25 ~ # emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
!!! getaddrinfo failed for 'rsync.gentoo.org': [Errno -2] Name or service not known
>>> Starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
>>> Checking server timestamp ...
rsync: getaddrinfo: rsync.gentoo.org 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org
* IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Action: sync for repo: gentoo, returned code = 1 |
Code: | SERVER25 ~ # emerge --verbose virt-manager
* IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* Last emerge --sync was 32d 13h 28m 33s ago.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 3.55 s (backtrack: 0/20).
[ebuild N ] dev-python/argcomplete-3.3.0::gentoo USE="-test" PYTHON_TARGETS="python3_12 (-pypy3) -python3_10 -python3_11 (-python3_13)" 80 KiB
[ebuild N ] app-eselect/eselect-fontconfig-20220403::gentoo 0 KiB
[ebuild N ] x11-base/xorg-proto-2024.1::gentoo USE="-test" 0 KiB
[ebuild N ] dev-libs/vala-common-0.56.16::gentoo 0 KiB
[ebuild N ] app-arch/brotli-1.1.0:0/1::gentoo USE="-debug -python -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 (-python3_13)" 0 KiB
[ebuild N ] virtual/ttf-fonts-1-r2::gentoo 0 KiB
[ebuild N ] dev-lang/vala-0.56.16:0.56::gentoo USE="-test -valadoc" 0 KiB
[ebuild N ] media-libs/fontconfig-2.15.0:1.0::gentoo USE="nls -doc -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] net-libs/nghttp2-1.61.0:0/1.14::gentoo USE="systemd -debug -hpack-tools -jemalloc -static-libs -test -utils -xml" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] net-libs/libproxy-0.5.5::gentoo USE="introspection -duktape -gnome -gtk-doc -test -vala" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] gnome-base/gsettings-desktop-schemas-45.0::gentoo USE="introspection" 0 KiB
[ebuild N ] dev-libs/libburn-1.5.6-r1::gentoo USE="-debug -static-libs" 0 KiB
[ebuild N ] dev-libs/libisofs-1.5.6_p1-r1::gentoo USE="acl xattr zlib -debug -static-libs -verbose-debug" 0 KiB
[ebuild N ] x11-libs/cairo-1.18.0::gentoo USE="glib -X (-aqua) (-debug) -gtk-doc -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] app-emulation/libvirt-glib-5.0.0::gentoo USE="introspection vala -gtk-doc -test" 0 KiB
[ebuild N ] net-libs/glib-networking-2.78.1::gentoo USE="gnome libproxy ssl -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] dev-libs/libisoburn-1.5.6-r1::gentoo USE="acl readline xattr zlib -debug -external-filters -external-filters-setuid -frontend-optional -launch-frontend -launch-frontend-setuid -libedit -static-libs" 0 KiB
[ebuild N ] net-libs/libsoup-3.4.4:3.0::gentoo USE="brotli introspection ssl vala -gssapi -gtk-doc -samba -sysprof -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] dev-python/pycairo-1.26.0::gentoo USE="-debug -doc -examples -test" PYTHON_TARGETS="python3_12 (-pypy3) -python3_10 -python3_11" 0 KiB
[ebuild N ] sys-apps/osinfo-db-tools-1.11.0::gentoo USE="-test" 0 KiB
[ebuild N ] dev-python/pygobject-3.46.0-r1:3::gentoo USE="cairo -debug -examples -test" PYTHON_TARGETS="python3_12 (-pypy3) -python3_10 -python3_11 (-python3_13)" 0 KiB
[ebuild N ] sys-apps/osinfo-db-20240523::gentoo 0 KiB
[ebuild N ] sys-libs/libosinfo-1.11.0::gentoo USE="introspection vala -gtk-doc -test" 0 KiB
[ebuild N ] app-emulation/virt-manager-4.1.0-r1::gentoo USE="-gui -policykit -sasl -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 0 KiB
Total: 24 packages (24 new), Size of downloads: 80 KiB
>>> Verifying ebuild manifests
>>> Emerging (1 of 24) dev-python/argcomplete-3.3.0::gentoo
* Fetching files in the background.
* To view fetch progress, run in another terminal:
* tail -f /var/log/emerge-fetch.log
>>> Downloading 'rsync://ftp.iij.ad.jp/pub/linux/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
rsync: getaddrinfo: ftp.iij.ad.jp 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
>>> Downloading 'ftp://ftp.iij.ad.jp/pub/linux/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:43-- ftp://ftp.iij.ad.jp/pub/linux/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz
=> ‘/var/cache/distfiles/argcomplete-3.3.0.tar.gz.__download__’
Resolving ftp.iij.ad.jp... failed: Unknown host.
wget: unable to resolve host address ‘ftp.iij.ad.jp’
>>> Downloading 'https://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:43-- https://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz
Resolving ftp.jaist.ac.jp... failed: Unknown host.
wget: unable to resolve host address ‘ftp.jaist.ac.jp’
>>> Downloading 'ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:43-- ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz
=> ‘/var/cache/distfiles/argcomplete-3.3.0.tar.gz.__download__’
Resolving ftp.jaist.ac.jp... failed: Unknown host.
wget: unable to resolve host address ‘ftp.jaist.ac.jp’
>>> Downloading 'rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
rsync: getaddrinfo: ftp.jaist.ac.jp 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
>>> Downloading 'https://repo.jing.rocks/gentoo/distfiles/layout.conf'
--2024-08-06 08:38:43-- https://repo.jing.rocks/gentoo/distfiles/layout.conf
Resolving repo.jing.rocks... failed: Unknown host.
wget: unable to resolve host address ‘repo.jing.rocks’
!!! Couldn't download '.layout.conf.repo.jing.rocks'. Aborting.
>>> Downloading 'https://repo.jing.rocks/gentoo/distfiles/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:43-- https://repo.jing.rocks/gentoo/distfiles/argcomplete-3.3.0.tar.gz
Resolving repo.jing.rocks... failed: Unknown host.
wget: unable to resolve host address ‘repo.jing.rocks’
>>> Downloading 'rsync://repo.jing.rocks/gentoo/distfiles/layout.conf'
rsync: getaddrinfo: repo.jing.rocks 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
No digest file available and download failed.
!!! Couldn't download '.layout.conf.repo.jing.rocks'. Aborting.
>>> Downloading 'rsync://repo.jing.rocks/gentoo/distfiles/argcomplete-3.3.0.tar.gz'
rsync: getaddrinfo: repo.jing.rocks 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
>>> Downloading 'https://ftp.riken.jp/Linux/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:44-- https://ftp.riken.jp/Linux/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz
Resolving ftp.riken.jp... failed: Unknown host.
wget: unable to resolve host address ‘ftp.riken.jp’
>>> Downloading 'rsync://ftp.riken.jp/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
rsync: getaddrinfo: ftp.riken.jp 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
>>> Downloading 'https://ftp.kaist.ac.kr/pub/gentoo/distfiles/layout.conf'
--2024-08-06 08:38:44-- https://ftp.kaist.ac.kr/pub/gentoo/distfiles/layout.conf
Resolving ftp.kaist.ac.kr... failed: Unknown host.
wget: unable to resolve host address ‘ftp.kaist.ac.kr’
!!! Couldn't download '.layout.conf.ftp.kaist.ac.kr'. Aborting.
>>> Downloading 'https://ftp.kaist.ac.kr/pub/gentoo/distfiles/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:44-- https://ftp.kaist.ac.kr/pub/gentoo/distfiles/argcomplete-3.3.0.tar.gz
Resolving ftp.kaist.ac.kr... failed: Unknown host.
wget: unable to resolve host address ‘ftp.kaist.ac.kr’
>>> Downloading 'ftp://ftp.kaist.ac.kr/gentoo/distfiles/layout.conf'
--2024-08-06 08:38:44-- ftp://ftp.kaist.ac.kr/gentoo/distfiles/layout.conf
=> ‘/var/cache/distfiles/.layout.conf.ftp.kaist.ac.kr.__download__’
Resolving ftp.kaist.ac.kr... failed: Unknown host.
wget: unable to resolve host address ‘ftp.kaist.ac.kr’
!!! Couldn't download '.layout.conf.ftp.kaist.ac.kr'. Aborting.
>>> Downloading 'ftp://ftp.kaist.ac.kr/gentoo/distfiles/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:44-- ftp://ftp.kaist.ac.kr/gentoo/distfiles/argcomplete-3.3.0.tar.gz
=> ‘/var/cache/distfiles/argcomplete-3.3.0.tar.gz.__download__’
Resolving ftp.kaist.ac.kr... failed: Unknown host.
wget: unable to resolve host address ‘ftp.kaist.ac.kr’
>>> Downloading 'rsync://ftp.kaist.ac.kr/gentoo/distfiles/layout.conf'
rsync: getaddrinfo: ftp.kaist.ac.kr 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
No digest file available and download failed.
!!! Couldn't download '.layout.conf.ftp.kaist.ac.kr'. Aborting.
>>> Downloading 'rsync://ftp.kaist.ac.kr/gentoo/distfiles/argcomplete-3.3.0.tar.gz'
rsync: getaddrinfo: ftp.kaist.ac.kr 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]
>>> Downloading 'https://ftp.lanet.kr/pub/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:45-- https://ftp.lanet.kr/pub/gentoo/distfiles/b8/argcomplete-3.3.0.tar.gz
Resolving ftp.lanet.kr... 121.160.237.73
Connecting to ftp.lanet.kr|121.160.237.73|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-08-06 08:38:45 ERROR 404: Not Found.
>>> Downloading 'https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-3.3.0.tar.gz'
--2024-08-06 08:38:45-- https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-3.3.0.tar.gz
Resolving files.pythonhosted.org... failed: Unknown host.
wget: unable to resolve host address ‘files.pythonhosted.org’
!!! Couldn't download 'argcomplete-3.3.0.tar.gz'. Aborting.
>>> Failed to emerge dev-python/argcomplete-3.3.0, Log file:
|
Code: | SERVER25 ~ # wget https://github.com/home-assistant/operating-system/releases/download/12.4/haos_ova-12.4.qcow2.xz
--2024-08-06 08:39:21-- http://github.com/home-assistant/operating-system/releases/download/12.4/haos_ova-12.4.qcow2.xz
Resolving github.com... failed: Unknown host.
wget: unable to resolve host address ‘github.com' |
Code: | SERVER25 ~ # ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=49 time=3.41 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=49 time=2.99 ms
^C
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 2.988/3.198/3.408/0.210 ms
SERVER25 ~ # ping gentoo.org
PING gentoo.org (146.75.109.91) 56(84) bytes of data.
64 bytes from 146.75.109.91: icmp_seq=1 ttl=40 time=221 ms
64 bytes from 146.75.109.91: icmp_seq=2 ttl=40 time=220 ms
^C
--- gentoo.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 219.969/220.595/221.222/0.626 ms
SERVER25 ~ # ping github.com
ping: github.com: Name or service not known |
I think it started to fail after emerging qemu and libvirt
Since my network doesn't support IPv6, I think it because of dnsmasq USE option 'ipv6'. dnsmasq was automatically installed while emerging libvirt. But emerge fail with require of USE flags. So I add the USE flags. Here is "/etc/portage/package.use/libvirt" :
Code: | # required by app-emulation/libvirt-10.3.0-r1::gentoo[virt-network]
# required by dev-python/libvirt-python-10.3.0::gentoo
>=net-dns/dnsmasq-2.90 script ipv6
# required by app-crypt/swtpm-0.8.2::gentoo
# required by app-emulation/libvirt-10.3.0-r1::gentoo[qemu]
# required by dev-python/libvirt-python-10.3.0::gentoo
>=net-libs/gnutls-3.8.0 tools pkcs11 |
* Notice: My emerge mirror servers are just fine. My PC is something wrong.
Last edited by jockstrap1 on Fri Aug 09, 2024 7:29 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 22382
|
Posted: Tue Aug 06, 2024 11:19 am Post subject: |
|
|
Welcome to the forums.
What is the output of cat -n /etc/resolv.conf ; dig rsync.gentoo.org ; dig rsync.gentoo.org @8.8.8.8? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jockstrap1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Aug 2024 Posts: 6
|
Posted: Tue Aug 06, 2024 1:56 pm Post subject: |
|
|
Hu wrote: | Welcome to the forums.
What is the output of cat -n /etc/resolv.conf ; dig rsync.gentoo.org ; dig rsync.gentoo.org @8.8.8.8? |
Code: | SERVER25 ~ # cat -n /etc/resolv.conf
1 nameserver 1.1.1.1
2 nameserver 1.0.0.1 |
Code: | SERVER25 ~ # ping rsync.gentoo.org
PING rsync.gentoo.org (89.238.71.6) 56(84) bytes of data.
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=1 ttl=48 time=296 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=2 ttl=48 time=296 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=3 ttl=48 time=295 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=4 ttl=48 time=296 ms
^C
--- rsync.gentoo.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 294.975/295.658/296.121/0.455 ms
SERVER25 ~ # ping rsync.gentoo.org @8.8.8.8
ping: @8.8.8.8: Name or service not known |
Actually, I am not sure that you are meaning for me to try "ping rsync.gentoo.org @8.8.8.8", but here is result. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chiitoo Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1982424713654a257e54ae4.jpg)
Joined: 28 Feb 2010 Posts: 2670 Location: Here and Away Again
|
Posted: Tue Aug 06, 2024 3:15 pm Post subject: |
|
|
jockstrap1 wrote: | Hu wrote: | Welcome to the forums.
What is the output of cat -n /etc/resolv.conf ; dig rsync.gentoo.org ; dig rsync.gentoo.org @8.8.8.8? |
Code: | SERVER25 ~ # cat -n /etc/resolv.conf
1 nameserver 1.1.1.1
2 nameserver 1.0.0.1 |
Code: | SERVER25 ~ # ping rsync.gentoo.org
PING rsync.gentoo.org (89.238.71.6) 56(84) bytes of data.
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=1 ttl=48 time=296 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=2 ttl=48 time=296 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=3 ttl=48 time=295 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=4 ttl=48 time=296 ms
^C
--- rsync.gentoo.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 294.975/295.658/296.121/0.455 ms
SERVER25 ~ # ping rsync.gentoo.org @8.8.8.8
ping: @8.8.8.8: Name or service not known |
Actually, I am not sure that you are meaning for me to try "ping rsync.gentoo.org @8.8.8.8", but here is result. |
That's 'dig', not 'ping'. :]
Hu wrote: | Welcome to the forums. |
_________________ Kindest of regardses. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jockstrap1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Aug 2024 Posts: 6
|
Posted: Tue Aug 06, 2024 3:21 pm Post subject: |
|
|
Chiitoo wrote: | jockstrap1 wrote: | Hu wrote: | Welcome to the forums.
What is the output of cat -n /etc/resolv.conf ; dig rsync.gentoo.org ; dig rsync.gentoo.org @8.8.8.8? |
Code: | SERVER25 ~ # cat -n /etc/resolv.conf
1 nameserver 1.1.1.1
2 nameserver 1.0.0.1 |
Code: | SERVER25 ~ # ping rsync.gentoo.org
PING rsync.gentoo.org (89.238.71.6) 56(84) bytes of data.
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=1 ttl=48 time=296 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=2 ttl=48 time=296 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=3 ttl=48 time=295 ms
64 bytes from turnstone.gentoo.org (89.238.71.6): icmp_seq=4 ttl=48 time=296 ms
^C
--- rsync.gentoo.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 294.975/295.658/296.121/0.455 ms
SERVER25 ~ # ping rsync.gentoo.org @8.8.8.8
ping: @8.8.8.8: Name or service not known |
Actually, I am not sure that you are meaning for me to try "ping rsync.gentoo.org @8.8.8.8", but here is result. |
That's 'dig', not 'ping'. :]
Hu wrote: | Welcome to the forums. |
|
It says:
Code: | SERVER25 ~ # dig rsync.gentoo.org
-bash: dig: command not found |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Chiitoo Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1982424713654a257e54ae4.jpg)
Joined: 28 Feb 2010 Posts: 2670 Location: Here and Away Again
|
Posted: Tue Aug 06, 2024 4:29 pm Post subject: |
|
|
It's a part of the 'net-dns/bind-tools' package (I should have mentioned that, too, since I guessed it was somewhat likely that you would not have it yet). _________________ Kindest of regardses. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jockstrap1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Aug 2024 Posts: 6
|
Posted: Wed Aug 07, 2024 10:24 am Post subject: |
|
|
Chiitoo wrote: | It's a part of the 'net-dns/bind-tools' package (I should have mentioned that, too, since I guessed it was somewhat likely that you would not have it yet). |
I add these on /etc/hosts first to emerge net-dns/bind-tools :
Code: | 178.249.213.2 distfiles.gentoo.org
89.238.71.4 keys.gentoo.org
89.238.71.6 rsync.gentoo.org |
After emerging tools, I remove them from hosts file. Then I command 'cat -n /etc/resolv.conf ; dig rsync.gentoo.org ; dig rsync.gentoo.org @8.8.8.8'
Code: | SERVER25 ~ # cat -n /etc/resolv.conf ; dig rsync.gentoo.org ; dig rsync.gentoo.org @8.8.8.8
1 nameserver 1.1.1.1
2 nameserver 1.0.0.1
; <<>> DiG 9.16.48 <<>> rsync.gentoo.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62942
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;rsync.gentoo.org. IN A
;; ANSWER SECTION:
rsync.gentoo.org. 256 IN A 89.238.71.6
;; Query time: 6 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Wed Aug 07 10:19:27 KST 2024
;; MSG SIZE rcvd: 61
; <<>> DiG 9.16.48 <<>> rsync.gentoo.org @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19967
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;rsync.gentoo.org. IN A
;; ANSWER SECTION:
rsync.gentoo.org. 98 IN A 89.238.71.6
;; Query time: 63 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Aug 07 10:19:27 KST 2024
;; MSG SIZE rcvd: 61 |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nicop n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Apr 2014 Posts: 67
|
Posted: Wed Aug 07, 2024 11:47 am Post subject: |
|
|
Maybe a bad order in gai.conf ?
What's results when changing the value from 10 to 100 for this line :
Code: | precedence ::ffff:0:0/96 10 |
What is the output of ip -6 addr ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
user Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 08 Feb 2004 Posts: 209
|
Posted: Thu Aug 08, 2024 9:50 am Post subject: |
|
|
Or broken GNU C library environment maybe.
Try and post output of
Code: | # getent ahosts rsync.gentoo.org
# sudo -u portage -- getent ahosts rsync.gentoo.org
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jockstrap1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Aug 2024 Posts: 6
|
Posted: Fri Aug 09, 2024 6:30 am Post subject: |
|
|
Since all lines were started with #, I add the line at gai.conf.
Here is the output:
Code: | SERVER25 ~ # ip -6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 fe80::2e0:91ff:fe29:ef30/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
SERVER25 ~ # getent ahosts rsync.gentoo.org
89.238.71.6 STREAM rsync.gentoo.org
89.238.71.6 DGRAM
89.238.71.6 RAW
2a00:1828:a00d:ffff::6 STREAM
2a00:1828:a00d:ffff::6 DGRAM
2a00:1828:a00d:ffff::6 RAW
SERVER25 ~ # sudo -u portage -- getent ahosts rsync.gentoo.org
89.238.71.6 STREAM rsync.gentoo.org
89.238.71.6 DGRAM
89.238.71.6 RAW
2a00:1828:a00d:ffff::6 STREAM
2a00:1828:a00d:ffff::6 DGRAM
2a00:1828:a00d:ffff::6 RAW |
Edit: wait, why there is IPv6 address at enp3s0? My router does not support IPv6 and I didn't set Ipv6 address manually. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nicop n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Apr 2014 Posts: 67
|
Posted: Fri Aug 09, 2024 7:01 am Post subject: |
|
|
jockstrap1 wrote: | Since all lines were started with #, I add the line at gai.conf. |
And did that have an effect ?
jockstrap1 wrote: | wait, why there is IPv6 address at enp3s0? My router does not support IPv6 and I didn't set Ipv6 address manually. |
This is a link-local address, non-routable. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jockstrap1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Aug 2024 Posts: 6
|
Posted: Fri Aug 09, 2024 7:28 am Post subject: |
|
|
nicop wrote: | jockstrap1 wrote: | Since all lines were started with #, I add the line at gai.conf. |
And did that have an effect ?
jockstrap1 wrote: | wait, why there is IPv6 address at enp3s0? My router does not support IPv6 and I didn't set Ipv6 address manually. |
This is a link-local address, non-routable. |
Yes, it was working ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nicop n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Apr 2014 Posts: 67
|
Posted: Fri Aug 09, 2024 7:52 am Post subject: |
|
|
Good.
Even with default values, it's necessary to uncomment the entire table and then modify the line for ::ffff:0:0/96.
Cf manpages :
Quote: | the presence of a single precedence line in the configuration file causes the default table to not be used. |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|