You are not logged in.
This just happened today. When I `sudo pacman -Syu`, I got a bunch of messages in the same format:
error: failed retrieving file 'core.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
But in the meantime, my browser works. Dig also works:
; <<>> DiG 9.13.7 <<>> mirrors.163.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43270
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mirrors.163.com. IN A
;; ANSWER SECTION:
mirrors.163.com. 1368 IN A 59.111.0.251
;; Query time: 6 msec
;; SERVER: 192.168.3.1#53(192.168.3.1)
;; WHEN: Sat Mar 23 13:07:36 CST 2019
;; MSG SIZE rcvd: 49
Where should I check? I have to put the IP in /etc/hosts to make pacman working.
Last edited by magicloud (2019-03-23 05:16:59)
Offline
Have you tried using reflector to sort your mirror list? Or at least tried another mirror?
Moving to NC...
Offline
Have you tried using reflector to sort your mirror list? Or at least tried another mirror?
Moving to NC...
Sorry did not make this clear. ALL my mirrors are unresolvable.
Offline
Please paste, in code tags, the output of `pacman -Syu --debug`.
Offline
debug: pacman v5.1.3 - libalpm v11.0.3
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 79: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 85: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': http://mirrors.163.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.xjtu.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.ustc.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.tuna.tsinghua.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.lzu.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.shu.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.zju.edu.cn/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.neusoft.edu.cn/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': http://mirrors.163.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.xjtu.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.ustc.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.tuna.tsinghua.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.lzu.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.shu.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.zju.edu.cn/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.neusoft.edu.cn/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': http://mirrors.163.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.xjtu.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.ustc.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.tuna.tsinghua.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.lzu.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.shu.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.zju.edu.cn/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.neusoft.edu.cn/archlinux/community/os/x86_64
:: Synchronizing package databases...
debug: url: http://mirrors.163.com/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
debug: url: http://mirrors.xjtu.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.xjtu.edu.cn : Could not resolve host: mirrors.xjtu.edu.cn
debug: url: http://mirrors.ustc.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
debug: url: http://mirrors.tuna.tsinghua.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
debug: url: http://mirror.lzu.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirror.lzu.edu.cn : Could not resolve host: mirror.lzu.edu.cn
debug: url: http://mirrors.shu.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.shu.edu.cn : Could not resolve host: mirrors.shu.edu.cn
debug: url: http://mirrors.zju.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.zju.edu.cn : Could not resolve host: mirrors.zju.edu.cn
debug: url: http://mirrors.neusoft.edu.cn/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1553183106
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'core.db' from mirrors.neusoft.edu.cn : Could not resolve host: mirrors.neusoft.edu.cn
debug: failed to sync db: invalid url for server
error: failed to update core (invalid url for server)
debug: url: http://mirrors.163.com/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
debug: url: http://mirrors.xjtu.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.xjtu.edu.cn : Could not resolve host: mirrors.xjtu.edu.cn
debug: url: http://mirrors.ustc.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
debug: url: http://mirrors.tuna.tsinghua.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
debug: url: http://mirror.lzu.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirror.lzu.edu.cn : Could not resolve host: mirror.lzu.edu.cn
debug: url: http://mirrors.shu.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.shu.edu.cn : Could not resolve host: mirrors.shu.edu.cn
debug: url: http://mirrors.zju.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.zju.edu.cn : Could not resolve host: mirrors.zju.edu.cn
debug: url: http://mirrors.neusoft.edu.cn/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1553300440
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'extra.db' from mirrors.neusoft.edu.cn : Could not resolve host: mirrors.neusoft.edu.cn
debug: failed to sync db: invalid url for server
error: failed to update extra (invalid url for server)
debug: url: http://mirrors.163.com/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.163.com : Could not resolve host: mirrors.163.com
debug: url: http://mirrors.xjtu.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.xjtu.edu.cn : Could not resolve host: mirrors.xjtu.edu.cn
debug: url: http://mirrors.ustc.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
debug: url: http://mirrors.tuna.tsinghua.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
debug: url: http://mirror.lzu.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirror.lzu.edu.cn : Could not resolve host: mirror.lzu.edu.cn
debug: url: http://mirrors.shu.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.shu.edu.cn : Could not resolve host: mirrors.shu.edu.cn
debug: url: http://mirrors.zju.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.zju.edu.cn : Could not resolve host: mirrors.zju.edu.cn
debug: url: http://mirrors.neusoft.edu.cn/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1553300516
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 6 from transfer
error: failed retrieving file 'community.db' from mirrors.neusoft.edu.cn : Could not resolve host: mirrors.neusoft.edu.cn
debug: failed to sync db: invalid url for server
error: failed to update community (invalid url for server)
error: failed to synchronize all databases
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'
Offline
Is a XferCommand specified in /etc/pacman.conf?
What is the output of the following
pacman -Q curl
/usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db
Offline
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
Looks like something is wrong with your databases, not the network .
post
ls - l /var/lib/pacman/sync
this is how that folder looks on my system :
$ ls -l /var/lib/pacman/sync/
total 35952
-rw-r--r-- 1 root root 5091472 23 mrt 14:46 community.db
-rw-r--r-- 1 root root 19416423 12 feb 10:28 community.files
-rw-r--r-- 1 root root 136938 23 mrt 09:30 core.db
-rw-r--r-- 1 root root 824621 11 feb 23:08 core.files
-rw-r--r-- 1 root root 1738715 23 mrt 11:08 extra.db
-rw-r--r-- 1 root root 9074529 12 feb 10:55 extra.files
-rw-r--r-- 1 root root 9248 14 jan 18:21 llvm-svn.db
-rw-r--r-- 1 root root 566 14 jan 18:21 llvm-svn.db.sig
-rw-r--r-- 1 root root 9248 14 jan 18:21 llvm-svn.files
-rw-r--r-- 1 root root 566 14 jan 18:21 llvm-svn.files.sig
-rw-r--r-- 1 root root 3128 9 mrt 14:23 lonewolf.db
-rw-r--r-- 1 root root 7796 8 feb 21:41 lonewolf.files
-rw-r--r-- 1 root root 178976 21 mrt 21:53 multilib.db
-rw-r--r-- 1 root root 289285 11 feb 23:08 multilib.files
[panoramix@silverbolt ~]$
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
@Lone_Wolf The arch official repositories are not signed so the signature files should be missing as your listing shows
Offline
Offline
Is a XferCommand specified in /etc/pacman.conf?
What is the output of the followingpacman -Q curl /usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db
curl 7.64.0-9
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
Looks like something is wrong with your databases, not the network .
post
ls - l /var/lib/pacman/sync
this is how that folder looks on my system :
$ ls -l /var/lib/pacman/sync/ total 35952 -rw-r--r-- 1 root root 5091472 23 mrt 14:46 community.db -rw-r--r-- 1 root root 19416423 12 feb 10:28 community.files -rw-r--r-- 1 root root 136938 23 mrt 09:30 core.db -rw-r--r-- 1 root root 824621 11 feb 23:08 core.files -rw-r--r-- 1 root root 1738715 23 mrt 11:08 extra.db -rw-r--r-- 1 root root 9074529 12 feb 10:55 extra.files -rw-r--r-- 1 root root 9248 14 jan 18:21 llvm-svn.db -rw-r--r-- 1 root root 566 14 jan 18:21 llvm-svn.db.sig -rw-r--r-- 1 root root 9248 14 jan 18:21 llvm-svn.files -rw-r--r-- 1 root root 566 14 jan 18:21 llvm-svn.files.sig -rw-r--r-- 1 root root 3128 9 mrt 14:23 lonewolf.db -rw-r--r-- 1 root root 7796 8 feb 21:41 lonewolf.files -rw-r--r-- 1 root root 178976 21 mrt 21:53 multilib.db -rw-r--r-- 1 root root 289285 11 feb 23:08 multilib.files [panoramix@silverbolt ~]$
I noticed that. But if I put the mirror IP in /etc/hosts, it just worked.
-rw-r--r-- 1 root root 4.9M Mar 24 02:55 community.db
-rw-r--r-- 1 root root 19M Mar 7 07:22 community.files
-rw-r--r-- 1 root root 134K Mar 23 16:30 core.db
-rw-r--r-- 1 root root 807K Mar 7 00:33 core.files
-rw-r--r-- 1 root root 1.7M Mar 23 18:08 extra.db
-rw-r--r-- 1 root root 8.8M Mar 7 07:17 extra.files
Offline
How is your networking configured?
It is WPA2 Wifi, DHCP with static TCP DNS.
Offline
That doesn't sufficient describe the conig.
1. you forgot to run loqs' curl command (pacman uses curl, so this should narrow the problem)
2.
ps aux | grep resolved
systemctl list-unit-files --state=enable
ping mirrors.163.com
nslookup mirrors.163.com
Online
Is a XferCommand specified in /etc/pacman.conf?
What is the output of the followingpacman -Q curl /usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db
Sorry, forgot this output:
/usr/bin/curl -L -C - -f -o /dev/null http://mirrors.163.com/archlinux/core/os/x86_64/core.db
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: mirrors.163.com
That doesn't sufficient describe the conig.
1. you forgot to run loqs' curl command (pacman uses curl, so this should narrow the problem)
2.ps aux | grep resolved systemctl list-unit-files --state=enable ping mirrors.163.com nslookup mirrors.163.com
$ ps aux | grep resolved
shida 28159 0.0 0.0 6272 2300 pts/1 S+ 14:52 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn resolved
$ systemctl list-unit-files --state=enabled
UNIT FILE STATE
akbl.service enabled
autovt@.service enabled
display-manager.service enabled
docker.service enabled
getty@.service enabled
gpm.service enabled
kubelet.service enabled
polipo.service enabled
sshd.service enabled
sysstat.service enabled
systemd-swap.service enabled
v2ray.service enabled
xdm.service enabled
remote-fs.target enabled
sysstat-collect.timer enabled
sysstat-summary.timer enabled
16 unit files listed.
$ ping mirrors.163.com
ping: mirrors.163.com: Temporary failure in name resolution
$ nslookup mirrors.163.com
Server: 223.5.5.5
Address: 223.5.5.5#53
Non-authoritative answer:
Name: mirrors.163.com
Address: 59.111.0.251
I think all problem relates to my TCP DNS setup. But I could not see why Chromium works with same setup (I tested with brand new FQDN to rule out Chromium resolving cache).
Last edited by magicloud (2019-03-24 08:17:46)
Offline
systemctl list-unit-files --state=enable
That's supposed to be enabled.
Offline
magicloud wrote:systemctl list-unit-files --state=enable
That's supposed to be enabled.
No wonder there was no output.... Thanks.
Offline
How are you configuring your network?
I possibly know what the issue is, but I need to know how you're managing everything.
Offline
How are you configuring your network?
I possibly know what the issue is, but I need to know how you're managing everything.
Sorry, could you list what exactly data you need? I may not follow.
Here is something:
The network is connected and configured by `systemctl start wpa_supplicant@wlp13s0 dhcpcd@wlp13s0`.
/etc/resolvconf.conf contains only two non-commented lines:
resolv_conf=/etc/resolv.conf
resolv_conf_options="use-vc"
Offline
Sorry about the missing "d"
The failing ping suggest the issue to be in /etc/nsswitch.conf, please post that.
Also elaborate on your DNS config - why and how do you (enforce?) requests over TCP?
Online
Sorry about the missing "d"
The failing ping suggest the issue to be in /etc/nsswitch.conf, please post that.
Also elaborate on your DNS config - why and how do you (enforce?) requests over TCP?
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.
passwd: files mymachines systemd
group: files mymachines systemd
shadow: files
publickey: files
hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files
Should be the default content, I never touched it.
Offline
Yes, is.
cat /etc/resolv.conf
only says
nameserver 223.5.5.5
?
Also
elaborate on your DNS config - why and how do you (enforce?) requests over TCP?
Online
Yes, is.
cat /etc/resolv.conf
only says
nameserver 223.5.5.5
?
Also
seth wrote:elaborate on your DNS config - why and how do you (enforce?) requests over TCP?
$ cat /etc/resolv.conf
nameserver 192.168.3.1
options use-vc
And "use-vc" is all I set to get TCP DNS. For the "why", I am trying to rule out some wong result issue.
Offline
192.168.3.1 is not the nameserver used by nslookup (but probably your router?)
I'd try replacing that w/ either 223.5.5.5 (seems some Chinese ISP) or eg. 8.8.8.8 (google) or 1.1.1.1 (cloudflare)
Is 223.5.5.5 configured as backend in whatever 192.168.3.1 is and does the problem go away if you allow UDP requests in resolv.conf?
Online
192.168.3.1 is not the nameserver used by nslookup (but probably your router?)
I'd try replacing that w/ either 223.5.5.5 (seems some Chinese ISP) or eg. 8.8.8.8 (google) or 1.1.1.1 (cloudflare)Is 223.5.5.5 configured as backend in whatever 192.168.3.1 is and does the problem go away if you allow UDP requests in resolv.conf?
Ah, that is my mistake. I posted wrong result during test.
$ nslookup mirrors.163.com
Server: 192.168.3.1
Address: 192.168.3.1#53
Non-authoritative answer:
Name: mirrors.163.com
Address: 59.111.0.251
And yes, 223.5.5.5 was once the upstream DNS, also some others like 114.114.114.114. All problem gone if I just remove the "use-vc" option.
Last edited by magicloud (2019-03-24 15:17:19)
Offline
Let's see whether tcp queries work in general - and on what server:
dig +vc mirrors.163.com
dig @8.8.8.8 +vc mirrors.163.com
Online
Let's see whether tcp queries work in general - and on what server:
dig +vc mirrors.163.com dig @8.8.8.8 +vc mirrors.163.com
$ dig +vc mirrors.163.com
; <<>> DiG 9.13.7 <<>> +vc mirrors.163.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47348
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mirrors.163.com. IN A
;; ANSWER SECTION:
mirrors.163.com. 1436 IN A 59.111.0.251
;; Query time: 1 msec
;; SERVER: 192.168.3.1#53(192.168.3.1)
;; WHEN: Mon Mar 25 12:36:48 CST 2019
;; MSG SIZE rcvd: 49
I cannot access 8.8.8.8.
Offline