==> Building on luxio ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,115 100% 0.00kB/s 0:00:00 1,115 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) smartdns-42-1.log 204 100% 199.22kB/s 0:00:00 204 100% 199.22kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 952 bytes received 69 bytes 680.67 bytes/sec total size is 1,307 speedup is 1.28 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root30 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root30]...done ==> Making package: smartdns 42-1 (Thu Jul 27 04:32:49 2023) ==> Retrieving sources...  -> Found smartdns-42.tar.gz ==> Validating source files with sha512sums... smartdns-42.tar.gz ... Passed ==> Making package: smartdns 42-1 (Thu Jul 27 04:33:06 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (25) New Version Net Change core/argon2 20190702-5 0.08 MiB core/cryptsetup 2.6.1-3 2.50 MiB core/dbus 1.14.8-1 0.80 MiB core/device-mapper 2.03.21-1 0.67 MiB core/dnssec-anchors 20190629-3 0.00 MiB core/hwdata 0.372-1 8.80 MiB core/iptables 1:1.8.9-1 1.74 MiB extra/jemalloc 1:5.3.0-2 4.84 MiB core/kbd 2.6.1-1 3.01 MiB core/kmod 30-3.1 0.24 MiB core/libedit 20221030_3.1-1 0.24 MiB extra/libmaxminddb 1.7.1-1 0.04 MiB core/libmnl 1.0.5-1 0.03 MiB core/libnetfilter_conntrack 1.0.9-1 0.14 MiB core/libnfnetlink 1.0.2-1 0.04 MiB core/libnftnl 1.2.5-1 0.22 MiB core/libnl 3.7.0-3 1.69 MiB core/libnsl 2.0.0-3 0.06 MiB core/libpcap 1.10.4-1 0.58 MiB extra/libuv 1.46.0-1 0.55 MiB extra/lmdb 0.9.29-1 0.39 MiB core/popt 1.19-1 0.55 MiB extra/bind 9.18.16-1 11.11 MiB extra/gtest 1.13.0-1 2.00 MiB core/systemd 253.7-1 26.60 MiB Total Installed Size: 66.88 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing device-mapper... installing popt... installing argon2... installing cryptsetup... installing dbus... installing libmnl... installing libnftnl... installing libnl... installing libpcap... installing libnfnetlink... installing libnetfilter_conntrack... installing iptables... installing kbd... installing kmod... installing hwdata... installing systemd... warning: directory permissions differ on /var/log/journal/ filesystem: 755 package: 2755 Creating group 'sys' with GID 3. Creating group 'mem' with GID 8. Creating group 'ftp' with GID 11. Creating group 'mail' with GID 12. Creating group 'log' with GID 19. Creating group 'smmsp' with GID 25. Creating group 'proc' with GID 26. Creating group 'games' with GID 50. Creating group 'lock' with GID 54. Creating group 'network' with GID 90. Creating group 'floppy' with GID 94. Creating group 'scanner' with GID 96. Creating group 'power' with GID 98. Creating group 'nobody' with GID 65534. Creating group 'adm' with GID 999. Creating group 'wheel' with GID 998. Creating group 'utmp' with GID 997. Creating group 'audio' with GID 996. Creating group 'disk' with GID 995. Creating group 'input' with GID 994. Creating group 'kmem' with GID 993. Creating group 'kvm' with GID 992. Creating group 'lp' with GID 991. Creating group 'optical' with GID 990. Creating group 'render' with GID 989. Creating group 'sgx' with GID 988. Creating group 'storage' with GID 987. Creating group 'tty' with GID 5. Creating group 'uucp' with GID 986. Creating group 'video' with GID 985. Creating group 'users' with GID 984. Creating group 'systemd-journal' with GID 983. Creating group 'rfkill' with GID 982. Creating group 'bin' with GID 1. Creating user 'bin' (n/a) with UID 1 and GID 1. Creating group 'daemon' with GID 2. Creating user 'daemon' (n/a) with UID 2 and GID 2. Creating user 'mail' (n/a) with UID 8 and GID 12. Creating user 'ftp' (n/a) with UID 14 and GID 11. Creating group 'http' with GID 33. Creating user 'http' (n/a) with UID 33 and GID 33. Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. Creating group 'dbus' with GID 81. Creating user 'dbus' (System Message Bus) with UID 81 and GID 81. Creating group 'systemd-coredump' with GID 981. Creating user 'systemd-coredump' (systemd Core Dumper) with UID 981 and GID 981. Creating group 'systemd-network' with GID 980. Creating user 'systemd-network' (systemd Network Management) with UID 980 and GID 980. Creating group 'systemd-oom' with GID 979. Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 979 and GID 979. Creating group 'systemd-journal-remote' with GID 978. Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 978 and GID 978. Creating group 'systemd-resolve' with GID 977. Creating user 'systemd-resolve' (systemd Resolver) with UID 977 and GID 977. Creating group 'systemd-timesync' with GID 976. Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 976 and GID 976. Creating group 'tss' with GID 975. Creating user 'tss' (tss user for tpm2) with UID 975 and GID 975. Creating group 'uuidd' with GID 68. Creating user 'uuidd' (n/a) with UID 68 and GID 68. Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service. Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target. Optional dependencies for systemd libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote quota-tools: kernel-level quota management systemd-sysvcompat: symlink package to provide sysvinit binaries systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image polkit: allow administration as unprivileged user python: Unified Kernel Image with ukify curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed] gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed] libbpf: support BPF programs libfido2: unlocking LUKS2 volumes with FIDO2 token libp11-kit: support PKCS#11 [installed] tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed] installing gtest... Optional dependencies for gtest python: gmock generator installing dnssec-anchors... installing libedit... installing libmaxminddb... Optional dependencies for libmaxminddb geoip2-database: IP geolocation databases installing libnsl... installing libuv... installing lmdb... installing jemalloc... Optional dependencies for jemalloc perl: for jeprof [installed] installing bind... :: Running post-transaction hooks... (1/9) Creating system user accounts... Creating group 'named' with GID 40. Creating user 'named' (BIND DNS Server) with UID 40 and GID 40. (2/9) Updating journal message catalog... (3/9) Reloading system manager configuration... Skipped: Current root is not booted. (4/9) Updating udev hardware database... (5/9) Applying kernel sysctl settings... Skipped: Current root is not booted. (6/9) Creating temporary files... Failed to adjust quota for subvolume "/var/lib/portables": Function not implemented Failed to adjust quota for subvolume "/var/lib/machines": Function not implemented error: command failed to execute correctly (7/9) Reloading device manager configuration... Skipped: Device manager is not running. (8/9) Arming ConditionNeedsUpdate... (9/9) Reloading system bus configuration... Skipped: Current root is not booted. [?25h==> Retrieving sources...  -> Found smartdns-42.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting smartdns-42.tar.gz with bsdtar ==> Starting prepare()... ==> Starting build()... cp systemd/smartdns.service.in systemd/smartdns.service sed -i 's|@SBINDIR@|/usr/bin|' systemd/smartdns.service sed -i 's|@SYSCONFDIR@|/etc|' systemd/smartdns.service sed -i 's|@RUNSTATEDIR@|/run|' systemd/smartdns.service make -j16 --jobserver-auth=fifo:/tmp/GMfifo2244 -C src all make[1]: Entering directory '/build/smartdns/src/smartdns-Release42/src' make[1]: warning: -j16 forced in submake: resetting jobserver mode. cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"smartdns.c"' -c -o smartdns.o smartdns.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"fast_ping.c"' -c -o fast_ping.o fast_ping.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"dns_client.c"' -c -o dns_client.o dns_client.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"dns_server.c"' -c -o dns_server.o dns_server.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"dns.c"' -c -o dns.o dns.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"util.c"' -c -o util.o util.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"tlog.c"' -c -o tlog.o tlog.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"dns_conf.c"' -c -o dns_conf.o dns_conf.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"dns_cache.c"' -c -o dns_cache.o dns_cache.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"http_parse.c"' -c -o http_parse.o http_parse.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"proxy.c"' -c -o proxy.o proxy.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"rbtree.c"' -c -o lib/rbtree.o lib/rbtree.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"art.c"' -c -o lib/art.o lib/art.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"bitops.c"' -c -o lib/bitops.o lib/bitops.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"radix.c"' -c -o lib/radix.o lib/radix.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"conf.c"' -c -o lib/conf.o lib/conf.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -Iinclude -DBASE_FILE_NAME='"nftset.c"' -c -o lib/nftset.o lib/nftset.c cc smartdns.o fast_ping.o dns_client.o dns_server.o dns.o util.o tlog.o dns_conf.o dns_cache.o http_parse.o proxy.o lib/rbtree.o lib/art.o lib/bitops.o lib/radix.o lib/conf.o lib/nftset.o -o smartdns -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -lssl -lcrypto -lpthread -ldl In function ‘safe_strncpy’, inlined from ‘dir_name’ at util.c:118:3, inlined from ‘dir_name’ at util.c:115:7, inlined from ‘config_additional_file’ at dns_conf.c:3488:3: include/stringutil.h:42:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 42 | dest[n - 1] = '\0'; | ^ dns_conf.c: In function ‘config_additional_file’: dns_conf.c:3479:14: note: at offset 4095 into destination object ‘file_path_dir’ of size 1024 3479 | char file_path_dir[DNS_MAX_PATH]; | ^ In function ‘strncpy’, inlined from ‘safe_strncpy’ at include/stringutil.h:40:14, inlined from ‘dir_name’ at util.c:118:3, inlined from ‘dir_name’ at util.c:115:7, inlined from ‘config_additional_file’ at dns_conf.c:3488:3: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin___strncpy_chk’ writing 4095 bytes into a region of size 1024 overflows the destination [-Wstringop-overflow=] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^ make[1]: Leaving directory '/build/smartdns/src/smartdns-Release42/src' ==> Starting check()... make: Entering directory '/build/smartdns/src/smartdns-Release42-test/test' cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/lib/rbtree.o ../src/lib/rbtree.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/lib/art.o ../src/lib/art.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/lib/bitops.o ../src/lib/bitops.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/lib/radix.o ../src/lib/radix.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/lib/conf.o ../src/lib/conf.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/lib/nftset.o ../src/lib/nftset.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/smartdns.o ../src/smartdns.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/fast_ping.o ../src/fast_ping.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/dns_client.o ../src/dns_client.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/dns_server.o ../src/dns_server.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/dns.o ../src/dns.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/util.o ../src/util.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/tlog.o ../src/tlog.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/dns_conf.o ../src/dns_conf.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/dns_cache.o ../src/dns_cache.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/http_parse.o ../src/http_parse.c cc -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -I../src -I../src/include -DTEST -g -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough -c -o ../src/proxy.o ../src/proxy.c g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o client.o client.cc ../src/smartdns.c: In function ‘_sig_error_exit’: ../src/smartdns.c:581:21: warning: unused variable ‘context’ [-Wunused-variable] 581 | ucontext_t *context = ct; | ^~~~~~~ g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o server.o server.cc ../src/smartdns.c: In function ‘smartdns_test_notify_func’: ../src/smartdns.c:731:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 731 | write(fd_notify, &retval, sizeof(retval)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o test.o test.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o utils.o utils.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-address.o cases/test-address.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-bind.o cases/test-bind.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-bootstrap.o cases/test-bootstrap.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-cache.o cases/test-cache.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-cname.o cases/test-cname.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-discard-block-ip.o cases/test-discard-block-ip.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-dns64.o cases/test-dns64.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-domain-rule.o cases/test-domain-rule.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-domain-set.o cases/test-domain-set.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-dualstack.o cases/test-dualstack.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-ip-rule.o cases/test-ip-rule.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-mock-server.o cases/test-mock-server.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-nameserver.o cases/test-nameserver.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-perf.o cases/test-perf.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-ping.o cases/test-ping.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-ptr.o cases/test-ptr.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-qtype-soa.o cases/test-qtype-soa.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-same-pending-query.o cases/test-same-pending-query.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-server.o cases/test-server.cc g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-speed-check.o cases/test-speed-check.cc cases/test-cache.cc: In member function ‘virtual void Cache_corrupt_file_Test::TestBody()’: cases/test-cache.cc:347:22: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 347 | write(fd, &c, 1); | ~~~~~^~~~~~~~~~~ g++ -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/smartdns/src=/usr/src/debug/smartdns -flto=auto -g -DTEST -I./ -I../src -I../src/include -c -o cases/test-subnet.o cases/test-subnet.cc cases/test-perf.cc: In member function ‘virtual void Perf_no_speed_check_Test::TestBody()’: cases/test-perf.cc:98:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 98 | system(cmd.c_str()); | ~~~~~~^~~~~~~~~~~~~ cc ../src/lib/rbtree.o ../src/lib/art.o ../src/lib/bitops.o ../src/lib/radix.o ../src/lib/conf.o ../src/lib/nftset.o ../src/smartdns.o ../src/fast_ping.o ../src/dns_client.o ../src/dns_server.o ../src/dns.o ../src/util.o ../src/tlog.o ../src/dns_conf.o ../src/dns_cache.o ../src/http_parse.o ../src/proxy.o client.o server.o test.o utils.o cases/test-address.o cases/test-bind.o cases/test-bootstrap.o cases/test-cache.o cases/test-cname.o cases/test-discard-block-ip.o cases/test-dns64.o cases/test-domain-rule.o cases/test-domain-set.o cases/test-dualstack.o cases/test-ip-rule.o cases/test-mock-server.o cases/test-nameserver.o cases/test-perf.o cases/test-ping.o cases/test-ptr.o cases/test-qtype-soa.o cases/test-same-pending-query.o cases/test-server.o cases/test-speed-check.o cases/test-subnet.o -o test.bin -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -lssl -lcrypto -lpthread -ldl -lgtest -lstdc++ -lm In function ‘safe_strncpy’, inlined from ‘dir_name’ at ../src/util.c:118:3, inlined from ‘dir_name’ at ../src/util.c:115:7, inlined from ‘config_additional_file’ at ../src/dns_conf.c:3488:3: ../src/include/stringutil.h:42:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 42 | dest[n - 1] = '\0'; | ^ ../src/dns_conf.c: In function ‘config_additional_file’: ../src/dns_conf.c:3479:14: note: at offset 4095 into destination object ‘file_path_dir’ of size 1024 3479 | char file_path_dir[DNS_MAX_PATH]; | ^ In function ‘strncpy’, inlined from ‘safe_strncpy’ at ../src/include/stringutil.h:40:14, inlined from ‘dir_name’ at ../src/util.c:118:3, inlined from ‘dir_name’ at ../src/util.c:115:7, inlined from ‘config_additional_file’ at ../src/dns_conf.c:3488:3: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin___strncpy_chk’ writing 4095 bytes into a region of size 1024 overflows the destination [-Wstringop-overflow=] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^ ./test.bin [==========] Running 61 tests from 21 test suites. [----------] Global test environment set-up. [----------] 4 tests from SubNet [ RUN ] SubNet.pass_subnet [2023-07-27 04:35:47,249][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:47,303][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:47,305][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:47,305][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:47,326][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:47,806][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 57, type = 0 [2023-07-27 04:35:47,807][DEBUG][ dns.c:1925] opt type 8 [2023-07-27 04:35:47,807][DEBUG][ dns.c:1710] ECS: family:1, source_prefix:24, scope_prefix:0, len:3 [2023-07-27 04:35:47,807][DEBUG][ dns.c:1712] 8.8.8.0 [2023-07-27 04:35:47,808][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:47,808][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 57, id = 27246, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:47,808][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 27246 [2023-07-27 04:35:47,843][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:47,848][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 59331, group: default [2023-07-27 04:35:47,852][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:35:47,852][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 59331, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:47,853][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:47,854][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:47,854][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:47,854][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 904 [2023-07-27 04:35:47,855][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:47,855][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 59331 [2023-07-27 04:35:47,859][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:47,860][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:47,861][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:47,861][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:47,862][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 27246, group: default, time: 55ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +subnet=8.8.8.8/24 +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27246 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ; CLIENT-SUBNET: 8.8.8.0/24/0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 63 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:47 CEST 2023 ;; MSG SIZE rcvd: 61 [ OK ] SubNet.pass_subnet (858 ms) [ RUN ] SubNet.conf [2023-07-27 04:35:48,095][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:48,134][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:48,135][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:48,142][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:48,153][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:48,498][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:48,498][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:48,499][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 8569, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:48,499][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 8569 [2023-07-27 04:35:48,527][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:48,528][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 45175, group: default [2023-07-27 04:35:48,532][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:35:48,533][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 45175, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:48,533][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:48,533][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:48,533][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:48,534][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 915 [2023-07-27 04:35:48,535][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:48,535][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 45175 [2023-07-27 04:35:48,535][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:48,537][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:48,537][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:48,537][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:48,541][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 8569, group: default, time: 42ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8569 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 50 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:48 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] SubNet.conf (565 ms) [ RUN ] SubNet.conf_v6 [2023-07-27 04:35:48,655][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:48,685][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:48,686][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:48,686][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:48,692][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:48,693][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-07-27 04:35:48,694][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-07-27 04:35:49,016][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:49,016][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:49,016][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 25318, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:49,017][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 25318 [2023-07-27 04:35:49,045][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:49,046][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 33782, group: default [2023-07-27 04:35:49,055][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:35:49,056][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 33782, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:49,056][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:35:49,056][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:49,057][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:35:49,058][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 909 [2023-07-27 04:35:49,058][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 3 [2023-07-27 04:35:49,059][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 33782 [2023-07-27 04:35:49,059][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:35:49,064][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:49,065][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:35:49,067][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:35:49,070][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 25318, group: default, time: 53ms [2023-07-27 04:35:49,129][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=704, lasttime=-1 id=25318 [2023-07-27 04:35:49,130][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:49,130][DEBUG][ dns_server.c:960 ] result: a.com, rtt: 70.4 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:35:49,131][ INFO][ dns_server.c:817 ] result: a.com, id: 25318, index: 1, rtt: 70.4 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:35:49,131][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:35:49,132][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25318 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 3 IN AAAA 2001:db8::1 ;; Query time: 60 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:49 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] SubNet.conf_v6 (519 ms) [ RUN ] SubNet.per_server [2023-07-27 04:35:49,179][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:49,221][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:49,223][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:49,223][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:49,233][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:35:49,233][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:49,235][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-07-27 04:35:49,237][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-07-27 04:35:49,536][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:49,536][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:49,537][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 11284, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:49,537][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 11284 [2023-07-27 04:35:49,582][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:49,583][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:49,584][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 51161, group: default [2023-07-27 04:35:49,585][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:35:49,586][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 51161, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:49,586][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:49,586][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:35:49,586][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:49,588][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 899 [2023-07-27 04:35:49,588][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:49,588][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 23, ttl: 64 [2023-07-27 04:35:49,588][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 23, id = 51161, tc = 0, rd = 0, ra = 1, rcode = 2, payloadsize = 0 [2023-07-27 04:35:49,588][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:49,588][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:49,588][DEBUG][ dns_server.c:2994] inquery failed, a.com, rcode = 2, id = 51161 [2023-07-27 04:35:49,592][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 51161 [2023-07-27 04:35:49,592][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:49,593][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:49,594][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:49,594][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:49,595][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 11284, group: default, time: 59ms [2023-07-27 04:35:49,602][DEBUG][ dns_server.c:2567] from 5.6.7.8: seq=1 time=105, lasttime=-1 id=11284 [2023-07-27 04:35:49,603][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:35:49,603][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 10.5 ms, 5.6.7.8 [2023-07-27 04:35:49,603][ INFO][ dns_server.c:813 ] result: a.com, id: 11284, index: 1, rtt: 10.5 ms, 5.6.7.8 [2023-07-27 04:35:49,604][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:49,604][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11284 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 5.6.7.8 ;; Query time: 66 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:49 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:35:49,938][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:49,939][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:49,939][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 14077, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:49,939][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 14077 [2023-07-27 04:35:49,939][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:49,939][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:49,940][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 52678, group: default [2023-07-27 04:35:49,942][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 23, ttl: 64 [2023-07-27 04:35:49,942][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 23, id = 52678, tc = 0, rd = 0, ra = 1, rcode = 2, payloadsize = 0 [2023-07-27 04:35:49,942][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:35:49,945][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:49,945][DEBUG][ dns_server.c:2994] inquery failed, a.com, rcode = 2, id = 52678 [2023-07-27 04:35:49,945][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:35:49,945][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 52678, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:49,945][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:35:49,945][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:35:49,946][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:35:49,946][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 943 [2023-07-27 04:35:49,946][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 4 [2023-07-27 04:35:49,946][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 52678 [2023-07-27 04:35:49,946][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:35:49,946][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:49,946][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:35:49,946][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:35:49,947][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 14077, group: default, time: 8ms [2023-07-27 04:35:49,962][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=123, lasttime=-1 id=14077 [2023-07-27 04:35:49,962][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:49,962][DEBUG][ dns_server.c:960 ] result: a.com, rtt: 12.3 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:35:49,962][ INFO][ dns_server.c:817 ] result: a.com, id: 14077, index: 1, rtt: 12.3 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:35:49,962][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:35:49,962][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 4 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14077 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 3 IN AAAA 2001:db8::2 ;; Query time: 10 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:49 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] SubNet.per_server (991 ms) [----------] 4 tests from SubNet (2939 ms total) [----------] 9 tests from SpeedCheck [ RUN ] SpeedCheck.response_mode [2023-07-27 04:35:50,165][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:50,204][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:50,205][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:50,205][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:50,213][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:50,496][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:50,496][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:50,496][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 47805, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:50,496][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 47805 [2023-07-27 04:35:50,523][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:50,525][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 10489, group: default [2023-07-27 04:35:50,526][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:50,526][ INFO][ dns_client.c:3848] request: b.com, qtype: 28, id: 15567, group: default [2023-07-27 04:35:50,528][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:50,528][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 10489, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:50,528][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:35:50,529][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:50,529][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:50,530][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 917 [2023-07-27 04:35:50,530][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:50,530][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:50,530][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 916 [2023-07-27 04:35:50,530][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:50,531][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 10489 [2023-07-27 04:35:50,531][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:35:50,531][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 15567, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:35:50,531][DEBUG][ dns_client.c:1704] domain: b.com qtype: 28 qclass: 1 [2023-07-27 04:35:50,531][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:50,531][DEBUG][ dns_server.c:3053] domain: b.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:50,532][ INFO][ dns_server.c:2117] result: b.com, qtype: 28, SOA [2023-07-27 04:35:50,532][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:50,532][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:35:50,532][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:50,533][DEBUG][ dns_server.c:3423] dualstack result: domain: b.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:35:50,533][DEBUG][ dns_client.c:1476] result: b.com, qtype: 28, has-result: 1, id 15567 [2023-07-27 04:35:50,533][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:50,534][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:35:50,534][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:50,814][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 633 [2023-07-27 04:35:50,814][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 4 [2023-07-27 04:35:50,814][DEBUG][ dns_server.c:2719] ping 5.6.7.8:80 with tcp, order: 1, timeout: 632 [2023-07-27 04:35:50,814][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 5 [2023-07-27 04:35:51,013][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 434 [2023-07-27 04:35:51,013][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 6 [2023-07-27 04:35:51,014][DEBUG][ dns_server.c:2719] ping 5.6.7.8:443 with tcp, order: 2, timeout: 433 [2023-07-27 04:35:51,014][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:443, id = 7 [2023-07-27 04:35:51,533][DEBUG][ dns_server.c:2546] ping 5.6.7.8:80 timeout [2023-07-27 04:35:51,539][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 5 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2546] ping 5.6.7.8 timeout [2023-07-27 04:35:51,539][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:35:51,539][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 4 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:35:51,539][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:35:51,539][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 6 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2546] ping 5.6.7.8:443 timeout [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2294] select best ip address, b.com [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:2299] possible result: b.com, rcode: 0, hitnum: 1, 5.6.7.8 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:51,539][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:51,541][ INFO][ dns_server.c:813 ] result: b.com, id: 47805, index: 1, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:51,541][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 600 [2023-07-27 04:35:51,542][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 47805, group: default, time: 1045ms [2023-07-27 04:35:51,543][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:443 end, id 7 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47805 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 600 IN A 5.6.7.8 ;; Query time: 1050 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:51 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:35:52,035][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:52,035][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:52,035][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 11328, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:52,035][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 11328 [2023-07-27 04:35:52,036][ INFO][ dns_server.c:3871] RULE-MATCH, type: 10, domain: a.com, rule: a.com [2023-07-27 04:35:52,036][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:52,036][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 31233, group: default [2023-07-27 04:35:52,036][ INFO][ dns_server.c:3871] RULE-MATCH, type: 10, domain: a.com, rule: a.com [2023-07-27 04:35:52,036][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:52,036][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 32121, group: default [2023-07-27 04:35:52,038][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:52,039][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 31233, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:52,039][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:52,039][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:52,039][DEBUG][ dns_server.c:3126] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:52,039][DEBUG][ dns_server.c:3126] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:52,039][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:52,040][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 11328, group: default, time: 4ms [2023-07-27 04:35:52,040][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:52,040][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-07-27 04:35:52,040][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 8 [2023-07-27 04:35:52,040][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:52,040][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-07-27 04:35:52,040][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 9 [2023-07-27 04:35:52,040][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 31233 [2023-07-27 04:35:52,040][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:35:52,040][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 32121, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:35:52,040][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:35:52,040][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:52,041][DEBUG][ dns_server.c:3326] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:52,041][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:35:52,041][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:52,041][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 32121 [2023-07-27 04:35:52,041][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:52,041][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:35:52,041][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11328 ;; flags: qr ra; QUERY: 0, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 a.com. 3 IN A 5.6.7.8 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:52 CEST 2023 ;; MSG SIZE rcvd: 49 [ OK ] SpeedCheck.response_mode (1993 ms) [ RUN ] SpeedCheck.none [2023-07-27 04:35:52,172][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:52,217][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:35:52,217][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:35:52,226][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:52,536][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:52,536][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:52,536][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 43270, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:52,536][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 43270 [2023-07-27 04:35:52,562][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:52,563][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 23957, group: default [2023-07-27 04:35:52,565][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:52,565][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 23957, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:52,565][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:35:52,566][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:52,566][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:52,567][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:52,567][ INFO][ dns_server.c:2120] result: b.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:52,568][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:52,568][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:52,569][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 600 [2023-07-27 04:35:52,570][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 43270, group: default, time: 34ms [2023-07-27 04:35:52,571][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 23957 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43270 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 600 IN A 1.2.3.4 b.com. 600 IN A 5.6.7.8 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:52 CEST 2023 ;; MSG SIZE rcvd: 55 cases/test-speed-check.cc:102: Failure Expected: (client.GetQueryTime()) < (20), actual: 43 vs 20 [2023-07-27 04:35:52,925][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:52,925][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:52,925][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 38156, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:52,925][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 38156 [2023-07-27 04:35:52,926][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:52,926][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 11272, group: default [2023-07-27 04:35:52,927][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:52,927][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 11272, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:52,927][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:52,927][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:52,927][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:52,927][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:52,927][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:52,927][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:52,927][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:52,927][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:52,927][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 38156, group: default, time: 1ms [2023-07-27 04:35:52,927][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 11272 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38156 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 600 IN A 1.2.3.4 a.com. 600 IN A 5.6.7.8 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:52 CEST 2023 ;; MSG SIZE rcvd: 55 [ FAILED ] SpeedCheck.none (891 ms) [ RUN ] SpeedCheck.domain_rules_none [2023-07-27 04:35:53,052][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:53,098][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:53,103][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:53,104][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:53,106][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:53,506][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:53,506][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:53,506][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 38427, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:53,506][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 38427 [2023-07-27 04:35:53,534][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:53,536][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:53,536][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 41520, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:53,536][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:35:53,537][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:53,537][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:53,538][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 918 [2023-07-27 04:35:53,538][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:53,538][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:53,539][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 917 [2023-07-27 04:35:53,539][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:53,542][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 41520, group: default [2023-07-27 04:35:53,542][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 41520 [2023-07-27 04:35:53,543][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:53,544][ INFO][ dns_client.c:3848] request: b.com, qtype: 28, id: 7365, group: default [2023-07-27 04:35:53,545][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:35:53,546][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 7365, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:35:53,546][DEBUG][ dns_client.c:1704] domain: b.com qtype: 28 qclass: 1 [2023-07-27 04:35:53,546][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:53,546][DEBUG][ dns_server.c:3053] domain: b.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:53,546][ INFO][ dns_server.c:2117] result: b.com, qtype: 28, SOA [2023-07-27 04:35:53,546][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:53,547][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:35:53,547][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:53,548][DEBUG][ dns_server.c:3423] dualstack result: domain: b.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:35:53,548][DEBUG][ dns_client.c:1476] result: b.com, qtype: 28, has-result: 1, id 7365 [2023-07-27 04:35:53,548][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:53,548][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:35:53,548][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:53,807][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 649 [2023-07-27 04:35:53,808][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 4 [2023-07-27 04:35:53,808][DEBUG][ dns_server.c:2719] ping 5.6.7.8:80 with tcp, order: 1, timeout: 648 [2023-07-27 04:35:53,808][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 5 [2023-07-27 04:35:54,007][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 449 [2023-07-27 04:35:54,007][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 6 [2023-07-27 04:35:54,008][DEBUG][ dns_server.c:2719] ping 5.6.7.8:443 with tcp, order: 2, timeout: 448 [2023-07-27 04:35:54,008][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:443, id = 7 [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2546] ping 5.6.7.8:80 timeout [2023-07-27 04:35:54,540][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 5 [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2546] ping 5.6.7.8 timeout [2023-07-27 04:35:54,540][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:35:54,540][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 4 [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:35:54,540][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:35:54,540][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 6 [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2546] ping 5.6.7.8:443 timeout [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2294] select best ip address, b.com [2023-07-27 04:35:54,540][DEBUG][ dns_server.c:2299] possible result: b.com, rcode: 0, hitnum: 1, 5.6.7.8 [2023-07-27 04:35:54,541][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:54,541][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:54,542][ INFO][ dns_server.c:813 ] result: b.com, id: 38427, index: 1, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:54,542][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 600 [2023-07-27 04:35:54,543][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 38427, group: default, time: 1037ms [2023-07-27 04:35:54,543][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:443 end, id 7 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38427 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 600 IN A 5.6.7.8 ;; Query time: 1043 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:54 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:35:54,904][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:54,904][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:54,904][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 37467, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:54,904][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 37467 [2023-07-27 04:35:54,905][ INFO][ dns_server.c:3871] RULE-MATCH, type: 9, domain: a.com, rule: a.com [2023-07-27 04:35:54,905][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:54,906][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 47764, group: default [2023-07-27 04:35:54,909][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:54,909][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 47764, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:54,909][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:54,909][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:54,910][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:54,910][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:54,911][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:54,912][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:54,912][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:35:54,912][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:54,912][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 37467, group: default, time: 7ms [2023-07-27 04:35:54,912][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 47764 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37467 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 600 IN A 1.2.3.4 a.com. 600 IN A 5.6.7.8 ;; Query time: 10 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:54 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] SpeedCheck.domain_rules_none (2082 ms) [ RUN ] SpeedCheck.only_ping [2023-07-27 04:35:55,152][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:55,202][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:55,203][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:55,203][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:55,229][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:55,526][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:55,526][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:55,526][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 35500, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:55,526][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 35500 [2023-07-27 04:35:55,553][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:55,554][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 60516, group: default [2023-07-27 04:35:55,555][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:55,556][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:55,557][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 60516, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:55,557][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:35:55,562][ INFO][ dns_client.c:3848] request: b.com, qtype: 28, id: 8808, group: default [2023-07-27 04:35:55,563][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:55,563][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:55,564][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 913 [2023-07-27 04:35:55,564][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:55,565][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:55,565][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 912 [2023-07-27 04:35:55,565][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:55,565][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 60516 [2023-07-27 04:35:55,565][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:35:55,565][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 8808, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:35:55,566][DEBUG][ dns_client.c:1704] domain: b.com qtype: 28 qclass: 1 [2023-07-27 04:35:55,566][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:55,566][DEBUG][ dns_server.c:3053] domain: b.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:55,566][ INFO][ dns_server.c:2117] result: b.com, qtype: 28, SOA [2023-07-27 04:35:55,566][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:55,566][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:35:55,566][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:55,567][DEBUG][ dns_server.c:3423] dualstack result: domain: b.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:35:55,568][DEBUG][ dns_client.c:1476] result: b.com, qtype: 28, has-result: 1, id 8808 [2023-07-27 04:35:55,568][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:55,568][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:35:55,568][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:56,566][DEBUG][ dns_server.c:2546] ping 5.6.7.8 timeout [2023-07-27 04:35:56,566][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 [2023-07-27 04:35:56,566][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:35:56,567][DEBUG][ dns_server.c:2294] select best ip address, b.com [2023-07-27 04:35:56,567][DEBUG][ dns_server.c:2299] possible result: b.com, rcode: 0, hitnum: 1, 5.6.7.8 [2023-07-27 04:35:56,567][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:56,567][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:56,569][ INFO][ dns_server.c:813 ] result: b.com, id: 35500, index: 1, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:35:56,569][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 600 [2023-07-27 04:35:56,570][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 35500, group: default, time: 1043ms [2023-07-27 04:35:56,570][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35500 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 600 IN A 5.6.7.8 ;; Query time: 1050 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:56 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.only_ping (1553 ms) [ RUN ] SpeedCheck.no_ping_fallback_tcp [2023-07-27 04:35:56,687][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:56,741][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:56,742][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:56,742][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:56,753][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:57,039][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:57,039][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:57,039][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 54874, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:57,040][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 54874 [2023-07-27 04:35:57,070][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:57,071][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 57238, group: default [2023-07-27 04:35:57,072][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:57,073][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 36360, group: default [2023-07-27 04:35:57,076][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:57,076][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 57238, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:57,076][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:57,077][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:57,077][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:57,078][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 912 [2023-07-27 04:35:57,078][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:57,078][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:57,078][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 912 [2023-07-27 04:35:57,078][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:57,079][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 57238 [2023-07-27 04:35:57,079][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:35:57,079][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 36360, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:35:57,079][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:35:57,079][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:57,079][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:57,079][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:35:57,079][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:57,080][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:35:57,080][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:57,081][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:35:57,081][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 36360 [2023-07-27 04:35:57,081][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:57,081][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:35:57,081][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:57,362][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 628 [2023-07-27 04:35:57,362][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 4 [2023-07-27 04:35:57,363][DEBUG][ dns_server.c:2719] ping 5.6.7.8:80 with tcp, order: 1, timeout: 627 [2023-07-27 04:35:57,363][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 5 [2023-07-27 04:35:57,464][DEBUG][ dns_server.c:2567] from 5.6.7.8:80: seq=1 time=1000, lasttime=-1 id=54874 [2023-07-27 04:35:57,464][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: 100.0 ms, 5.6.7.8 [2023-07-27 04:35:57,466][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:57,466][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 100.0 ms, 5.6.7.8 [2023-07-27 04:35:57,466][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:57,467][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 54874, group: default, time: 427ms [2023-07-27 04:35:57,467][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 5 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54874 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 5.6.7.8 ;; Query time: 430 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:57 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.no_ping_fallback_tcp (908 ms) [ RUN ] SpeedCheck.tcp_faster_than_ping [2023-07-27 04:35:57,605][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:57,647][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:57,649][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:57,649][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:57,663][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:58,003][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:58,003][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:58,003][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 9845, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:58,003][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 9845 [2023-07-27 04:35:58,035][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:58,037][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 64411, group: default [2023-07-27 04:35:58,038][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:58,038][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 56150, group: default [2023-07-27 04:35:58,042][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:58,042][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 64411, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:58,043][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:35:58,043][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:58,043][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:58,044][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 910 [2023-07-27 04:35:58,044][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:58,044][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:58,045][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 909 [2023-07-27 04:35:58,045][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:58,045][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 64411 [2023-07-27 04:35:58,045][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:35:58,046][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 56150, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:35:58,046][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:35:58,046][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:58,046][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:35:58,046][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:35:58,047][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:35:58,047][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:35:58,047][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:58,048][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:35:58,048][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 56150 [2023-07-27 04:35:58,048][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:35:58,049][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:35:58,049][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:35:58,269][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 684 [2023-07-27 04:35:58,270][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 4 [2023-07-27 04:35:58,270][DEBUG][ dns_server.c:2719] ping 5.6.7.8:80 with tcp, order: 1, timeout: 684 [2023-07-27 04:35:58,270][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 5 [2023-07-27 04:35:58,287][DEBUG][ dns_server.c:2567] from 5.6.7.8:80: seq=1 time=100, lasttime=-1 id=9845 [2023-07-27 04:35:58,288][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: 10.0 ms, 5.6.7.8 [2023-07-27 04:35:58,289][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:58,289][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 10.0 ms, 5.6.7.8 [2023-07-27 04:35:58,290][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:35:58,290][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 9845, group: default, time: 287ms [2023-07-27 04:35:58,291][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 5 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9845 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 5.6.7.8 ;; Query time: 293 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:58 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.tcp_faster_than_ping (864 ms) [ RUN ] SpeedCheck.fastest_ip [2023-07-27 04:35:58,469][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:58,508][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:58,509][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:58,509][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:58,516][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:58,842][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:58,842][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:58,842][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 46310, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:58,842][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 46310 [2023-07-27 04:35:58,903][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:35:58,904][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 60722, group: default [2023-07-27 04:35:58,909][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:35:58,909][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 60722, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:35:58,909][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:35:58,910][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:35:58,910][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:35:58,911][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 882 [2023-07-27 04:35:58,911][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:35:58,911][DEBUG][ dns_server.c:2837] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:35:58,911][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 881 [2023-07-27 04:35:58,911][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:35:58,912][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 60722 [2023-07-27 04:35:59,012][DEBUG][ dns_server.c:2567] from 1.2.3.4: seq=1 time=1001, lasttime=-1 id=46310 [2023-07-27 04:35:59,012][ INFO][ dns_server.c:2120] result: b.com, qtype: 1, rtt: 100.1 ms, 1.2.3.4 [2023-07-27 04:35:59,014][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:35:59,014][DEBUG][ dns_server.c:953 ] result: b.com, rtt: 100.1 ms, 1.2.3.4 [2023-07-27 04:35:59,014][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 600 [2023-07-27 04:35:59,015][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 46310, group: default, time: 173ms [2023-07-27 04:35:59,032][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-07-27 04:35:59,032][DEBUG][ dns_server.c:2567] from 5.6.7.8: seq=1 time=1100, lasttime=1001 id=46310 [2023-07-27 04:35:59,033][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:35:59,033][DEBUG][ dns_server.c:953 ] result: b.com, rtt: 100.1 ms, 1.2.3.4 [2023-07-27 04:35:59,033][ INFO][ dns_server.c:813 ] result: b.com, id: 46310, index: 1, rtt: 100.1 ms, 1.2.3.4 [2023-07-27 04:35:59,033][ INFO][ dns_server.c:813 ] result: b.com, id: 46310, index: 2, rtt: 110.0 ms, 5.6.7.8 [2023-07-27 04:35:59,033][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 600 [2023-07-27 04:35:59,034][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46310 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 3 IN A 1.2.3.4 ;; Query time: 176 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:59 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:35:59,595][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:35:59,595][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:35:59,595][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 11368, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:35:59,595][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 11368 [2023-07-27 04:35:59,596][ INFO][ dns_server.c:3375] result: b.com, client: 127.0.0.1, qtype: 1, id: 11368, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11368 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 600 IN A 1.2.3.4 b.com. 600 IN A 5.6.7.8 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:35:59 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] SpeedCheck.fastest_ip (1297 ms) [ RUN ] SpeedCheck.unreach_best_ipv4 [2023-07-27 04:35:59,769][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:35:59,810][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:35:59,812][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:35:59,812][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:35:59,828][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:35:59,829][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:00,163][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:00,163][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:00,163][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 1558, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:00,163][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 1558 [2023-07-27 04:36:00,189][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:00,190][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:00,190][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 14994, group: default [2023-07-27 04:36:00,192][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:36:00,193][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 14994, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:00,193][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:00,193][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:00,193][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:00,194][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 919 [2023-07-27 04:36:00,194][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:36:00,195][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 9.10.11.12 [2023-07-27 04:36:00,195][DEBUG][ dns_server.c:2714] ping 9.10.11.12 with icmp, order: 0, timeout: 918 [2023-07-27 04:36:00,195][DEBUG][ fast_ping.c:1448] ping 9.10.11.12, id = 3 [2023-07-27 04:36:00,195][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:36:00,195][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 14994, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:00,195][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:00,195][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:00,195][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:00,195][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:36:00,195][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 918 [2023-07-27 04:36:00,195][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-07-27 04:36:00,199][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 14994 [2023-07-27 04:36:01,196][DEBUG][ fast_ping.c:677 ] ping 9.10.11.12 end, id 3 [2023-07-27 04:36:01,197][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-07-27 04:36:01,197][DEBUG][ dns_server.c:2294] select best ip address, a.com [2023-07-27 04:36:01,197][DEBUG][ dns_server.c:2299] possible result: a.com, rcode: 0, hitnum: 2, 1.2.3.4 [2023-07-27 04:36:01,197][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:01,197][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:01,199][ INFO][ dns_server.c:813 ] result: a.com, id: 1558, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:01,199][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:01,201][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 1558, group: default, time: 1038ms [2023-07-27 04:36:01,201][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 4 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1558 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 600 IN A 1.2.3.4 ;; Query time: 1043 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:01 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.unreach_best_ipv4 (1586 ms) [ RUN ] SpeedCheck.unreach_best_ipv6 [2023-07-27 04:36:01,355][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:01,398][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:01,402][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:01,403][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:01,419][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:01,420][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:01,420][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-07-27 04:36:01,421][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-07-27 04:36:01,725][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:01,725][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:01,725][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 55045, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:01,725][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 55045 [2023-07-27 04:36:01,756][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:01,758][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:01,758][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 61384, group: default [2023-07-27 04:36:01,759][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64 [2023-07-27 04:36:01,759][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 61384, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:01,759][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:01,759][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:01,760][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:01,761][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 914 [2023-07-27 04:36:01,761][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 3 [2023-07-27 04:36:01,761][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0003 [2023-07-27 04:36:01,761][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0003] with icmp, order: 0, timeout: 914 [2023-07-27 04:36:01,761][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0003], id = 4 [2023-07-27 04:36:01,761][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64 [2023-07-27 04:36:01,761][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 61384, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:01,761][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:01,761][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:01,762][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:01,762][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 913 [2023-07-27 04:36:01,762][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 5 [2023-07-27 04:36:01,762][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:01,762][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 61384 [2023-07-27 04:36:02,763][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0003] end, id 4 [2023-07-27 04:36:02,763][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 3 [2023-07-27 04:36:02,764][DEBUG][ dns_server.c:2294] select best ip address, a.com [2023-07-27 04:36:02,764][DEBUG][ dns_server.c:2306] possible result: a.com, rcode: 0, hitnum: 2, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:02,764][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:02,765][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:02,766][ INFO][ dns_server.c:817 ] result: a.com, id: 55045, index: 1, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:02,766][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:02,768][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 55045, group: default, time: 1043ms [2023-07-27 04:36:02,769][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 5 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55045 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 600 IN AAAA 2001:db8::2 ;; Query time: 1046 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:02 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] SpeedCheck.unreach_best_ipv6 (1537 ms) [----------] 9 tests from SpeedCheck (12716 ms total) [----------] 1 test from Server [ RUN ] Server.all_unreach [2023-07-27 04:36:02,885][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:02,928][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:02,935][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:02,936][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:03,539][ INFO][ dns_client.c:1169] add server 255.255.255.255:853, type: tls [2023-07-27 04:36:03,542][ INFO][ dns_client.c:1169] add server 255.255.255.255:443, type: https [2023-07-27 04:36:03,543][ INFO][ dns_client.c:1169] add server 255.255.255.255:53, type: tcp [2023-07-27 04:36:03,545][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-07-27 04:36:03,545][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-07-27 04:36:03,821][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:03,821][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:03,821][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 29770, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:03,821][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 29770 [2023-07-27 04:36:03,823][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:03,825][DEBUG][ dns_client.c:1954] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:03,825][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:03,827][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:03,828][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:03,828][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:03,828][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:03,828][DEBUG][ dns_client.c:1954] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:03,829][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:03,829][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:03,829][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:03,829][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:03,829][ WARN][ dns_client.c:3571] send query a.com to upstream server failed, total server number 3 [2023-07-27 04:36:03,829][DEBUG][ dns_server.c:5253] send dns request failed. [2023-07-27 04:36:03,829][DEBUG][ dns_server.c:5394] do query a.com failed. [2023-07-27 04:36:03,829][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:03,830][ INFO][ dns_server.c:994 ] result: a.com, qtype: 1, rtcode: 2 [2023-07-27 04:36:03,830][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 29770, group: default, time: 9ms [2023-07-27 04:36:03,831][DEBUG][ dns_server.c:6595] dns server process failed. ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29770 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; Query time: 13 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:03 CEST 2023 ;; MSG SIZE rcvd: 23 [2023-07-27 04:36:04,173][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 2 [2023-07-27 04:36:04,173][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:04,173][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 58904, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:04,173][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 58904 [2023-07-27 04:36:04,173][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:04,173][DEBUG][ dns_client.c:1954] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:1954] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:3482] send query to server 255.255.255.255 [2023-07-27 04:36:04,174][DEBUG][ dns_client.c:2068] connect 255.255.255.255 failed, Network is unreachable [2023-07-27 04:36:04,174][DEBUG][ dns_server.c:5253] send dns request failed. [2023-07-27 04:36:04,174][DEBUG][ dns_server.c:5394] do query a.com failed. [2023-07-27 04:36:04,175][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:04,175][ INFO][ dns_server.c:994 ] result: a.com, qtype: 1, rtcode: 2 [2023-07-27 04:36:04,175][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 58904, group: default, time: 2ms [2023-07-27 04:36:04,175][DEBUG][ dns_server.c:5947] process one request failed. [2023-07-27 04:36:04,175][DEBUG][ dns_server.c:6002] process tcp request failed. [2023-07-27 04:36:04,175][DEBUG][ dns_server.c:6167] process TCP packet from 127.0.0.1 failed. [2023-07-27 04:36:04,175][DEBUG][ dns_server.c:6595] dns server process failed. ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tcp +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 58904 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (TCP) ;; WHEN: Thu Jul 27 04:36:04 CEST 2023 ;; MSG SIZE rcvd: 23 [ OK ] Server.all_unreach (1420 ms) [----------] 1 test from Server (1421 ms total) [----------] 1 test from SamePending [ RUN ] SamePending.pending [ OK ] SamePending.pending (4997 ms) [----------] 1 test from SamePending (4997 ms total) [----------] 5 tests from QtypeSOA [ RUN ] QtypeSOA.AAAA_HTTPS [2023-07-27 04:36:09,295][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:09,330][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:09,335][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:09,336][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:09,343][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:09,641][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:09,641][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:09,641][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 14011, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:09,642][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 14011 [2023-07-27 04:36:09,642][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:09,643][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 14011, group: default, time: 2ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14011 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; AUTHORITY SECTION: a.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 10 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:09 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:36:09,980][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:09,981][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:09,981][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 38342, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:09,981][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 65, id: 38342 [2023-07-27 04:36:09,981][DEBUG][ dns_server.c:4975] unsupported qtype: 65, domain: a.com [2023-07-27 04:36:09,981][DEBUG][ dns_server.c:1874] reply a.com qtype: 65, rcode: 0, reply: 1 [2023-07-27 04:36:09,981][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 65, id: 38342, group: default, time: 0ms [2023-07-27 04:36:09,981][DEBUG][ dns_server.c:4562] force qtype 65 soa ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com -t HTTPS +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38342 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN HTTPS ;; AUTHORITY SECTION: a.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:09 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:36:10,321][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:10,321][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:10,321][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 10139, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:10,321][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 10139 [2023-07-27 04:36:10,352][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:10,354][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 30061, group: default [2023-07-27 04:36:10,354][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:36:10,355][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:10,355][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 30061, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:10,355][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 0 [2023-07-27 04:36:10,355][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:10,355][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:10,356][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:10,356][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:10,357][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:10,358][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 913 [2023-07-27 04:36:10,359][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-07-27 04:36:10,359][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:36:10,359][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 912 [2023-07-27 04:36:10,359][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-07-27 04:36:10,360][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 30061 [2023-07-27 04:36:10,645][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 626 [2023-07-27 04:36:10,645][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 4 [2023-07-27 04:36:10,645][DEBUG][ dns_server.c:2719] ping 5.6.7.8:80 with tcp, order: 1, timeout: 625 [2023-07-27 04:36:10,645][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 5 [2023-07-27 04:36:10,844][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 427 [2023-07-27 04:36:10,844][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 6 [2023-07-27 04:36:10,844][DEBUG][ dns_server.c:2719] ping 5.6.7.8:443 with tcp, order: 2, timeout: 426 [2023-07-27 04:36:10,845][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:443, id = 7 [2023-07-27 04:36:11,362][DEBUG][ dns_server.c:2546] ping 5.6.7.8:80 timeout [2023-07-27 04:36:11,363][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 5 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2546] ping 5.6.7.8 timeout [2023-07-27 04:36:11,363][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:11,363][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 4 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:11,363][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:11,363][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 6 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2546] ping 5.6.7.8:443 timeout [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2294] select best ip address, a.com [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:2299] possible result: a.com, rcode: 0, hitnum: 1, 5.6.7.8 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:11,363][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:36:11,365][ INFO][ dns_server.c:813 ] result: a.com, id: 10139, index: 1, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:36:11,365][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:11,365][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 10139, group: default, time: 1044ms [2023-07-27 04:36:11,366][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:443 end, id 7 [ OK ] QtypeSOA.AAAA_HTTPS (2175 ms) [ RUN ] QtypeSOA.AAAA_Except [2023-07-27 04:36:11,475][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:11,517][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:11,518][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:11,518][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:11,533][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:11,816][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:11,816][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:11,816][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 60684, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:11,816][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 60684 [2023-07-27 04:36:11,817][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:36:11,844][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:11,846][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 48101, group: default [2023-07-27 04:36:11,846][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:36:11,846][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 48101, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:11,846][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:11,847][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:11,847][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:11,848][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 919 [2023-07-27 04:36:11,848][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 2 [2023-07-27 04:36:11,848][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 48101 [2023-07-27 04:36:11,853][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:11,859][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:11,860][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:11,860][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:11,861][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 60684, group: default, time: 45ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60684 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 3 IN AAAA 2001:db8::1 ;; Query time: 50 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:11 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] QtypeSOA.AAAA_Except (490 ms) [ RUN ] QtypeSOA.force_AAAA_SOA_Except [2023-07-27 04:36:11,969][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:12,004][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:12,005][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:12,009][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:12,013][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:12,303][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:12,304][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:12,304][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 59597, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:12,305][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 59597 [2023-07-27 04:36:12,306][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:36:12,333][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:12,334][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 28030, group: default [2023-07-27 04:36:12,335][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:36:12,335][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 28030, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:12,335][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:12,336][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:12,336][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:12,337][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 918 [2023-07-27 04:36:12,337][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 2 [2023-07-27 04:36:12,337][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 28030 [2023-07-27 04:36:12,337][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:12,339][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:12,339][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:12,339][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:12,341][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 59597, group: default, time: 36ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59597 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 3 IN AAAA 2001:db8::1 ;; Query time: 40 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:12 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] QtypeSOA.force_AAAA_SOA_Except (495 ms) [ RUN ] QtypeSOA.force_AAAA_SOA [2023-07-27 04:36:12,465][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:12,494][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:36:12,494][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:36:12,499][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:12,801][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:12,801][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:12,801][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 25712, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:12,801][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 25712 [2023-07-27 04:36:12,828][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:12,830][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:12,830][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 19967, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:12,830][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:12,831][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:12,831][DEBUG][ dns_server.c:2837] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-07-27 04:36:12,832][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:12,833][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:12,834][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:12,834][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 700 [2023-07-27 04:36:12,835][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 25712, group: default, time: 33ms [2023-07-27 04:36:12,836][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 19967, group: default [2023-07-27 04:36:12,836][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 19967 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25712 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 700 IN A 1.2.3.4 ;; Query time: 36 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:12 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:13,182][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:13,182][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:13,182][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 27320, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:13,182][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 27320 [2023-07-27 04:36:13,182][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:13,183][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 27320, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27320 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; AUTHORITY SECTION: a.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:13 CEST 2023 ;; MSG SIZE rcvd: 96 [ OK ] QtypeSOA.force_AAAA_SOA (890 ms) [ RUN ] QtypeSOA.bind_force_AAAA_SOA [2023-07-27 04:36:13,352][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:13,390][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:36:13,390][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:36:13,396][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:13,669][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:13,669][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:13,669][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 57937, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:13,670][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 57937 [2023-07-27 04:36:13,700][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:13,701][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 36188, group: default [2023-07-27 04:36:13,702][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:13,702][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 36188, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:13,702][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:13,703][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:13,703][DEBUG][ dns_server.c:2837] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-07-27 04:36:13,704][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:13,705][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:13,705][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:13,706][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 700 [2023-07-27 04:36:13,707][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 57937, group: default, time: 37ms [2023-07-27 04:36:13,708][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 36188 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57937 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 700 IN A 1.2.3.4 ;; Query time: 40 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:13 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:14,041][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:14,041][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:14,041][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 37259, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:14,041][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 37259 [2023-07-27 04:36:14,041][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:14,041][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 7607, group: default [2023-07-27 04:36:14,042][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:36:14,042][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 7607, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:14,042][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:14,042][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:14,042][DEBUG][ dns_server.c:2913] domain: a.com TTL: 700 IP: 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:36:14,043][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:36:14,043][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:14,043][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:36:14,043][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 700 [2023-07-27 04:36:14,043][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 37259, group: default, time: 2ms [2023-07-27 04:36:14,043][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 7607 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37259 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 700 IN AAAA 64:ff9b::102:304 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:14 CEST 2023 ;; MSG SIZE rcvd: 51 [2023-07-27 04:36:14,379][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:14,379][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:14,379][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 57078, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:14,379][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 57078 [2023-07-27 04:36:14,380][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:14,380][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 57332, group: default [2023-07-27 04:36:14,380][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:14,380][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 57332, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:14,380][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:14,380][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:14,380][DEBUG][ dns_server.c:2837] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-07-27 04:36:14,380][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:14,380][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:14,380][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:14,380][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 700 [2023-07-27 04:36:14,380][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 57078, group: default, time: 1ms [2023-07-27 04:36:14,380][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 57332 ; <<>> DiG 9.18.16 <<>> -p 60153 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57078 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 700 IN A 1.2.3.4 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60153(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:14 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:14,709][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:14,709][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:14,709][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 42164, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:14,709][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 42164 [2023-07-27 04:36:14,709][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:14,710][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 42164, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60153 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42164 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; AUTHORITY SECTION: a.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60153(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:14 CEST 2023 ;; MSG SIZE rcvd: 96 [ OK ] QtypeSOA.bind_force_AAAA_SOA (1449 ms) [----------] 5 tests from QtypeSOA (5502 ms total) [----------] 3 tests from Ptr [ RUN ] Ptr.query [2023-07-27 04:36:14,796][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:14,830][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:14,832][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:14,832][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:14,839][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:15,116][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 61, type = 0 [2023-07-27 04:36:15,117][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:15,117][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 61, id = 54804, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:15,117][DEBUG][ dns_server.c:5390] query 4.3.2.1.in-addr.arpa from 127.0.0.1, qtype: 12, id: 54804 [2023-07-27 04:36:15,151][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:15,152][ INFO][ dns_client.c:3848] request: 4.3.2.1.in-addr.arpa, qtype: 12, id: 34254, group: default [2023-07-27 04:36:15,153][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 57, ttl: 64 [2023-07-27 04:36:15,153][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 57, id = 34254, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:15,153][DEBUG][ dns_client.c:1704] domain: 4.3.2.1.in-addr.arpa qtype: 12 qclass: 1 [2023-07-27 04:36:15,154][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:15,156][ INFO][ dns_server.c:3375] result: 4.3.2.1.in-addr.arpa, client: 127.0.0.1, qtype: 12, id: 54804, group: default, time: 38ms [2023-07-27 04:36:15,156][DEBUG][ dns_client.c:1476] result: 4.3.2.1.in-addr.arpa, qtype: 12, has-result: 1, id 34254 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 4.3.2.1.in-addr.arpa PTR +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54804 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: 4.3.2.1.in-addr.arpa. 600 IN PTR my-hostname. ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:15 CEST 2023 ;; MSG SIZE rcvd: 57 [ OK ] Ptr.query (469 ms) [ RUN ] Ptr.address_expand_ptr [2023-07-27 04:36:15,275][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:15,320][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:36:15,320][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:36:15,329][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:15,626][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 65, type = 0 [2023-07-27 04:36:15,626][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:15,626][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 65, id = 11501, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:15,626][DEBUG][ dns_server.c:5390] query 13.12.11.10.in-addr.arpa from 127.0.0.1, qtype: 12, id: 11501 [2023-07-27 04:36:15,627][DEBUG][ dns_server.c:1874] reply 13.12.11.10.in-addr.arpa qtype: 12, rcode: 0, reply: 1 [2023-07-27 04:36:15,627][ INFO][ dns_server.c:1929] result: 13.12.11.10.in-addr.arpa, client: 127.0.0.1, qtype: 12, id: 11501, group: default, time: 2ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 13.12.11.10.in-addr.arpa PTR +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11501 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;13.12.11.10.in-addr.arpa. IN PTR ;; ANSWER SECTION: 13.12.11.10.in-addr.arpa. 600 IN PTR a.com. ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:15 CEST 2023 ;; MSG SIZE rcvd: 61 [2023-07-27 04:36:15,959][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 113, type = 0 [2023-07-27 04:36:15,959][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:15,959][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 113, id = 13678, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:15,959][DEBUG][ dns_server.c:5390] query 0.1.0.1.0.1.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.9.f.f.4.6.0.0.ip6.arpa from 127.0.0.1, qtype: 12, id: 13678 [2023-07-27 04:36:15,959][DEBUG][ dns_server.c:1874] reply 0.1.0.1.0.1.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.9.f.f.4.6.0.0.ip6.arpa qtype: 12, rcode: 0, reply: 1 [2023-07-27 04:36:15,959][ INFO][ dns_server.c:1929] result: 0.1.0.1.0.1.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.9.f.f.4.6.0.0.ip6.arpa, client: 127.0.0.1, qtype: 12, id: 13678, group: default, time: 0ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 0.1.0.1.0.1.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.9.f.f.4.6.0.0.ip6.arpa PTR +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13678 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;0.1.0.1.0.1.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.9.f.f.4.6.0.0.ip6.arpa. IN PTR ;; ANSWER SECTION: 0.1.0.1.0.1.0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.9.f.f.4.6.0.0.ip6.arpa. 600 IN PTR a.com. ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:15 CEST 2023 ;; MSG SIZE rcvd: 109 [ OK ] Ptr.address_expand_ptr (813 ms) [ RUN ] Ptr.smartdns [2023-07-27 04:36:16,082][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:16,124][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-07-27 04:36:16,125][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-07-27 04:36:16,125][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:16,139][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:16,419][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 63, type = 0 [2023-07-27 04:36:16,419][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:16,419][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 63, id = 20579, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:16,420][DEBUG][ dns_server.c:5390] query 1.0.0.127.in-addr.arpa from 127.0.0.1, qtype: 12, id: 20579 [2023-07-27 04:36:16,423][DEBUG][ dns_server.c:1874] reply 1.0.0.127.in-addr.arpa qtype: 12, rcode: 0, reply: 1 [2023-07-27 04:36:16,424][ INFO][ dns_server.c:1929] result: 1.0.0.127.in-addr.arpa, client: 127.0.0.1, qtype: 12, id: 20579, group: default, time: 4ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 1.0.0.127.in-addr.arpa PTR +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20579 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;1.0.0.127.in-addr.arpa. IN PTR ;; ANSWER SECTION: 1.0.0.127.in-addr.arpa. 600 IN PTR my-server. ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:16 CEST 2023 ;; MSG SIZE rcvd: 63 [ OK ] Ptr.smartdns (506 ms) [----------] 3 tests from Ptr (1789 ms total) [----------] 3 tests from Ping [ RUN ] Ping.icmp [2023-07-27 04:36:16,576][DEBUG][ fast_ping.c:1448] ping 127.0.0.1, id = 1 [2023-07-27 04:36:16,591][DEBUG][ fast_ping.c:677 ] ping 127.0.0.1 end, id 1 [ OK ] Ping.icmp (19 ms) [ RUN ] Ping.tcp [2023-07-27 04:36:16,605][DEBUG][ fast_ping.c:1448] ping 127.0.0.1:1, id = 2 [2023-07-27 04:36:16,617][DEBUG][ fast_ping.c:677 ] ping 127.0.0.1:1 end, id 2 [ OK ] Ping.tcp (24 ms) [ RUN ] Ping.fake_icmp [2023-07-27 04:36:16,619][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-07-27 04:36:16,625][ INFO][ test-ping.cc:82 ] from 1.2.3.4: seq=1 ttl=60 time=5.148 [2023-07-27 04:36:16,720][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 3 [ OK ] Ping.fake_icmp (102 ms) [----------] 3 tests from Ping (148 ms total) [----------] 1 test from Perf [ RUN ] Perf.no_speed_check dnsperf not found, skip test, please install dnsperf first. cases/test-perf.cc:39: Skipped [ SKIPPED ] Perf.no_speed_check (1 ms) [----------] 1 test from Perf (1 ms total) [----------] 1 test from NameServer [ RUN ] NameServer.cname [2023-07-27 04:36:16,749][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:16,787][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:16,787][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:16,787][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:16,793][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:16,793][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:16,793][ INFO][ dns_client.c:1169] add server 127.0.0.1:63053, type: udp [2023-07-27 04:36:17,097][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:17,098][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:17,098][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 32435, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:17,098][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 32435 [2023-07-27 04:36:17,098][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: a.com, rule: a.com [2023-07-27 04:36:17,128][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:17,129][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 34851, group: g1 [2023-07-27 04:36:17,130][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:17,130][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: a.com, rule: a.com [2023-07-27 04:36:17,130][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 34851, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:17,131][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:17,131][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 30287, group: g1 [2023-07-27 04:36:17,135][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:17,136][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:17,136][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:17,137][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 911 [2023-07-27 04:36:17,137][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:17,137][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 34851 [2023-07-27 04:36:17,137][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:17,138][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 30287, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:17,138][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:17,138][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:17,138][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:17,138][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 30287 [2023-07-27 04:36:17,138][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:17,139][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:17,139][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:17,139][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:17,140][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:17,140][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:17,141][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:17,141][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:17,141][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 32435, group: g1, time: 43ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32435 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 46 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:17 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:17,486][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:17,486][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:17,486][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 10154, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:17,486][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 10154 [2023-07-27 04:36:17,486][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: b.com, rule: b.com [2023-07-27 04:36:17,486][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:17,486][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 10630, group: g2 [2023-07-27 04:36:17,486][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: b.com, rule: b.com [2023-07-27 04:36:17,486][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:17,486][ INFO][ dns_client.c:3848] request: b.com, qtype: 28, id: 16374, group: g2 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 10630, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:63053, type: 0 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:2837] domain: b.com TTL: 611 IP: 5.6.7.8 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 949 [2023-07-27 04:36:17,487][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 6 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 10630 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 16374, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:1704] domain: b.com qtype: 28 qclass: 1 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:63053, type: 0 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:3053] domain: b.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:17,487][DEBUG][ dns_client.c:1476] result: b.com, qtype: 28, has-result: 1, id 16374 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:36:17,487][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:3423] dualstack result: domain: b.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:17,487][ INFO][ dns_server.c:2120] result: b.com, qtype: 1, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 5.6.7.8 [2023-07-27 04:36:17,487][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 611 [2023-07-27 04:36:17,488][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 10154, group: g2, time: 2ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10154 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 3 IN A 5.6.7.8 ;; Query time: 10 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:17 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:17,812][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:17,812][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:17,812][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 29846, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:17,812][DEBUG][ dns_server.c:5390] query c.com from 127.0.0.1, qtype: 1, id: 29846 [2023-07-27 04:36:17,812][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:17,813][ INFO][ dns_client.c:3848] request: c.com, qtype: 1, id: 10532, group: default [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 10532, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:1704] domain: c.com qtype: 1 qclass: 1 [2023-07-27 04:36:17,813][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:17,813][DEBUG][ dns_server.c:2837] domain: c.com TTL: 611 IP: 9.10.11.12 [2023-07-27 04:36:17,813][ INFO][ dns_client.c:3848] request: c.com, qtype: 28, id: 28064, group: default [2023-07-27 04:36:17,813][DEBUG][ dns_server.c:2714] ping 9.10.11.12 with icmp, order: 0, timeout: 949 [2023-07-27 04:36:17,813][DEBUG][ fast_ping.c:1448] ping 9.10.11.12, id = 7 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:1476] result: c.com, qtype: 1, has-result: 1, id 10532 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 28064, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:17,813][DEBUG][ dns_client.c:1704] domain: c.com qtype: 28 qclass: 1 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:3053] domain: c.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:17,814][DEBUG][ dns_client.c:1476] result: c.com, qtype: 28, has-result: 1, id 28064 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:1874] reply c.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:983 ] result: c.com, qtype: 28, return SOA [2023-07-27 04:36:17,814][ INFO][ dns_server.c:994 ] result: c.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:3423] dualstack result: domain: c.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:17,814][ INFO][ dns_server.c:2120] result: c.com, qtype: 1, rtt: -0.1 ms, 9.10.11.12 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:1874] reply c.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:953 ] result: c.com, rtt: -0.1 ms, 9.10.11.12 [2023-07-27 04:36:17,814][DEBUG][ dns_server.c:1269] cache c.com qtype: 1 ttl: 611 [2023-07-27 04:36:17,814][ INFO][ dns_server.c:1929] result: c.com, client: 127.0.0.1, qtype: 1, id: 29846, group: default, time: 2ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 c.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29846 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;c.com. IN A ;; ANSWER SECTION: c.com. 3 IN A 9.10.11.12 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:17 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] NameServer.cname (1291 ms) [----------] 1 test from NameServer (1291 ms total) [----------] 3 tests from MockServer [ RUN ] MockServer.query_fail ; <<>> DiG 9.18.16 <<>> -p 7053 @127.0.0.1 example.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 385 ;; flags: qr ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;example.com. IN A ;; Query time: 6 msec ;; SERVER: 127.0.0.1#7053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:18 CEST 2023 ;; MSG SIZE rcvd: 29 [ OK ] MockServer.query_fail (379 ms) [ RUN ] MockServer.soa ; <<>> DiG 9.18.16 <<>> -p 7053 @127.0.0.1 example.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13023 ;; flags: qr ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;example.com. IN A ;; ANSWER SECTION: example.com. 1 IN SOA ns1.example.com. hostmaster.example.com. 1 3600 600 86400 3600 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#7053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:18 CEST 2023 ;; MSG SIZE rcvd: 80 [ OK ] MockServer.soa (381 ms) [ RUN ] MockServer.noerror ; <<>> DiG 9.18.16 <<>> -p 7053 @127.0.0.1 example.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42971 ;; flags: qr ra; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#7053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:19 CEST 2023 ;; MSG SIZE rcvd: 12 [ OK ] MockServer.noerror (384 ms) [----------] 3 tests from MockServer (1145 ms total) [----------] 3 tests from IPRule [ RUN ] IPRule.white_list [2023-07-27 04:36:19,185][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:19,220][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:19,221][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:19,221][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:19,226][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:19,226][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:19,502][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:19,502][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:19,502][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 53161, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:19,502][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 53161 [2023-07-27 04:36:19,534][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:19,535][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:19,535][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 12608, group: default [2023-07-27 04:36:19,536][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:19,536][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:19,536][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:19,536][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 3595, group: default [2023-07-27 04:36:19,536][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 12608, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:19,537][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:19,537][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:19,537][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:19,538][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:19,538][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 3595, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:19,538][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:19,538][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:19,542][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:19,542][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:19,542][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:19,543][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:19,543][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:19,544][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:19,544][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:19,544][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 12608, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:19,544][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:19,544][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:19,544][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 4.5.6.7 [2023-07-27 04:36:19,545][DEBUG][ dns_server.c:2714] ping 4.5.6.7 with icmp, order: 0, timeout: 908 [2023-07-27 04:36:19,545][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 5 [2023-07-27 04:36:19,545][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 12608 [2023-07-27 04:36:19,545][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:19,546][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:19,546][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:19,546][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:19,547][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 53161, group: default, time: 44ms [2023-07-27 04:36:19,547][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:19,547][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 3595, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:19,547][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:19,547][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:19,547][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:19,547][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 3595 [2023-07-27 04:36:19,547][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:19,548][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:19,548][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53161 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 4.5.6.7 ;; Query time: 46 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:19 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] IPRule.white_list (576 ms) [ RUN ] IPRule.black_list [2023-07-27 04:36:19,762][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:19,800][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:19,800][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:19,809][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:19,816][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:19,816][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:20,098][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:20,099][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:20,099][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 54609, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:20,099][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 54609 [2023-07-27 04:36:20,129][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:20,130][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:20,130][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 61231, group: default [2023-07-27 04:36:20,131][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:20,131][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:20,131][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 61231, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:20,131][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:20,131][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 26058, group: default [2023-07-27 04:36:20,131][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:20,132][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:20,132][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:20,133][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 916 [2023-07-27 04:36:20,133][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:20,133][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:20,133][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 26058, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:20,133][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:20,133][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:20,134][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:20,134][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:20,134][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:20,134][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:20,134][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:20,135][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:20,135][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:20,136][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 61231, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:20,136][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:20,136][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:20,142][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 4.5.6.7 [2023-07-27 04:36:20,142][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 61231 [2023-07-27 04:36:20,142][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:20,143][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:20,143][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:20,143][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:20,144][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 54609, group: default, time: 45ms [2023-07-27 04:36:20,144][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:20,144][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 26058, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:20,144][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:20,144][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:20,144][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:20,145][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 26058 [2023-07-27 04:36:20,145][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:20,145][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:20,145][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54609 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 50 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:20 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] IPRule.black_list (595 ms) [ RUN ] IPRule.ignore_ip [2023-07-27 04:36:20,349][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:20,387][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:20,387][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:20,387][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:20,393][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:20,685][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:20,685][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:20,685][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 2204, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:20,685][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 2204 [2023-07-27 04:36:20,715][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:20,716][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 18431, group: default [2023-07-27 04:36:20,717][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 65, ttl: 64 [2023-07-27 04:36:20,717][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:20,718][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 34631, group: default [2023-07-27 04:36:20,718][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 3, nscount = 0, nrcount = 0, len = 65, id = 18431, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:20,718][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:20,719][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:20,719][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:20,719][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 4.5.6.7 [2023-07-27 04:36:20,720][DEBUG][ dns_server.c:2714] ping 4.5.6.7 with icmp, order: 0, timeout: 916 [2023-07-27 04:36:20,720][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 5 [2023-07-27 04:36:20,720][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 7.8.9.10 [2023-07-27 04:36:20,720][DEBUG][ dns_server.c:2714] ping 7.8.9.10 with icmp, order: 0, timeout: 916 [2023-07-27 04:36:20,720][DEBUG][ fast_ping.c:1448] ping 7.8.9.10, id = 6 [2023-07-27 04:36:20,725][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 18431 [2023-07-27 04:36:20,726][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:20,726][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 34631, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:20,726][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:20,726][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:20,726][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:20,726][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:20,727][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:20,727][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:20,727][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:20,728][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:20,728][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 34631 [2023-07-27 04:36:20,728][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:20,728][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:20,728][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:20,760][DEBUG][ dns_server.c:2567] from 7.8.9.10: seq=1 time=400, lasttime=-1 id=2204 [2023-07-27 04:36:20,761][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: 40.0 ms, 7.8.9.10 [2023-07-27 04:36:20,761][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:20,762][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 40.0 ms, 7.8.9.10 [2023-07-27 04:36:20,762][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:20,762][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 2204, group: default, time: 77ms [2023-07-27 04:36:20,763][DEBUG][ fast_ping.c:677 ] ping 7.8.9.10 end, id 6 [2023-07-27 04:36:20,810][DEBUG][ dns_server.c:2567] from 4.5.6.7: seq=1 time=900, lasttime=400 id=2204 [2023-07-27 04:36:20,810][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:20,810][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 40.0 ms, 7.8.9.10 [2023-07-27 04:36:20,810][ INFO][ dns_server.c:813 ] result: a.com, id: 2204, index: 1, rtt: 40.0 ms, 7.8.9.10 [2023-07-27 04:36:20,811][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:20,811][DEBUG][ fast_ping.c:677 ] ping 4.5.6.7 end, id 5 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2204 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 7.8.9.10 ;; Query time: 80 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:20 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] IPRule.ignore_ip (486 ms) [----------] 3 tests from IPRule (1658 ms total) [----------] 3 tests from DualStack [ RUN ] DualStack.ipv4_prefer [2023-07-27 04:36:20,835][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:20,873][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:20,874][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:20,874][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:20,883][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:20,883][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-07-27 04:36:20,883][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-07-27 04:36:21,163][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:21,163][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:21,164][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 9546, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:21,164][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 9546 [2023-07-27 04:36:21,195][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:21,195][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 20239, group: default [2023-07-27 04:36:21,196][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64 [2023-07-27 04:36:21,196][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:21,196][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 3546, group: default [2023-07-27 04:36:21,197][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 20239, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:21,198][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:21,198][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:21,198][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:21,199][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 915 [2023-07-27 04:36:21,199][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 6 [2023-07-27 04:36:21,200][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:21,200][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 914 [2023-07-27 04:36:21,200][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 7 [2023-07-27 04:36:21,200][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 20239 [2023-07-27 04:36:21,200][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:36:21,200][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 3546, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:21,200][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:21,200][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:21,200][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:21,201][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-07-27 04:36:21,201][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 8 [2023-07-27 04:36:21,201][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:36:21,201][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 945 [2023-07-27 04:36:21,201][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 9 [2023-07-27 04:36:21,201][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 3546 [2023-07-27 04:36:21,301][DEBUG][ dns_server.c:2567] from 1.2.3.4: seq=1 time=1000, lasttime=-1 id=0 [2023-07-27 04:36:21,302][ INFO][ dns_server.c:2079] result: a.com, qtype: 28, force IPv4 preferred, id: 9546, time1: -1, time2: 1000 [2023-07-27 04:36:21,302][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:21,302][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:21,303][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 9546, group: default, time: 139ms [2023-07-27 04:36:21,304][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: 100.0 ms, 1.2.3.4 [2023-07-27 04:36:21,304][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:21,304][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 100.0 ms, 1.2.3.4 [2023-07-27 04:36:21,305][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:21,305][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: 1.2.3.4, type: 1, ping: 1000, rcode: 0 [2023-07-27 04:36:21,305][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 8 [2023-07-27 04:36:21,311][DEBUG][ dns_server.c:2567] from 5.6.7.8: seq=1 time=1100, lasttime=1000 id=0 [2023-07-27 04:36:21,311][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:21,311][DEBUG][ dns_server.c:953 ] result: a.com, rtt: 100.0 ms, 1.2.3.4 [2023-07-27 04:36:21,311][ INFO][ dns_server.c:813 ] result: a.com, id: 0, index: 1, rtt: 100.0 ms, 1.2.3.4 [2023-07-27 04:36:21,312][ INFO][ dns_server.c:813 ] result: a.com, id: 0, index: 2, rtt: 110.0 ms, 5.6.7.8 [2023-07-27 04:36:21,312][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:21,312][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 9 [2023-07-27 04:36:21,350][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=1500, lasttime=-1 id=9546 [2023-07-27 04:36:21,350][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 6 [2023-07-27 04:36:21,350][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=1500, lasttime=1500 id=9546 [2023-07-27 04:36:21,350][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:21,350][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:21,350][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 7 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9546 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; AUTHORITY SECTION: a.com. 3 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 140 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:21 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:36:21,854][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:21,854][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:21,854][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 64797, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:21,855][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 64797 [2023-07-27 04:36:21,855][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 64797, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64797 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 600 IN A 1.2.3.4 a.com. 600 IN A 5.6.7.8 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:21 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] DualStack.ipv4_prefer (1180 ms) [ RUN ] DualStack.ipv6_prefer_allow_force_AAAA [2023-07-27 04:36:22,019][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:22,057][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:22,057][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:22,057][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:22,063][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:22,065][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-07-27 04:36:22,065][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-07-27 04:36:22,347][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:22,348][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:22,348][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 28445, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:22,348][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 28445 [2023-07-27 04:36:22,375][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:22,375][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 8680, group: default [2023-07-27 04:36:22,376][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:36:22,376][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 8680, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:22,377][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:22,377][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:22,377][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:22,378][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 920 [2023-07-27 04:36:22,378][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-07-27 04:36:22,378][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:36:22,378][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 920 [2023-07-27 04:36:22,378][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 7 [2023-07-27 04:36:22,382][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 8680 [2023-07-27 04:36:22,383][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:22,383][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 56510, group: default [2023-07-27 04:36:22,385][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64 [2023-07-27 04:36:22,385][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 56510, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:22,385][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:22,385][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:22,386][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:22,386][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 946 [2023-07-27 04:36:22,386][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 8 [2023-07-27 04:36:22,386][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:22,386][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 946 [2023-07-27 04:36:22,386][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 9 [2023-07-27 04:36:22,386][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 56510 [2023-07-27 04:36:22,456][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=700, lasttime=-1 id=0 [2023-07-27 04:36:22,457][ INFO][ dns_server.c:2079] result: a.com, qtype: 1, force IPv6 preferred, id: 28445, time1: -1, time2: 700 [2023-07-27 04:36:22,457][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:22,458][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:22,459][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 28445, group: default, time: 111ms [2023-07-27 04:36:22,459][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:22,460][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:22,460][DEBUG][ dns_server.c:960 ] result: a.com, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:22,460][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:22,461][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: 2001:0db8:0000:0000:0000:0000:0000:0001, type: 28, ping: 700, rcode: 0 [2023-07-27 04:36:22,462][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 8 [2023-07-27 04:36:22,462][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=751, lasttime=700 id=0 [2023-07-27 04:36:22,469][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:22,469][DEBUG][ dns_server.c:960 ] result: a.com, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:22,469][ INFO][ dns_server.c:817 ] result: a.com, id: 0, index: 1, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:22,469][ INFO][ dns_server.c:817 ] result: a.com, id: 0, index: 2, rtt: 75.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:22,470][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:22,470][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 9 [2023-07-27 04:36:22,478][DEBUG][ dns_server.c:2567] from 1.2.3.4: seq=1 time=1000, lasttime=-1 id=28445 [2023-07-27 04:36:22,478][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-07-27 04:36:22,488][DEBUG][ dns_server.c:2567] from 5.6.7.8: seq=1 time=1100, lasttime=1000 id=28445 [2023-07-27 04:36:22,488][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:22,489][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:22,489][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 7 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28445 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; AUTHORITY SECTION: a.com. 3 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 113 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:22 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:36:22,994][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:22,995][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:22,995][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 60622, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:22,995][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 60622 [2023-07-27 04:36:22,996][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 28, id: 60622, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60622 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 600 IN AAAA 2001:db8::1 a.com. 600 IN AAAA 2001:db8::2 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:23 CEST 2023 ;; MSG SIZE rcvd: 79 [ OK ] DualStack.ipv6_prefer_allow_force_AAAA (1085 ms) [ RUN ] DualStack.ipv6_prefer_must_exist_ipv4 [2023-07-27 04:36:23,102][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:23,140][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:23,140][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:23,140][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:23,146][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:23,147][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-07-27 04:36:23,147][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-07-27 04:36:23,417][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:23,417][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:23,417][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 57116, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:23,418][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 57116 [2023-07-27 04:36:23,444][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:23,445][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 55041, group: default [2023-07-27 04:36:23,446][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64 [2023-07-27 04:36:23,446][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 55041, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:23,446][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:23,447][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:23,447][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:23,448][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 920 [2023-07-27 04:36:23,448][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-07-27 04:36:23,448][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-07-27 04:36:23,448][DEBUG][ dns_server.c:2714] ping 5.6.7.8 with icmp, order: 0, timeout: 920 [2023-07-27 04:36:23,448][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 7 [2023-07-27 04:36:23,452][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 55041 [2023-07-27 04:36:23,453][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:23,453][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 9019, group: default [2023-07-27 04:36:23,455][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64 [2023-07-27 04:36:23,455][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 9019, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:23,455][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:23,455][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:23,456][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:23,456][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 947 [2023-07-27 04:36:23,456][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 8 [2023-07-27 04:36:23,456][DEBUG][ dns_server.c:2913] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-07-27 04:36:23,456][DEBUG][ dns_server.c:2714] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 947 [2023-07-27 04:36:23,456][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 9 [2023-07-27 04:36:23,456][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 9019 [2023-07-27 04:36:23,526][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=700, lasttime=-1 id=0 [2023-07-27 04:36:23,527][ INFO][ dns_server.c:2079] result: a.com, qtype: 1, force IPv6 preferred, id: 57116, time1: -1, time2: 700 [2023-07-27 04:36:23,527][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:23,528][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:23,529][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 57116, group: default, time: 111ms [2023-07-27 04:36:23,529][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:23,530][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:23,530][DEBUG][ dns_server.c:960 ] result: a.com, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:23,531][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:23,531][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: 2001:0db8:0000:0000:0000:0000:0000:0001, type: 28, ping: 700, rcode: 0 [2023-07-27 04:36:23,531][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 8 [2023-07-27 04:36:23,548][DEBUG][ dns_server.c:2567] from 1.2.3.4: seq=1 time=1000, lasttime=-1 id=57116 [2023-07-27 04:36:23,548][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-07-27 04:36:23,557][DEBUG][ dns_server.c:2567] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=1000, lasttime=700 id=0 [2023-07-27 04:36:23,557][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:23,557][DEBUG][ dns_server.c:960 ] result: a.com, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:23,557][ INFO][ dns_server.c:817 ] result: a.com, id: 0, index: 1, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-07-27 04:36:23,557][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:23,558][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 9 [2023-07-27 04:36:23,558][DEBUG][ dns_server.c:2567] from 5.6.7.8: seq=1 time=1100, lasttime=1000 id=57116 [2023-07-27 04:36:23,558][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:23,558][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:23,558][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 7 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57116 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; AUTHORITY SECTION: a.com. 3 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 113 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:23 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:36:24,069][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:24,069][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:24,069][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 7050, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:24,069][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 7050 [2023-07-27 04:36:24,070][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 28, id: 7050, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7050 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 599 IN AAAA 2001:db8::1 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:24 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] DualStack.ipv6_prefer_must_exist_ipv4 (1069 ms) [----------] 3 tests from DualStack (3335 ms total) [----------] 1 test from DomainSet [ RUN ] DomainSet.set_add domain-set -name test-set -file /tmp/smartdns-test-tmp.K1BA09 bind [::]:60053 server 127.0.0.1:61053 log-num 0 log-console yes log-level info cache-persist no domain-rules /domain-set:test-set/ -c none --dualstack-ip-selection no -a 9.9.9.9 [2023-07-27 04:36:24,172][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:24,197][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:24,203][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:24,469][ INFO][ dns_server.c:1929] result: fa37JncCHr.yDs, client: 127.0.0.1, qtype: 1, id: 33041, group: default, time: 2ms [2023-07-27 04:36:24,782][ INFO][ dns_server.c:1929] result: bzayy4cBWD.xS2, client: 127.0.0.1, qtype: 1, id: 63332, group: default, time: 0ms [2023-07-27 04:36:25,111][ INFO][ dns_server.c:1929] result: 2JjzhMaiRr.V41, client: 127.0.0.1, qtype: 1, id: 33748, group: default, time: 0ms [2023-07-27 04:36:25,437][ INFO][ dns_server.c:1929] result: mtzxlYvKWr.O72, client: 127.0.0.1, qtype: 1, id: 54404, group: default, time: 1ms [2023-07-27 04:36:25,772][ INFO][ dns_server.c:1929] result: tK0LK0e1zL.OZ2, client: 127.0.0.1, qtype: 1, id: 38517, group: default, time: 0ms [2023-07-27 04:36:26,089][ INFO][ dns_server.c:1929] result: nOXpPIhMFS.v8k, client: 127.0.0.1, qtype: 1, id: 5332, group: default, time: 0ms [2023-07-27 04:36:26,419][ INFO][ dns_server.c:1929] result: P07U20o0J9.0xA, client: 127.0.0.1, qtype: 1, id: 48949, group: default, time: 0ms [2023-07-27 04:36:26,742][ INFO][ dns_server.c:1929] result: 0GWXIIwo7J.4og, client: 127.0.0.1, qtype: 1, id: 41719, group: default, time: 0ms [2023-07-27 04:36:27,068][ INFO][ dns_server.c:1929] result: HFZQxwQ2RQ.0DR, client: 127.0.0.1, qtype: 1, id: 22537, group: default, time: 0ms [2023-07-27 04:36:27,395][ INFO][ dns_server.c:1929] result: JKRETPVzxl.FrX, client: 127.0.0.1, qtype: 1, id: 62934, group: default, time: 0ms [2023-07-27 04:36:27,730][ INFO][ dns_server.c:1929] result: L8b7mtKLHI.GhI, client: 127.0.0.1, qtype: 1, id: 6898, group: default, time: 0ms [2023-07-27 04:36:28,050][ INFO][ dns_server.c:1929] result: h5JuWcFwrg.JKd, client: 127.0.0.1, qtype: 1, id: 23172, group: default, time: 1ms [2023-07-27 04:36:28,396][ INFO][ dns_server.c:1929] result: E3t5bECALy.3eK, client: 127.0.0.1, qtype: 1, id: 26840, group: default, time: 0ms [2023-07-27 04:36:28,726][ INFO][ dns_server.c:1929] result: IwYxEF3V7Z.8KT, client: 127.0.0.1, qtype: 1, id: 17626, group: default, time: 0ms [2023-07-27 04:36:29,047][ INFO][ dns_server.c:1929] result: x0nFe1IX5t.jH2, client: 127.0.0.1, qtype: 1, id: 15381, group: default, time: 0ms [2023-07-27 04:36:29,356][ INFO][ dns_server.c:1929] result: 2F5gXOa5Ln.IMI, client: 127.0.0.1, qtype: 1, id: 43842, group: default, time: 1ms [2023-07-27 04:36:29,715][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 27884, group: default [2023-07-27 04:36:29,717][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 59675, group: default [2023-07-27 04:36:29,723][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:29,724][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:29,724][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:29,725][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 63323, group: default, time: 39ms [2023-07-27 04:36:29,726][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [ OK ] DomainSet.set_add (5662 ms) [----------] 1 test from DomainSet (5662 ms total) [----------] 1 test from DomainRule [ RUN ] DomainRule.bogus_nxdomain [2023-07-27 04:36:29,835][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:29,866][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:29,867][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:29,867][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:29,872][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:30,164][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:30,165][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:30,165][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 63143, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:30,165][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 63143 [2023-07-27 04:36:30,192][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:30,192][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 62162, group: default [2023-07-27 04:36:30,193][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:30,193][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:30,193][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 31367, group: default [2023-07-27 04:36:30,194][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 62162, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:30,194][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:30,194][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:30,195][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 10.11.12.13 [2023-07-27 04:36:30,195][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 62162 [2023-07-27 04:36:30,196][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:30,196][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 31367, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:30,196][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:30,196][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:30,196][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:30,196][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:30,196][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:30,197][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:30,197][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:30,198][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:30,198][ INFO][ dns_server.c:2117] result: a.com, qtype: 1, SOA [2023-07-27 04:36:30,198][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:30,198][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 1, return SOA [2023-07-27 04:36:30,198][ INFO][ dns_server.c:994 ] result: a.com, qtype: 1, rtcode: 3 [2023-07-27 04:36:30,198][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 63143, group: default, time: 33ms [2023-07-27 04:36:30,199][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:30,199][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 1, return SOA [2023-07-27 04:36:30,199][ INFO][ dns_server.c:994 ] result: a.com, qtype: 1, rtcode: 3 [2023-07-27 04:36:30,199][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 31367 [2023-07-27 04:36:30,199][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:30,199][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:30,199][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63143 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; AUTHORITY SECTION: a.com. 60 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 36 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:30 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:36:30,529][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:30,529][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:30,529][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 15243, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:30,529][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 15243 [2023-07-27 04:36:30,529][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:30,529][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 5674, group: default [2023-07-27 04:36:30,529][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:30,529][ INFO][ dns_client.c:3848] request: b.com, qtype: 28, id: 50824, group: default [2023-07-27 04:36:30,530][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:30,530][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 5674, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:30,530][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:36:30,530][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:30,530][DEBUG][ dns_server.c:2837] domain: b.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:30,530][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 948 [2023-07-27 04:36:30,531][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:30,531][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 5674 [2023-07-27 04:36:30,531][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:30,531][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 50824, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:30,531][DEBUG][ dns_client.c:1704] domain: b.com qtype: 28 qclass: 1 [2023-07-27 04:36:30,531][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:30,531][DEBUG][ dns_server.c:3053] domain: b.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:30,531][ INFO][ dns_server.c:2117] result: b.com, qtype: 28, SOA [2023-07-27 04:36:30,531][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:30,531][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:36:30,531][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:30,531][DEBUG][ dns_server.c:3423] dualstack result: domain: b.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:30,531][ INFO][ dns_server.c:2120] result: b.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:30,532][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:30,532][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:30,532][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 611 [2023-07-27 04:36:30,532][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 15243, group: default, time: 4ms [2023-07-27 04:36:30,532][DEBUG][ dns_client.c:1476] result: b.com, qtype: 28, has-result: 1, id 50824 [2023-07-27 04:36:30,532][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:30,532][DEBUG][ dns_server.c:983 ] result: b.com, qtype: 28, return SOA [2023-07-27 04:36:30,533][ INFO][ dns_server.c:994 ] result: b.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:30,541][DEBUG][ dns_server.c:2567] from 1.2.3.4: seq=1 time=100, lasttime=-1 id=15243 [2023-07-27 04:36:30,541][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:30,541][DEBUG][ dns_server.c:953 ] result: b.com, rtt: 10.0 ms, 1.2.3.4 [2023-07-27 04:36:30,542][ INFO][ dns_server.c:813 ] result: b.com, id: 15243, index: 1, rtt: 10.0 ms, 1.2.3.4 [2023-07-27 04:36:30,542][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 611 [2023-07-27 04:36:30,542][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15243 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 3 IN A 1.2.3.4 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:30 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] DomainRule.bogus_nxdomain (812 ms) [----------] 1 test from DomainRule (812 ms total) [----------] 1 test from DNS64 [ RUN ] DNS64.no_dualstack [2023-07-27 04:36:30,652][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:30,684][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:30,685][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:30,685][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:30,686][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:30,971][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:30,971][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:30,971][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 24935, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:30,971][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 24935 [2023-07-27 04:36:31,001][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:31,002][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:31,003][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 21594, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:31,003][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:31,003][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:31,004][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 21594, group: default [2023-07-27 04:36:31,004][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 21594 [2023-07-27 04:36:31,004][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 0000:0000:0000:0000:0000:0000:0000:0000 [2023-07-27 04:36:31,005][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:31,006][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:31,007][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 24935, group: default, time: 35ms [2023-07-27 04:36:31,008][DEBUG][ dns_server.c:4516] query a.com with dns64 [2023-07-27 04:36:31,008][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:31,008][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:31,008][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 9045, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:31,009][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:31,009][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:31,009][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:31,009][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 949 [2023-07-27 04:36:31,009][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:31,010][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 9045, group: default [2023-07-27 04:36:31,010][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 9045 [2023-07-27 04:36:31,010][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:31,010][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:31,010][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:31,010][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:31,011][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:31,011][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:36:31,012][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 600 [2023-07-27 04:36:31,012][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 24935, group: default, time: 41ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24935 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; Query time: 36 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:31 CEST 2023 ;; MSG SIZE rcvd: 23 cases/test-dns64.cc:58: Failure Expected equality of these values: client.GetAnswerNum() Which is: 0 1 [ FAILED ] DNS64.no_dualstack (478 ms) [----------] 1 test from DNS64 (478 ms total) [----------] 2 tests from DiscardBlockIP [ RUN ] DiscardBlockIP.first_ping [2023-07-27 04:36:31,129][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:31,166][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:31,167][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:31,167][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:31,172][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:31,173][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:31,454][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:31,454][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:31,454][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 55188, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:31,454][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 55188 [2023-07-27 04:36:31,483][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:31,483][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:31,484][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 23439, group: default [2023-07-27 04:36:31,485][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:31,485][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 23439, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:31,485][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:31,485][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:31,486][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 0.0.0.0 [2023-07-27 04:36:31,486][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:31,487][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:31,487][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 41575, group: default [2023-07-27 04:36:31,487][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:31,487][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 41575, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:31,488][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:31,488][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:31,488][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:31,489][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:31,489][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:31,490][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:31,490][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:31,491][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:31,504][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:31,504][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 23439, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:31,504][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:31,504][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:31,504][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:31,505][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 900 [2023-07-27 04:36:31,505][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:31,505][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 23439 [2023-07-27 04:36:31,506][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:31,506][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:31,506][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:31,507][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:31,507][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 55188, group: default, time: 53ms [2023-07-27 04:36:31,508][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:31,508][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 41575, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:31,508][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:31,508][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:31,508][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:31,508][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 41575 [2023-07-27 04:36:31,508][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:31,509][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:31,509][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55188 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 56 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:31 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] DiscardBlockIP.first_ping (578 ms) [ RUN ] DiscardBlockIP.first_response [2023-07-27 04:36:31,712][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:31,750][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:31,750][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:31,750][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:31,756][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:31,756][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:32,046][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:32,046][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:32,046][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 29849, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:32,046][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 29849 [2023-07-27 04:36:32,074][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:32,075][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:32,076][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 16587, group: default [2023-07-27 04:36:32,076][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:32,076][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:32,076][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 47289, group: default [2023-07-27 04:36:32,077][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:32,077][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 16587, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:32,077][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:32,078][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:32,078][DEBUG][ dns_server.c:3126] domain: a.com TTL: 611 IP: 0.0.0.0 [2023-07-27 04:36:32,078][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 0.0.0.0 [2023-07-27 04:36:32,079][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:32,079][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 47289, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:32,079][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:32,096][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:32,096][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 16587, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:32,096][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:32,096][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:32,096][DEBUG][ dns_server.c:3126] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:32,096][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:32,098][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 29849, group: default, time: 52ms [2023-07-27 04:36:32,098][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:32,099][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 897 [2023-07-27 04:36:32,099][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:32,099][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 16587 [2023-07-27 04:36:32,116][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:32,116][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 47289, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:32,116][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29849 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 56 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:32 CEST 2023 ;; MSG SIZE rcvd: 33 [ OK ] DiscardBlockIP.first_response (589 ms) [----------] 2 tests from DiscardBlockIP (1168 ms total) [----------] 4 tests from Cname [ RUN ] Cname.cname [2023-07-27 04:36:32,295][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:32,330][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:32,330][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:32,330][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:32,336][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:32,626][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:32,626][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:32,626][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 59630, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:32,627][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 59630 [2023-07-27 04:36:32,627][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-07-27 04:36:32,628][ INFO][ dns_server.c:4353] query a.com with cname b.com [2023-07-27 04:36:32,628][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: b.com, rule: b.com [2023-07-27 04:36:32,628][ INFO][ dns_server.c:4353] query b.com with cname c.com [2023-07-27 04:36:32,628][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: c.com, rule: c.com [2023-07-27 04:36:32,628][ INFO][ dns_server.c:4353] query c.com with cname d.com [2023-07-27 04:36:32,628][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: d.com, rule: d.com [2023-07-27 04:36:32,629][ INFO][ dns_server.c:4353] query d.com with cname e.com [2023-07-27 04:36:32,656][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:32,657][ INFO][ dns_client.c:3848] request: e.com, qtype: 1, id: 61440, group: default [2023-07-27 04:36:32,658][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:32,658][ INFO][ dns_client.c:3848] request: e.com, qtype: 28, id: 49655, group: default [2023-07-27 04:36:32,659][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:32,659][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 61440, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:32,659][DEBUG][ dns_client.c:1704] domain: e.com qtype: 1 qclass: 1 [2023-07-27 04:36:32,660][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:32,660][DEBUG][ dns_server.c:2837] domain: e.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:32,661][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 918 [2023-07-27 04:36:32,661][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:32,661][DEBUG][ dns_client.c:1476] result: e.com, qtype: 1, has-result: 1, id 61440 [2023-07-27 04:36:32,662][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:32,665][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 49655, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:32,665][DEBUG][ dns_client.c:1704] domain: e.com qtype: 28 qclass: 1 [2023-07-27 04:36:32,665][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:32,666][DEBUG][ dns_server.c:3053] domain: e.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:32,666][ INFO][ dns_server.c:2117] result: e.com, qtype: 28, SOA [2023-07-27 04:36:32,666][DEBUG][ dns_server.c:1874] reply e.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:32,666][DEBUG][ dns_server.c:983 ] result: e.com, qtype: 28, return SOA [2023-07-27 04:36:32,666][ INFO][ dns_server.c:994 ] result: e.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:32,667][DEBUG][ dns_server.c:3423] dualstack result: domain: e.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:32,667][ INFO][ dns_server.c:2120] result: e.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:32,668][DEBUG][ dns_server.c:1874] reply e.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:32,668][DEBUG][ dns_server.c:953 ] result: e.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:32,668][DEBUG][ dns_server.c:1269] cache e.com qtype: 1 ttl: 611 [2023-07-27 04:36:32,669][DEBUG][ dns_server.c:1874] reply d.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:32,669][DEBUG][ dns_server.c:953 ] result: d.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1269] cache d.com qtype: 1 ttl: 611 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1874] reply c.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:953 ] result: c.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1269] cache c.com qtype: 1 ttl: 611 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 611 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:32,670][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:32,670][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 59630, group: default, time: 44ms [2023-07-27 04:36:32,671][DEBUG][ dns_client.c:1476] result: e.com, qtype: 28, has-result: 1, id 49655 [2023-07-27 04:36:32,671][DEBUG][ dns_server.c:1874] reply e.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:32,671][DEBUG][ dns_server.c:983 ] result: e.com, qtype: 28, return SOA [2023-07-27 04:36:32,671][ INFO][ dns_server.c:994 ] result: e.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59630 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN CNAME b.com. b.com. 3 IN A 1.2.3.4 ;; Query time: 50 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:32 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.cname (481 ms) [ RUN ] Cname.subdomain1 [2023-07-27 04:36:32,775][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:32,800][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:32,801][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:32,801][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:32,802][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:33,074][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:33,074][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:33,074][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 59418, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:33,075][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 59418 [2023-07-27 04:36:33,075][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-07-27 04:36:33,076][ INFO][ dns_server.c:4353] query a.com with cname s.a.com [2023-07-27 04:36:33,076][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-07-27 04:36:33,108][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:33,109][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64 [2023-07-27 04:36:33,110][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 9901, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:33,110][DEBUG][ dns_client.c:1704] domain: s.a.com qtype: 1 qclass: 1 [2023-07-27 04:36:33,110][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:33,111][DEBUG][ dns_server.c:2837] domain: s.a.com TTL: 700 IP: 4.5.6.7 [2023-07-27 04:36:33,111][DEBUG][ dns_server.c:2714] ping 4.5.6.7 with icmp, order: 0, timeout: 915 [2023-07-27 04:36:33,111][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 5 [2023-07-27 04:36:33,112][ INFO][ dns_client.c:3848] request: s.a.com, qtype: 1, id: 9901, group: default [2023-07-27 04:36:33,112][DEBUG][ dns_client.c:1476] result: s.a.com, qtype: 1, has-result: 1, id 9901 [2023-07-27 04:36:33,112][ INFO][ dns_server.c:2120] result: s.a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,113][DEBUG][ dns_server.c:1874] reply s.a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:33,113][DEBUG][ dns_server.c:953 ] result: s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,114][DEBUG][ dns_server.c:1269] cache s.a.com qtype: 1 ttl: 700 [2023-07-27 04:36:33,115][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:33,115][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,115][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 700 [2023-07-27 04:36:33,116][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 59418, group: default, time: 41ms [2023-07-27 04:36:33,117][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-07-27 04:36:33,117][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:33,117][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 84, ttl: 64 [2023-07-27 04:36:33,118][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 84, id = 47802, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:33,118][DEBUG][ dns_client.c:1704] domain: s.a.com qtype: 28 qclass: 1 [2023-07-27 04:36:33,118][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:33,118][DEBUG][ dns_server.c:3053] domain: s.a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:33,118][ INFO][ dns_server.c:2117] result: s.a.com, qtype: 28, SOA [2023-07-27 04:36:33,118][DEBUG][ dns_server.c:1874] reply s.a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:33,118][DEBUG][ dns_server.c:983 ] result: s.a.com, qtype: 28, return SOA [2023-07-27 04:36:33,118][ INFO][ dns_server.c:994 ] result: s.a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:33,118][DEBUG][ dns_server.c:3423] dualstack result: domain: s.a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:33,119][ INFO][ dns_client.c:3848] request: s.a.com, qtype: 28, id: 47802, group: default [2023-07-27 04:36:33,119][DEBUG][ dns_client.c:1476] result: s.a.com, qtype: 28, has-result: 1, id 47802 [2023-07-27 04:36:33,119][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-07-27 04:36:33,119][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:33,119][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64 [2023-07-27 04:36:33,119][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 32361, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:33,119][DEBUG][ dns_client.c:1704] domain: s.a.com qtype: 1 qclass: 1 [2023-07-27 04:36:33,119][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:33,119][DEBUG][ dns_server.c:2837] domain: s.a.com TTL: 700 IP: 4.5.6.7 [2023-07-27 04:36:33,119][DEBUG][ dns_server.c:2714] ping 4.5.6.7 with icmp, order: 0, timeout: 950 [2023-07-27 04:36:33,119][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 6 [2023-07-27 04:36:33,119][ INFO][ dns_client.c:3848] request: s.a.com, qtype: 1, id: 32361, group: default [2023-07-27 04:36:33,119][DEBUG][ dns_client.c:1476] result: s.a.com, qtype: 1, has-result: 1, id 32361 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59418 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN CNAME s.a.com. s.a.com. 3 IN A 4.5.6.7 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:33 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.subdomain1 (460 ms) [ RUN ] Cname.subdomain2 [2023-07-27 04:36:33,232][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:33,263][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:33,264][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:33,264][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:33,272][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:33,557][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:33,557][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:33,558][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 61063, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:33,558][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 61063 [2023-07-27 04:36:33,559][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-07-27 04:36:33,559][ INFO][ dns_server.c:4353] query a.com with cname s.a.com [2023-07-27 04:36:33,560][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: s.a.com, rule: s.a.com [2023-07-27 04:36:33,560][ INFO][ dns_server.c:4353] query s.a.com with cname a.s.a.com [2023-07-27 04:36:33,560][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: a.s.a.com, rule: s.a.com [2023-07-27 04:36:33,591][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:33,592][ INFO][ dns_client.c:3848] request: a.s.a.com, qtype: 1, id: 41896, group: default [2023-07-27 04:36:33,592][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: a.s.a.com, rule: s.a.com [2023-07-27 04:36:33,592][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 37, ttl: 64 [2023-07-27 04:36:33,592][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:33,593][ INFO][ dns_client.c:3848] request: a.s.a.com, qtype: 28, id: 20727, group: default [2023-07-27 04:36:33,593][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 37, id = 41896, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:33,593][DEBUG][ dns_client.c:1704] domain: a.s.a.com qtype: 1 qclass: 1 [2023-07-27 04:36:33,594][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:33,594][DEBUG][ dns_server.c:2837] domain: a.s.a.com TTL: 700 IP: 4.5.6.7 [2023-07-27 04:36:33,595][DEBUG][ dns_server.c:2714] ping 4.5.6.7 with icmp, order: 0, timeout: 915 [2023-07-27 04:36:33,595][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 5 [2023-07-27 04:36:33,595][DEBUG][ dns_client.c:1476] result: a.s.a.com, qtype: 1, has-result: 1, id 41896 [2023-07-27 04:36:33,595][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 86, ttl: 64 [2023-07-27 04:36:33,596][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 86, id = 20727, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:33,596][DEBUG][ dns_client.c:1704] domain: a.s.a.com qtype: 28 qclass: 1 [2023-07-27 04:36:33,596][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:33,596][DEBUG][ dns_server.c:3053] domain: a.s.a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:33,596][ INFO][ dns_server.c:2117] result: a.s.a.com, qtype: 28, SOA [2023-07-27 04:36:33,596][DEBUG][ dns_server.c:1874] reply a.s.a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:33,596][DEBUG][ dns_server.c:983 ] result: a.s.a.com, qtype: 28, return SOA [2023-07-27 04:36:33,597][ INFO][ dns_server.c:994 ] result: a.s.a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:33,597][DEBUG][ dns_server.c:3423] dualstack result: domain: a.s.a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:33,598][ INFO][ dns_server.c:2120] result: a.s.a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,598][DEBUG][ dns_server.c:1874] reply a.s.a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:33,598][DEBUG][ dns_server.c:953 ] result: a.s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,599][DEBUG][ dns_server.c:1269] cache a.s.a.com qtype: 1 ttl: 700 [2023-07-27 04:36:33,599][DEBUG][ dns_server.c:1874] reply s.a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:33,599][DEBUG][ dns_server.c:953 ] result: s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,600][DEBUG][ dns_server.c:1269] cache s.a.com qtype: 1 ttl: 700 [2023-07-27 04:36:33,600][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:33,600][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:33,600][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 700 [2023-07-27 04:36:33,600][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 61063, group: default, time: 42ms [2023-07-27 04:36:33,601][DEBUG][ dns_client.c:1476] result: a.s.a.com, qtype: 28, has-result: 1, id 20727 [2023-07-27 04:36:33,601][DEBUG][ dns_server.c:1874] reply a.s.a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:33,601][DEBUG][ dns_server.c:983 ] result: a.s.a.com, qtype: 28, return SOA [2023-07-27 04:36:33,601][ INFO][ dns_server.c:994 ] result: a.s.a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61063 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN CNAME s.a.com. s.a.com. 3 IN A 4.5.6.7 ;; Query time: 46 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:33 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.subdomain2 (473 ms) [ RUN ] Cname.loop [2023-07-27 04:36:33,715][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:33,749][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:33,749][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:33,749][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:33,753][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:34,035][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:34,035][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:34,035][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 5457, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:34,035][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 5457 [2023-07-27 04:36:34,036][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-07-27 04:36:34,037][ INFO][ dns_server.c:4353] query a.com with cname c.a.com [2023-07-27 04:36:34,037][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: c.a.com, rule: c.a.com [2023-07-27 04:36:34,037][ INFO][ dns_server.c:4353] query c.a.com with cname s.a.com [2023-07-27 04:36:34,037][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-07-27 04:36:34,067][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:34,068][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64 [2023-07-27 04:36:34,068][ INFO][ dns_client.c:3848] request: s.a.com, qtype: 1, id: 37877, group: default [2023-07-27 04:36:34,069][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 37877, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:34,069][DEBUG][ dns_client.c:1704] domain: s.a.com qtype: 1 qclass: 1 [2023-07-27 04:36:34,069][ INFO][ dns_server.c:3871] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-07-27 04:36:34,069][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:34,070][DEBUG][ dns_server.c:2837] domain: s.a.com TTL: 700 IP: 4.5.6.7 [2023-07-27 04:36:34,070][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:34,070][ INFO][ dns_client.c:3848] request: s.a.com, qtype: 28, id: 47847, group: default [2023-07-27 04:36:34,071][DEBUG][ dns_server.c:2714] ping 4.5.6.7 with icmp, order: 0, timeout: 916 [2023-07-27 04:36:34,071][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 5 [2023-07-27 04:36:34,072][DEBUG][ dns_client.c:1476] result: s.a.com, qtype: 1, has-result: 1, id 37877 [2023-07-27 04:36:34,072][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 84, ttl: 64 [2023-07-27 04:36:34,072][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 84, id = 47847, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:34,072][DEBUG][ dns_client.c:1704] domain: s.a.com qtype: 28 qclass: 1 [2023-07-27 04:36:34,072][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:34,072][DEBUG][ dns_server.c:3053] domain: s.a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:34,073][ INFO][ dns_server.c:2117] result: s.a.com, qtype: 28, SOA [2023-07-27 04:36:34,073][DEBUG][ dns_server.c:1874] reply s.a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:34,073][DEBUG][ dns_server.c:983 ] result: s.a.com, qtype: 28, return SOA [2023-07-27 04:36:34,073][ INFO][ dns_server.c:994 ] result: s.a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:34,074][DEBUG][ dns_server.c:3423] dualstack result: domain: s.a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:34,074][ INFO][ dns_server.c:2120] result: s.a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:34,075][DEBUG][ dns_server.c:1874] reply s.a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:34,075][DEBUG][ dns_server.c:953 ] result: s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:34,075][DEBUG][ dns_server.c:1269] cache s.a.com qtype: 1 ttl: 700 [2023-07-27 04:36:34,076][DEBUG][ dns_server.c:1874] reply c.a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:34,076][DEBUG][ dns_server.c:953 ] result: c.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:34,076][DEBUG][ dns_server.c:1269] cache c.a.com qtype: 1 ttl: 700 [2023-07-27 04:36:34,076][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:34,076][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-07-27 04:36:34,076][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 700 [2023-07-27 04:36:34,077][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 5457, group: default, time: 42ms [2023-07-27 04:36:34,077][DEBUG][ dns_client.c:1476] result: s.a.com, qtype: 28, has-result: 1, id 47847 [2023-07-27 04:36:34,077][DEBUG][ dns_server.c:1874] reply s.a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:34,077][DEBUG][ dns_server.c:983 ] result: s.a.com, qtype: 28, return SOA [2023-07-27 04:36:34,077][ INFO][ dns_server.c:994 ] result: s.a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5457 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN CNAME c.a.com. c.a.com. 3 IN A 4.5.6.7 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:34 CEST 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.loop (477 ms) [----------] 4 tests from Cname (1893 ms total) [----------] 6 tests from Cache [ RUN ] Cache.min [2023-07-27 04:36:34,182][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:34,206][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:36:34,207][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:36:34,208][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:34,469][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:34,469][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:34,469][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 62508, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:34,469][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 62508 [2023-07-27 04:36:34,499][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:34,501][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:34,501][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 12895, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:34,501][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:34,502][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:34,502][DEBUG][ dns_server.c:3126] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:34,503][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 1 [2023-07-27 04:36:34,504][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 62508, group: default, time: 35ms [2023-07-27 04:36:34,505][DEBUG][ dns_server.c:2837] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:34,506][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 12895, group: default [2023-07-27 04:36:34,506][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 12895 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62508 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 1 IN A 1.2.3.4 ;; Query time: 40 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:34 CEST 2023 ;; MSG SIZE rcvd: 33 [ OK ] Cache.min (435 ms) [ RUN ] Cache.max_reply_ttl [2023-07-27 04:36:34,620][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:34,647][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:36:34,648][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:36:34,652][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:34,924][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:34,924][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:34,924][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 15941, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:34,925][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 15941 [2023-07-27 04:36:34,954][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:34,955][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 45315, group: default [2023-07-27 04:36:34,955][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:34,956][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 45315, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:34,956][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:34,956][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:34,957][DEBUG][ dns_server.c:3126] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:34,957][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:34,959][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 15941, group: default, time: 34ms [2023-07-27 04:36:34,959][DEBUG][ dns_server.c:2837] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:34,960][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 45315 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15941 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 5 IN A 1.2.3.4 ;; Query time: 36 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:34 CEST 2023 ;; MSG SIZE rcvd: 33 [ OK ] Cache.max_reply_ttl (448 ms) [ RUN ] Cache.max_reply_ttl_expired [2023-07-27 04:36:35,072][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:35,103][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:35,103][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:35,103][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:35,106][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:35,361][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:35,361][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:35,361][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 64180, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:35,361][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 64180 [2023-07-27 04:36:35,392][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:35,393][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 45879, group: default [2023-07-27 04:36:35,394][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:35,394][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 45879, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:35,394][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:35,394][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:35,395][DEBUG][ dns_server.c:2837] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:35,396][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 915 [2023-07-27 04:36:35,396][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:35,396][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 45879 [2023-07-27 04:36:35,396][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:35,397][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:35,397][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:35,398][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:35,399][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 64180, group: default, time: 38ms [2023-07-27 04:36:35,400][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:35,400][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 5083, group: default [2023-07-27 04:36:35,401][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:36:35,401][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 5083, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:35,401][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:35,401][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:35,401][DEBUG][ dns_server.c:2913] domain: a.com TTL: 0 IP: 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:35,401][DEBUG][ dns_server.c:2714] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] with icmp, order: 0, timeout: 948 [2023-07-27 04:36:35,401][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10], id = 6 [2023-07-27 04:36:35,402][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 5083 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64180 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 40 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:35 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:35,708][DEBUG][ dns_server.c:2719] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 with tcp, order: 1, timeout: 642 [2023-07-27 04:36:35,708][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80, id = 7 [2023-07-27 04:36:35,731][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:35,731][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:35,731][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 62671, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:35,731][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 62671 [2023-07-27 04:36:35,732][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 62671, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62671 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 6 IN A 1.2.3.4 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:35 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Cache.max_reply_ttl_expired (745 ms) [ RUN ] Cache.nocache [2023-07-27 04:36:35,825][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:35,863][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:35,869][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:35,869][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:35,876][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:36,168][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:36,168][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:36,168][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 61235, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:36,168][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 61235 [2023-07-27 04:36:36,169][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:36:36,200][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:36,201][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 16294, group: default [2023-07-27 04:36:36,201][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:36:36,201][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:36,201][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 7060, group: default [2023-07-27 04:36:36,216][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:36,217][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 16294, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:36,217][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:36,217][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:36,217][DEBUG][ dns_server.c:2837] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:36,218][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 900 [2023-07-27 04:36:36,218][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:36,219][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 16294 [2023-07-27 04:36:36,231][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:36:36,232][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 7060, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:36,232][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:36,232][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:36,232][DEBUG][ dns_server.c:2913] domain: a.com TTL: 0 IP: 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:36,232][DEBUG][ dns_server.c:2714] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] with icmp, order: 0, timeout: 919 [2023-07-27 04:36:36,232][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10], id = 6 [2023-07-27 04:36:36,232][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 7060 [2023-07-27 04:36:36,477][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 641 [2023-07-27 04:36:36,477][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 7 [2023-07-27 04:36:36,477][DEBUG][ dns_server.c:2719] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 with tcp, order: 1, timeout: 674 [2023-07-27 04:36:36,477][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80, id = 8 [2023-07-27 04:36:36,676][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 441 [2023-07-27 04:36:36,677][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 9 [2023-07-27 04:36:36,776][DEBUG][ dns_server.c:2719] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443 with tcp, order: 2, timeout: 375 [2023-07-27 04:36:36,776][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443, id = 10 [2023-07-27 04:36:37,120][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:37,120][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:37,120][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:37,120][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 7 [2023-07-27 04:36:37,120][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:37,120][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 9 [2023-07-27 04:36:37,220][DEBUG][ dns_server.c:2546] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] timeout [2023-07-27 04:36:37,220][DEBUG][ fast_ping.c:677 ] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] end, id 6 [2023-07-27 04:36:37,220][DEBUG][ dns_server.c:2546] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443 timeout [2023-07-27 04:36:37,220][DEBUG][ fast_ping.c:677 ] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443 end, id 10 [2023-07-27 04:36:37,220][DEBUG][ dns_server.c:2546] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 timeout [2023-07-27 04:36:37,220][DEBUG][ dns_server.c:2294] select best ip address, a.com [2023-07-27 04:36:37,220][DEBUG][ dns_server.c:2306] possible result: a.com, rcode: 0, hitnum: 1, 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:37,221][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:37,221][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:37,222][ INFO][ dns_server.c:817 ] result: a.com, id: 0, index: 1, rtt: -0.1 ms, 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:37,222][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: 0102:0304:0506:0708:090a:0b0c:0d0e:0f10, type: 28, ping: -1, rcode: 0 [2023-07-27 04:36:37,223][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:37,223][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:37,223][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:37,223][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 61235, group: default, time: 1055ms [2023-07-27 04:36:37,224][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:37,224][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:37,224][ INFO][ dns_server.c:813 ] result: a.com, id: 61235, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:37,224][DEBUG][ fast_ping.c:677 ] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 end, id 8 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61235 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 1056 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:37 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:37,550][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:37,551][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:37,551][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 37002, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:37,551][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 37002 [2023-07-27 04:36:37,551][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:36:37,551][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:37,551][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 42093, group: default [2023-07-27 04:36:37,551][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:36:37,551][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:37,551][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 29286, group: default [2023-07-27 04:36:37,566][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:37,566][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 42093, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:37,566][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:37,566][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:37,567][DEBUG][ dns_server.c:2837] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-07-27 04:36:37,567][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 934 [2023-07-27 04:36:37,567][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 11 [2023-07-27 04:36:37,567][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 42093 [2023-07-27 04:36:37,581][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:36:37,582][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 29286, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:37,582][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:37,582][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:37,582][DEBUG][ dns_server.c:2913] domain: a.com TTL: 0 IP: 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:37,582][DEBUG][ dns_server.c:2714] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] with icmp, order: 0, timeout: 919 [2023-07-27 04:36:37,582][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10], id = 12 [2023-07-27 04:36:37,582][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 29286 [2023-07-27 04:36:37,876][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 625 [2023-07-27 04:36:37,876][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 13 [2023-07-27 04:36:37,876][DEBUG][ dns_server.c:2719] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 with tcp, order: 1, timeout: 625 [2023-07-27 04:36:37,876][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80, id = 14 [2023-07-27 04:36:38,077][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 424 [2023-07-27 04:36:38,077][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 15 [2023-07-27 04:36:38,077][DEBUG][ dns_server.c:2719] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443 with tcp, order: 2, timeout: 424 [2023-07-27 04:36:38,077][DEBUG][ fast_ping.c:1448] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443, id = 16 [2023-07-27 04:36:38,567][DEBUG][ dns_server.c:2546] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 timeout [2023-07-27 04:36:38,568][DEBUG][ fast_ping.c:677 ] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:80 end, id 14 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:38,568][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 13 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2546] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] timeout [2023-07-27 04:36:38,568][DEBUG][ fast_ping.c:677 ] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10] end, id 12 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:38,568][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 15 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:38,568][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 11 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2546] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443 timeout [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2294] select best ip address, a.com [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:2306] possible result: a.com, rcode: 0, hitnum: 1, 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:38,568][ INFO][ dns_server.c:817 ] result: a.com, id: 0, index: 1, rtt: -0.1 ms, 0102:0304:0506:0708:090a:0b0c:0d0e:0f10 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: 0102:0304:0506:0708:090a:0b0c:0d0e:0f10, type: 28, ping: -1, rcode: 0 [2023-07-27 04:36:38,568][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:38,568][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 37002, group: default, time: 1017ms [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:38,568][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:38,568][ INFO][ dns_server.c:813 ] result: a.com, id: 37002, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:38,568][DEBUG][ fast_ping.c:677 ] ping [0102:0304:0506:0708:090a:0b0c:0d0e:0f10]:443 end, id 16 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37002 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 1020 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:38 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Cache.nocache (2881 ms) [ RUN ] Cache.save_file [2023-07-27 04:36:38,696][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:38,726][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:38,726][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:38,726][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:38,729][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:38,998][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:38,998][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:38,998][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 12093, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:38,999][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 12093 [2023-07-27 04:36:39,030][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:39,032][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:39,032][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 53385, group: default [2023-07-27 04:36:39,033][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 53385, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:39,033][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:39,033][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:39,034][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:39,034][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 915 [2023-07-27 04:36:39,034][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:39,035][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 53385 [2023-07-27 04:36:39,035][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,036][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:39,036][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,036][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:39,037][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 12093, group: default, time: 39ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12093 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:39 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:39,094][ INFO][ smartdns.c:574 ] stop smartdns by signal 15 [2023-07-27 04:36:39,194][ INFO][ smartdns.c:562 ] smartdns exit... [2023-07-27 04:36:39,195][DEBUG][ dns_client.c:1220] server 127.0.0.1 closed. [2023-07-27 04:36:39,196][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:39,196][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,196][ INFO][ dns_server.c:813 ] result: a.com, id: 12093, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,196][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:39,197][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:39,197][DEBUG][ dns_cache.c:893 ] write cache file /tmp/smartdns_cache.QuOiNJj8YL [2023-07-27 04:36:39,197][DEBUG][ dns_cache.c:936 ] wrote total 1 records. [ OK ] Cache.save_file (749 ms) [ RUN ] Cache.corrupt_file [2023-07-27 04:36:39,452][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:39,493][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:39,494][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:39,494][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:39,499][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:39,784][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:39,785][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:39,785][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 53601, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:39,785][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 53601 [2023-07-27 04:36:39,818][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:39,818][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 28093, group: default [2023-07-27 04:36:39,819][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:39,819][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 28093, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:39,820][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:39,820][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:39,820][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:39,821][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 914 [2023-07-27 04:36:39,821][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:39,821][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 28093 [2023-07-27 04:36:39,822][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,822][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:39,823][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,823][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:39,824][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 53601, group: default, time: 39ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53601 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:39 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:39,885][ INFO][ smartdns.c:574 ] stop smartdns by signal 15 [2023-07-27 04:36:39,985][ INFO][ smartdns.c:562 ] smartdns exit... [2023-07-27 04:36:39,986][DEBUG][ dns_client.c:1220] server 127.0.0.1 closed. [2023-07-27 04:36:39,987][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:39,987][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,987][ INFO][ dns_server.c:813 ] result: a.com, id: 53601, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:39,987][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:39,988][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:39,988][DEBUG][ dns_cache.c:893 ] write cache file /tmp/smartdns_cache.8rqDiZSkZf [2023-07-27 04:36:39,988][DEBUG][ dns_cache.c:936 ] wrote total 1 records. try make corrupt at 45, file size: 455 [2023-07-27 04:36:40,205][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:40,242][ INFO][ dns_cache.c:824 ] load cache file /tmp/smartdns_cache.8rqDiZSkZf, total 1 records [2023-07-27 04:36:40,243][ERROR][ dns_cache.c:724 ] magic is invalid. [2023-07-27 04:36:40,243][ WARN][ dns_server.c:7022] Load cache failed. [2023-07-27 04:36:40,244][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:40,244][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:40,244][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:40,249][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:40,556][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:40,556][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:40,556][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 20591, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:40,557][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 20591 [2023-07-27 04:36:40,589][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:40,590][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:40,590][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 29930, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:40,590][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:40,591][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:40,591][DEBUG][ dns_server.c:2837] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-07-27 04:36:40,592][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 915 [2023-07-27 04:36:40,592][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:40,595][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 29930, group: default [2023-07-27 04:36:40,595][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 29930 [2023-07-27 04:36:40,596][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:40,596][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:40,597][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:40,597][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:40,598][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 20591, group: default, time: 42ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20591 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 46 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:40 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:40,662][ INFO][ smartdns.c:574 ] stop smartdns by signal 15 [2023-07-27 04:36:40,762][ INFO][ smartdns.c:562 ] smartdns exit... [2023-07-27 04:36:40,763][DEBUG][ dns_client.c:1220] server 127.0.0.1 closed. [2023-07-27 04:36:40,764][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:40,764][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:40,764][ INFO][ dns_server.c:813 ] result: a.com, id: 20591, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:40,764][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 600 [2023-07-27 04:36:40,764][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:40,765][DEBUG][ dns_cache.c:893 ] write cache file /tmp/smartdns_cache.8rqDiZSkZf [2023-07-27 04:36:40,765][DEBUG][ dns_cache.c:936 ] wrote total 1 records. [ OK ] Cache.corrupt_file (1557 ms) [----------] 6 tests from Cache (6819 ms total) [----------] 1 test from BootStrap [ RUN ] BootStrap.bootstrap [2023-07-27 04:36:41,012][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:41,046][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:41,047][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:41,047][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:41,052][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:41,053][ INFO][ dns_client.c:1414] add pending server example.com [2023-07-27 04:36:41,964][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: example.com, rule: example.com [2023-07-27 04:36:41,995][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:41,996][ INFO][ dns_client.c:3848] request: example.com, qtype: 1, id: 62582, group: bootstrap-dns [2023-07-27 04:36:41,996][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: example.com, rule: example.com [2023-07-27 04:36:41,996][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:41,997][ INFO][ dns_client.c:3848] request: example.com, qtype: 28, id: 58937, group: bootstrap-dns [2023-07-27 04:36:41,997][ INFO][ dns_server.c:3871] RULE-MATCH, type: 8, domain: example.com, rule: example.com [2023-07-27 04:36:41,998][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 39, ttl: 64 [2023-07-27 04:36:41,998][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 39, id = 62582, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:41,998][DEBUG][ dns_client.c:1704] domain: example.com qtype: 1 qclass: 1 [2023-07-27 04:36:41,999][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:41,999][DEBUG][ dns_server.c:2837] domain: example.com TTL: 611 IP: 127.0.0.1 [2023-07-27 04:36:41,999][DEBUG][ dns_client.c:1476] result: example.com, qtype: 1, has-result: 1, id 62582 [2023-07-27 04:36:41,999][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 80, ttl: 64 [2023-07-27 04:36:42,000][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 80, id = 58937, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:42,000][DEBUG][ dns_client.c:1704] domain: example.com qtype: 28 qclass: 1 [2023-07-27 04:36:42,000][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:62053, type: 0 [2023-07-27 04:36:42,000][DEBUG][ dns_server.c:3053] domain: example.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:42,000][ INFO][ dns_server.c:2117] result: example.com, qtype: 28, SOA [2023-07-27 04:36:42,000][DEBUG][ dns_server.c:1874] reply example.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:42,000][DEBUG][ dns_server.c:983 ] result: example.com, qtype: 28, return SOA [2023-07-27 04:36:42,000][ INFO][ dns_server.c:994 ] result: example.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:42,001][DEBUG][ dns_server.c:3423] dualstack result: domain: example.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:42,002][ INFO][ dns_server.c:2120] result: example.com, qtype: 1, rtt: -0.1 ms, 127.0.0.1 [2023-07-27 04:36:42,003][DEBUG][ dns_server.c:1874] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:42,003][DEBUG][ dns_server.c:953 ] result: example.com, rtt: -0.1 ms, 127.0.0.1 [2023-07-27 04:36:42,004][DEBUG][ dns_server.c:1269] cache example.com qtype: 1 ttl: 611 [2023-07-27 04:36:42,004][DEBUG][ dns_server.c:1874] reply example.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:42,004][DEBUG][ dns_server.c:953 ] result: example.com, rtt: -0.1 ms, 127.0.0.1 [2023-07-27 04:36:42,005][DEBUG][ dns_server.c:1269] cache example.com qtype: 1 ttl: 611 [2023-07-27 04:36:42,005][DEBUG][ dns_server.c:3326] domain: example.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:42,005][DEBUG][ dns_server.c:3326] domain: example.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:42,005][DEBUG][ dns_client.c:1476] result: example.com, qtype: 28, has-result: 1, id 58937 [2023-07-27 04:36:42,005][DEBUG][ dns_server.c:1874] reply example.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:42,006][DEBUG][ dns_server.c:983 ] result: example.com, qtype: 28, return SOA [2023-07-27 04:36:42,006][ INFO][ dns_server.c:994 ] result: example.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:42,963][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:43,831][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:43,831][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:43,831][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 55204, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:43,831][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 55204 [2023-07-27 04:36:43,832][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:43,832][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 38040, group: default [2023-07-27 04:36:43,832][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:43,832][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 40391, group: default [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 38040, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 948 [2023-07-27 04:36:43,833][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 38040 [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64 [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 40391, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-07-27 04:36:43,833][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:3053] domain: a.com, qtype: 28, SOA: mname: ns1.example.com, rname: hostmaster.example.com, serial: 1, refresh: 3600, retry: 600, expire: 86400, minimum: 3600 [2023-07-27 04:36:43,833][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:43,833][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:43,833][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:43,834][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 3 [2023-07-27 04:36:43,834][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:43,834][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:43,834][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:43,834][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:43,839][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 55204, group: default, time: 8ms [2023-07-27 04:36:43,839][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 40391 [2023-07-27 04:36:43,839][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:43,839][DEBUG][ dns_server.c:983 ] result: a.com, qtype: 28, return SOA [2023-07-27 04:36:43,839][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55204 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 10 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:43 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] BootStrap.bootstrap (3042 ms) [----------] 1 test from BootStrap (3042 ms total) [----------] 6 tests from Bind [ RUN ] Bind.tls [2023-07-27 04:36:44,052][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:44,090][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:44,090][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:44,090][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:44,618][ INFO][ dns_client.c:1169] add server 127.0.0.1:60053, type: tls [2023-07-27 04:36:45,459][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:45,500][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:45,501][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:45,501][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:45,502][ INFO][ dns_client.c:1169] add server 185.12.64.1:53, type: udp [2023-07-27 04:36:45,506][ INFO][ dns_client.c:1169] add server 2a01:4ff:ff00::add:2:53, type: udp [2023-07-27 04:36:45,506][ INFO][ dns_client.c:1169] add server 185.12.64.2:53, type: udp [2023-07-27 04:36:45,506][ INFO][ dns_client.c:1169] add server 2a01:4ff:ff00::add:1:53, type: udp [2023-07-27 04:36:45,803][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 52, type = 0 [2023-07-27 04:36:45,803][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:45,803][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 52, id = 38449, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:45,805][DEBUG][ dns_server.c:5390] query example.com from 127.0.0.1, qtype: 1, id: 38449 [2023-07-27 04:36:45,807][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:45,809][DEBUG][ dns_client.c:2108] tls server 127.0.0.1 connecting. [2023-07-27 04:36:45,815][ INFO][ dns_client.c:3848] request: example.com, qtype: 1, id: 52114, group: default [2023-07-27 04:36:45,816][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:45,816][ INFO][ dns_client.c:3848] request: example.com, qtype: 28, id: 57409, group: default [2023-07-27 04:36:45,934][DEBUG][ dns_client.c:3003] tls server 127.0.0.1 connected. [2023-07-27 04:36:45,934][DEBUG][ dns_client.c:3008] new session [2023-07-27 04:36:45,935][DEBUG][ dns_client.c:2883] peer CN: smartdns [2023-07-27 04:36:45,935][DEBUG][ dns_client.c:2929] cert SPKI pin(sha256): F7:DA:56:E1:1D:28:5B:B7:0D:4F:E4:D1:B3:27:22:DF:4B:59:A7:31:8F:DD:20:F8:01:1F:B1:63:D7:BD:42:CC [2023-07-27 04:36:45,943][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 40, type = 4 [2023-07-27 04:36:45,943][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 40, id = 52114, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:45,943][DEBUG][ dns_server.c:5390] query example.com from 127.0.0.1, qtype: 1, id: 52114 [2023-07-27 04:36:45,943][ INFO][ dns_server.c:3871] RULE-MATCH, type: 1, domain: example.com, rule: example.com [2023-07-27 04:36:45,944][DEBUG][ dns_server.c:1874] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:45,944][DEBUG][ dns_server.c:953 ] result: example.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:45,946][ INFO][ dns_server.c:1929] result: example.com, client: 127.0.0.1, qtype: 1, id: 52114, group: default, time: 3ms [2023-07-27 04:36:45,947][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 40, type = 4 [2023-07-27 04:36:45,947][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 40, id = 57409, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:45,947][DEBUG][ dns_server.c:5390] query example.com from 127.0.0.1, qtype: 28, id: 57409 [2023-07-27 04:36:45,947][ INFO][ dns_server.c:3871] RULE-MATCH, type: 1, domain: example.com, rule: example.com [2023-07-27 04:36:45,947][DEBUG][ dns_client.c:2575] recv tcp packet from 127.0.0.1, len = 47 [2023-07-27 04:36:45,947][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 52114, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:45,947][DEBUG][ dns_client.c:1704] domain: example.com qtype: 1 qclass: 1 [2023-07-27 04:36:45,947][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:60053, type: 2 [2023-07-27 04:36:45,948][DEBUG][ dns_server.c:2837] domain: example.com TTL: 600 IP: 1.2.3.4 [2023-07-27 04:36:45,948][DEBUG][ dns_client.c:3482] send query to server 2a01:4ff:ff00::add:1 [2023-07-27 04:36:45,948][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 807 [2023-07-27 04:36:45,948][DEBUG][ dns_client.c:3482] send query to server 185.12.64.2 [2023-07-27 04:36:45,948][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:45,949][DEBUG][ dns_client.c:3482] send query to server 2a01:4ff:ff00::add:2 [2023-07-27 04:36:45,949][DEBUG][ dns_client.c:1476] result: example.com, qtype: 1, has-result: 1, id 52114 [2023-07-27 04:36:45,949][DEBUG][ dns_client.c:2325] recv udp packet from 2a01:4ff:ff00::add:1, len: 68, ttl: 62 [2023-07-27 04:36:45,949][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 68, id = 6273, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232 [2023-07-27 04:36:45,949][DEBUG][ dns_client.c:1704] domain: example.com qtype: 28 qclass: 1 [2023-07-27 04:36:45,950][DEBUG][ dns_server.c:3488] query result from server 2a01:4ff:ff00::add:1:53, type: 0 [2023-07-27 04:36:45,950][DEBUG][ dns_server.c:2913] domain: example.com TTL: 12569 IP: 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,951][DEBUG][ dns_server.c:2714] ping [2606:2800:0220:0001:0248:1893:25c8:1946] with icmp, order: 0, timeout: 946 [2023-07-27 04:36:45,951][DEBUG][ fast_ping.c:1448] ping [2606:2800:0220:0001:0248:1893:25c8:1946], id = 5 [2023-07-27 04:36:45,951][DEBUG][ dns_client.c:2325] recv udp packet from 185.12.64.2, len: 68, ttl: 62 [2023-07-27 04:36:45,951][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 68, id = 6273, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232 [2023-07-27 04:36:45,951][DEBUG][ dns_client.c:1704] domain: example.com qtype: 28 qclass: 1 [2023-07-27 04:36:45,951][DEBUG][ dns_server.c:3488] query result from server 185.12.64.2:53, type: 0 [2023-07-27 04:36:45,952][DEBUG][ dns_server.c:2913] domain: example.com TTL: 26196 IP: 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:3482] send query to server 185.12.64.1 [2023-07-27 04:36:45,952][ INFO][ dns_client.c:3848] request: example.com, qtype: 28, id: 6273, group: default [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:2325] recv udp packet from 2a01:4ff:ff00::add:2, len: 68, ttl: 62 [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 68, id = 6273, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232 [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:1704] domain: example.com qtype: 28 qclass: 1 [2023-07-27 04:36:45,952][DEBUG][ dns_server.c:3488] query result from server 2a01:4ff:ff00::add:2:53, type: 0 [2023-07-27 04:36:45,952][DEBUG][ dns_server.c:2913] domain: example.com TTL: 81358 IP: 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,952][ INFO][ dns_server.c:3871] RULE-MATCH, type: 1, domain: example.com, rule: example.com [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:2325] recv udp packet from 185.12.64.1, len: 116, ttl: 62 [2023-07-27 04:36:45,952][DEBUG][ dns_server.c:1874] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:45,952][DEBUG][ dns_server.c:953 ] result: example.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 2, nrcount = 0, len = 116, id = 6273, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232 [2023-07-27 04:36:45,952][DEBUG][ dns_client.c:1704] domain: example.com qtype: 28 qclass: 1 [2023-07-27 04:36:45,953][DEBUG][ dns_server.c:3488] query result from server 185.12.64.1:53, type: 0 [2023-07-27 04:36:45,953][DEBUG][ dns_server.c:2913] domain: example.com TTL: 44793 IP: 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,953][DEBUG][ dns_server.c:3028] NS: example.com ttl: 44793 nsname: a.iana-servers.net [2023-07-27 04:36:45,953][DEBUG][ dns_server.c:3028] NS: example.com ttl: 44793 nsname: b.iana-servers.net [2023-07-27 04:36:45,953][DEBUG][ dns_server.c:3423] dualstack result: domain: example.com, ip: 1.2.3.4, type: 1, ping: -1, rcode: 0 [2023-07-27 04:36:45,953][DEBUG][ dns_client.c:1476] result: example.com, qtype: 28, has-result: 1, id 6273 [2023-07-27 04:36:45,955][DEBUG][ dns_client.c:2575] recv tcp packet from 127.0.0.1, len = 59 [2023-07-27 04:36:45,955][DEBUG][ dns_client.c:1692] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 57, id = 57409, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:45,955][DEBUG][ dns_client.c:1704] domain: example.com qtype: 28 qclass: 1 [2023-07-27 04:36:45,955][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:60053, type: 2 [2023-07-27 04:36:45,955][DEBUG][ dns_server.c:2913] domain: example.com TTL: 3 IP: 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,953][ INFO][ dns_server.c:2124] result: example.com, qtype: 28, rtt: -0.1 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,953][DEBUG][ dns_server.c:1874] reply example.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:45,954][DEBUG][ dns_server.c:960 ] result: example.com, rtt: -0.1 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:45,954][DEBUG][ dns_server.c:1269] cache example.com qtype: 28 ttl: 12569 [2023-07-27 04:36:45,954][ INFO][ dns_server.c:1929] result: example.com, client: 127.0.0.1, qtype: 28, id: 57409, group: default, time: 8ms [2023-07-27 04:36:45,955][DEBUG][ dns_server.c:1874] reply example.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:45,955][DEBUG][ dns_server.c:953 ] result: example.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:45,955][DEBUG][ dns_server.c:2714] ping [2606:2800:0220:0001:0248:1893:25c8:1946] with icmp, order: 0, timeout: 810 [2023-07-27 04:36:45,956][DEBUG][ fast_ping.c:1448] ping [2606:2800:0220:0001:0248:1893:25c8:1946], id = 6 [2023-07-27 04:36:45,956][DEBUG][ dns_client.c:1476] result: example.com, qtype: 28, has-result: 1, id 57409 [2023-07-27 04:36:45,956][DEBUG][ dns_server.c:1269] cache example.com qtype: 1 ttl: 600 [2023-07-27 04:36:46,052][DEBUG][ dns_server.c:2567] from [2606:2800:0220:0001:0248:1893:25c8:1946]: seq=1 time=1003, lasttime=-1 id=57409 [2023-07-27 04:36:46,052][DEBUG][ dns_server.c:1874] reply example.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:46,052][DEBUG][ dns_server.c:960 ] result: example.com, rtt: 100.3 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:46,053][ INFO][ dns_server.c:817 ] result: example.com, id: 57409, index: 1, rtt: 100.3 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:46,053][DEBUG][ dns_server.c:1269] cache example.com qtype: 28 ttl: 12569 [2023-07-27 04:36:46,054][DEBUG][ fast_ping.c:677 ] ping [2606:2800:0220:0001:0248:1893:25c8:1946] end, id 5 [2023-07-27 04:36:46,056][DEBUG][ dns_server.c:2567] from [2606:2800:0220:0001:0248:1893:25c8:1946]: seq=1 time=1003, lasttime=-1 id=0 [2023-07-27 04:36:46,057][ INFO][ dns_server.c:2124] result: example.com, qtype: 28, rtt: 100.3 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:46,058][DEBUG][ dns_server.c:1874] reply example.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:46,058][DEBUG][ dns_server.c:960 ] result: example.com, rtt: 100.3 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:46,059][DEBUG][ dns_server.c:1269] cache example.com qtype: 28 ttl: 600 [2023-07-27 04:36:46,060][DEBUG][ dns_server.c:3423] dualstack result: domain: example.com, ip: 2606:2800:0220:0001:0248:1893:25c8:1946, type: 28, ping: 1003, rcode: 0 [2023-07-27 04:36:46,060][DEBUG][ dns_server.c:1874] reply example.com qtype: 28, rcode: 0, reply: 0 [2023-07-27 04:36:46,060][DEBUG][ dns_server.c:960 ] result: example.com, rtt: 100.3 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:46,060][ INFO][ dns_server.c:817 ] result: example.com, id: 0, index: 1, rtt: 100.3 ms, 2606:2800:0220:0001:0248:1893:25c8:1946 [2023-07-27 04:36:46,060][DEBUG][ dns_server.c:1269] cache example.com qtype: 28 ttl: 600 [2023-07-27 04:36:46,061][DEBUG][ fast_ping.c:677 ] ping [2606:2800:0220:0001:0248:1893:25c8:1946] end, id 6 [2023-07-27 04:36:46,119][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 636 [2023-07-27 04:36:46,119][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 7 [2023-07-27 04:36:46,319][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 436 [2023-07-27 04:36:46,319][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 8 [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:46,849][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:46,849][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 7 [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:2294] select best ip address, example.com [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:2299] possible result: example.com, rcode: 0, hitnum: 1, 1.2.3.4 [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:1874] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:46,849][DEBUG][ dns_server.c:953 ] result: example.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:46,850][ INFO][ dns_server.c:813 ] result: example.com, id: 38449, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:46,850][DEBUG][ dns_server.c:1269] cache example.com qtype: 1 ttl: 600 [2023-07-27 04:36:46,850][ INFO][ dns_server.c:1929] result: example.com, client: 127.0.0.1, qtype: 1, id: 38449, group: default, time: 1046ms [2023-07-27 04:36:46,851][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 8 [ OK ] Bind.tls (2881 ms) [ RUN ] Bind.udp_tcp [2023-07-27 04:36:46,932][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:46,970][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:46,970][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:46,970][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:46,976][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:47,266][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 2 [2023-07-27 04:36:47,266][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:47,266][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 34454, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:47,266][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 34454 [2023-07-27 04:36:47,298][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:47,299][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 17691, group: default [2023-07-27 04:36:47,299][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:47,299][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 4627, group: default [2023-07-27 04:36:47,302][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:47,302][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 17691, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:47,303][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:47,303][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:47,303][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:47,304][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 912 [2023-07-27 04:36:47,304][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:47,304][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 17691 [2023-07-27 04:36:47,305][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:47,305][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 4627, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:47,305][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:47,576][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 640 [2023-07-27 04:36:47,576][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 6 [2023-07-27 04:36:47,776][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 440 [2023-07-27 04:36:47,776][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 7 [2023-07-27 04:36:47,885][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 4627 [2023-07-27 04:36:47,885][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:47,885][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:47,885][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 4627, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:47,885][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:48,304][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:48,305][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:48,305][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:48,305][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 7 [2023-07-27 04:36:48,305][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:48,305][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 6 [2023-07-27 04:36:48,385][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 4627 [2023-07-27 04:36:48,385][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:48,386][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:48,386][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 4627, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:48,386][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:48,985][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 4627 [2023-07-27 04:36:48,985][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:48,985][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:48,985][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 4627, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:48,985][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:49,485][ INFO][ dns_client.c:4124] retry query a.com, type: 28, id: 4627 failed [2023-07-27 04:36:49,485][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 0, id 4627 [2023-07-27 04:36:49,486][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:49,486][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 2 [2023-07-27 04:36:49,487][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 2 [2023-07-27 04:36:49,487][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:49,487][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:49,488][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:49,488][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:49,489][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 34454, group: default, time: 2223ms [2023-07-27 04:36:49,490][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:49,490][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:49,490][ INFO][ dns_server.c:813 ] result: a.com, id: 34454, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:49,490][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tcp +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34454 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 2226 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (TCP) ;; WHEN: Thu Jul 27 04:36:49 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:49,815][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:49,815][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:49,815][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 41198, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:49,815][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 41198 [2023-07-27 04:36:49,816][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 1, id: 41198, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41198 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 611 IN A 1.2.3.4 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:49 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.udp_tcp (2976 ms) [ RUN ] Bind.self [2023-07-27 04:36:49,912][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:49,950][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:49,956][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:49,956][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:50,282][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 56555, group: self [2023-07-27 04:36:50,283][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 55454, group: self [2023-07-27 04:36:50,284][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 37729, group: upstream [2023-07-27 04:36:50,284][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 5824, group: upstream [2023-07-27 04:36:50,287][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:50,288][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:50,289][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:50,290][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 56555, group: upstream, time: 6ms [2023-07-27 04:36:50,291][ INFO][ dns_server.c:3375] result: a.com, client: 127.0.0.1, qtype: 28, id: 55454, group: upstream, time: 7ms [2023-07-27 04:36:50,292][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:50,292][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:50,292][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:50,292][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:50,292][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 31632, group: self, time: 39ms [2023-07-27 04:36:50,292][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31632 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:50 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.self (491 ms) [ RUN ] Bind.nocache [2023-07-27 04:36:50,419][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:50,448][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-07-27 04:36:50,449][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-07-27 04:36:50,449][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:50,456][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:36:50,742][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:50,743][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:50,743][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 31473, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:50,743][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 31473 [2023-07-27 04:36:50,775][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:50,776][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 60691, group: default [2023-07-27 04:36:50,776][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:50,776][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 44863, group: default [2023-07-27 04:36:50,792][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:50,792][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 60691, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:50,792][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:50,792][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:50,793][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:50,793][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 900 [2023-07-27 04:36:50,793][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 5 [2023-07-27 04:36:50,794][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 60691 [2023-07-27 04:36:50,807][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:50,807][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 44863, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:50,807][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:51,058][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 635 [2023-07-27 04:36:51,058][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 6 [2023-07-27 04:36:51,257][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 436 [2023-07-27 04:36:51,257][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 7 [2023-07-27 04:36:51,362][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 44863 [2023-07-27 04:36:51,363][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:51,378][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:51,378][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 44863, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:51,378][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:51,695][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:51,695][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 5 [2023-07-27 04:36:51,695][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:51,695][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 7 [2023-07-27 04:36:51,695][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:51,695][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 6 [2023-07-27 04:36:51,862][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 44863 [2023-07-27 04:36:51,863][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:51,878][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:51,879][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 44863, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:51,879][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:52,362][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 44863 [2023-07-27 04:36:52,363][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:52,378][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:52,378][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 44863, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:52,379][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:52,863][ INFO][ dns_client.c:4124] retry query a.com, type: 28, id: 44863 failed [2023-07-27 04:36:52,863][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 0, id 44863 [2023-07-27 04:36:52,863][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:52,863][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 2 [2023-07-27 04:36:52,864][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 2 [2023-07-27 04:36:52,864][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:52,865][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:52,865][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:52,865][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:52,866][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 31473, group: default, time: 2124ms [2023-07-27 04:36:52,867][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:52,867][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:52,867][ INFO][ dns_server.c:813 ] result: a.com, id: 31473, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:52,868][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31473 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 2126 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:52 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:36:53,195][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:36:53,195][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:36:53,195][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 16157, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:36:53,195][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 16157 [2023-07-27 04:36:53,195][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:53,195][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 55645, group: default [2023-07-27 04:36:53,195][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:53,195][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 2843, group: default [2023-07-27 04:36:53,211][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:53,211][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 55645, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:53,211][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:53,211][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:36:53,211][DEBUG][ dns_server.c:2837] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-07-27 04:36:53,211][DEBUG][ dns_server.c:2714] ping 1.2.3.4 with icmp, order: 0, timeout: 934 [2023-07-27 04:36:53,211][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 8 [2023-07-27 04:36:53,211][DEBUG][ dns_client.c:1476] result: a.com, qtype: 1, has-result: 1, id 55645 [2023-07-27 04:36:53,226][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:53,226][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 2843, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:53,226][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:53,457][DEBUG][ dns_server.c:2719] ping 1.2.3.4:80 with tcp, order: 1, timeout: 688 [2023-07-27 04:36:53,457][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 9 [2023-07-27 04:36:53,757][DEBUG][ dns_server.c:2719] ping 1.2.3.4:443 with tcp, order: 2, timeout: 388 [2023-07-27 04:36:53,757][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 10 [2023-07-27 04:36:53,762][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 2843 [2023-07-27 04:36:53,763][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:53,778][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:53,779][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 2843, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:53,779][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:54,212][DEBUG][ dns_server.c:2546] ping 1.2.3.4:80 timeout [2023-07-27 04:36:54,213][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 9 [2023-07-27 04:36:54,213][DEBUG][ dns_server.c:2546] ping 1.2.3.4:443 timeout [2023-07-27 04:36:54,213][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 10 [2023-07-27 04:36:54,213][DEBUG][ dns_server.c:2546] ping 1.2.3.4 timeout [2023-07-27 04:36:54,213][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 8 [2023-07-27 04:36:54,262][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 2843 [2023-07-27 04:36:54,263][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:54,278][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:54,279][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 2843, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:54,279][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:54,862][ INFO][ dns_client.c:4127] retry query a.com, type: 28, id: 2843 [2023-07-27 04:36:54,862][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:36:54,878][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:36:54,878][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 2843, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:36:54,878][DEBUG][ dns_client.c:1704] domain: a.com qtype: 1 qclass: 1 [2023-07-27 04:36:55,362][ INFO][ dns_client.c:4124] retry query a.com, type: 28, id: 2843 failed [2023-07-27 04:36:55,362][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 0, id 2843 [2023-07-27 04:36:55,362][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:36:55,362][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 2 [2023-07-27 04:36:55,362][DEBUG][ dns_server.c:3423] dualstack result: domain: a.com, ip: , type: 28, ping: -1, rcode: 2 [2023-07-27 04:36:55,362][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:55,362][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:36:55,363][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:55,363][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 [2023-07-27 04:36:55,363][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 16157, group: default, time: 2168ms [2023-07-27 04:36:55,363][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-07-27 04:36:55,363][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:55,363][ INFO][ dns_server.c:813 ] result: a.com, id: 16157, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:55,363][DEBUG][ dns_server.c:1269] cache a.com qtype: 1 ttl: 611 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16157 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 2170 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:55 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.nocache (5093 ms) [ RUN ] Bind.device [2023-07-27 04:36:55,499][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:55,534][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:55,539][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:36:55,849][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 16407, group: default [2023-07-27 04:36:55,851][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 48511, group: default [2023-07-27 04:36:55,854][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:36:55,854][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:36:55,855][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:36:55,857][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 53163, group: default, time: 37ms [2023-07-27 04:36:55,858][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53163 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 43 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:36:55 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.device (472 ms) [ RUN ] Bind.malformed_packet [2023-07-27 04:36:55,969][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:36:55,995][ INFO][ dns_server.c:7123] IPV6 is ready, enable IPV6 features [2023-07-27 04:36:55,999][ INFO][ dns_client.c:1169] add server 127.0.0.1:62053, type: udp [2023-07-27 04:37:04,703][ INFO][ dns_client.c:3848] request: a.com, qtype: 1, id: 6351, group: default [2023-07-27 04:37:04,705][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 61229, group: default [2023-07-27 04:37:04,708][ INFO][ dns_server.c:2117] result: a.com, qtype: 28, SOA [2023-07-27 04:37:04,708][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 [2023-07-27 04:37:04,709][ INFO][ dns_server.c:2120] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:37:04,711][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 28959, group: default, time: 37ms [2023-07-27 04:37:04,712][ INFO][ dns_server.c:994 ] result: a.com, qtype: 28, rtcode: 3 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28959 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 40 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:04 CEST 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.malformed_packet (8853 ms) [----------] 6 tests from Bind (20772 ms total) [----------] 2 tests from Address [ RUN ] Address.soa [2023-07-27 04:37:04,821][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:37:04,827][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:37:04,827][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:37:04,830][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:37:05,092][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:05,092][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:05,092][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 63477, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:05,092][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 63477 [2023-07-27 04:37:05,093][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:37:05,093][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:37:05,094][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 63477, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63477 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; AUTHORITY SECTION: a.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:05 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:37:05,413][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:05,413][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:05,413][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 37509, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:05,413][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 37509 [2023-07-27 04:37:05,413][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-07-27 04:37:05,415][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:37:05,416][ INFO][ dns_client.c:3848] request: a.com, qtype: 28, id: 2740, group: default [2023-07-27 04:37:05,416][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64 [2023-07-27 04:37:05,417][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 2740, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:37:05,417][DEBUG][ dns_client.c:1704] domain: a.com qtype: 28 qclass: 1 [2023-07-27 04:37:05,417][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:37:05,417][DEBUG][ dns_server.c:2913] domain: a.com TTL: 700 IP: 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:37:05,419][ INFO][ dns_server.c:2124] result: a.com, qtype: 28, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:37:05,419][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:37:05,419][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-07-27 04:37:05,420][DEBUG][ dns_server.c:1269] cache a.com qtype: 28 ttl: 700 [2023-07-27 04:37:05,422][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 37509, group: default, time: 9ms [2023-07-27 04:37:05,423][DEBUG][ dns_client.c:1476] result: a.com, qtype: 28, has-result: 1, id 2740 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37509 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 700 IN AAAA 64:ff9b::102:304 ;; Query time: 10 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:05 CEST 2023 ;; MSG SIZE rcvd: 51 [2023-07-27 04:37:05,730][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:05,730][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:05,730][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 29802, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:05,730][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 1, id: 29802 [2023-07-27 04:37:05,730][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: b.com, rule: b.com [2023-07-27 04:37:05,730][DEBUG][ dns_client.c:3482] send query to server 127.0.0.1 [2023-07-27 04:37:05,731][ INFO][ dns_client.c:3848] request: b.com, qtype: 1, id: 18047, group: default [2023-07-27 04:37:05,732][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64 [2023-07-27 04:37:05,732][DEBUG][ dns_client.c:1692] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 18047, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-07-27 04:37:05,732][DEBUG][ dns_client.c:1704] domain: b.com qtype: 1 qclass: 1 [2023-07-27 04:37:05,732][DEBUG][ dns_server.c:3488] query result from server 127.0.0.1:61053, type: 0 [2023-07-27 04:37:05,732][DEBUG][ dns_server.c:2837] domain: b.com TTL: 700 IP: 1.2.3.4 [2023-07-27 04:37:05,732][ INFO][ dns_server.c:2120] result: b.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:37:05,732][DEBUG][ dns_server.c:1874] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:37:05,732][DEBUG][ dns_server.c:953 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-07-27 04:37:05,732][DEBUG][ dns_server.c:1269] cache b.com qtype: 1 ttl: 700 [2023-07-27 04:37:05,732][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 1, id: 29802, group: default, time: 3ms [2023-07-27 04:37:05,732][DEBUG][ dns_client.c:1476] result: b.com, qtype: 1, has-result: 1, id 18047 ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29802 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN A ;; ANSWER SECTION: b.com. 700 IN A 1.2.3.4 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:05 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:37:06,047][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:06,047][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:06,047][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 19877, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:06,047][DEBUG][ dns_server.c:5390] query b.com from 127.0.0.1, qtype: 28, id: 19877 [2023-07-27 04:37:06,047][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: b.com, rule: b.com [2023-07-27 04:37:06,047][DEBUG][ dns_server.c:1874] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:37:06,048][ INFO][ dns_server.c:1929] result: b.com, client: 127.0.0.1, qtype: 28, id: 19877, group: default, time: 0ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 b.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19877 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.com. IN AAAA ;; AUTHORITY SECTION: b.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:06 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:37:06,369][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:06,369][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:06,369][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 6540, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:06,369][DEBUG][ dns_server.c:5390] query c.com from 127.0.0.1, qtype: 1, id: 6540 [2023-07-27 04:37:06,369][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: c.com, rule: c.com [2023-07-27 04:37:06,369][DEBUG][ dns_server.c:1874] reply c.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:37:06,369][ INFO][ dns_server.c:994 ] result: c.com, qtype: 1, rtcode: 3 [2023-07-27 04:37:06,369][ INFO][ dns_server.c:1929] result: c.com, client: 127.0.0.1, qtype: 1, id: 6540, group: default, time: 0ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 c.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 6540 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;c.com. IN A ;; AUTHORITY SECTION: c.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:06 CEST 2023 ;; MSG SIZE rcvd: 96 [2023-07-27 04:37:06,689][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:06,689][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:06,689][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 16511, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:06,689][DEBUG][ dns_server.c:5390] query c.com from 127.0.0.1, qtype: 28, id: 16511 [2023-07-27 04:37:06,689][ INFO][ dns_server.c:3871] RULE-MATCH, type: 0, domain: c.com, rule: c.com [2023-07-27 04:37:06,689][DEBUG][ dns_server.c:1874] reply c.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:37:06,689][ INFO][ dns_server.c:994 ] result: c.com, qtype: 28, rtcode: 3 [2023-07-27 04:37:06,689][ INFO][ dns_server.c:1929] result: c.com, client: 127.0.0.1, qtype: 28, id: 16511, group: default, time: 0ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 c.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 16511 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;c.com. IN AAAA ;; AUTHORITY SECTION: c.com. 30 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1800 1800 900 604800 86400 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:06 CEST 2023 ;; MSG SIZE rcvd: 96 [ OK ] Address.soa (2030 ms) [ RUN ] Address.ip [2023-07-27 04:37:06,855][NOTICE][ smartdns.c:478 ] smartdns starting...(Copyright (C) Nick Peng , build: Jul 27 2023 02:32:47) [2023-07-27 04:37:06,866][ INFO][ dns_server.c:4852] ICMP ping is disabled, no ipv6 icmp check feature [2023-07-27 04:37:06,867][ INFO][ dns_server.c:7123] IPV6 is not ready, disable IPV6 features [2023-07-27 04:37:06,871][ INFO][ dns_client.c:1169] add server 127.0.0.1:61053, type: udp [2023-07-27 04:37:07,168][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:07,168][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:07,168][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 13090, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:07,169][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 1, id: 13090 [2023-07-27 04:37:07,169][ INFO][ dns_server.c:3871] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-07-27 04:37:07,169][ INFO][ dns_server.c:3871] RULE-MATCH, type: 2, domain: a.com, rule: a.com [2023-07-27 04:37:07,169][DEBUG][ dns_server.c:1874] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-07-27 04:37:07,170][DEBUG][ dns_server.c:953 ] result: a.com, rtt: -0.1 ms, 10.10.10.10 [2023-07-27 04:37:07,171][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 1, id: 13090, group: default, time: 2ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13090 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 600 IN A 10.10.10.10 ;; Query time: 6 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:07 CEST 2023 ;; MSG SIZE rcvd: 39 [2023-07-27 04:37:07,499][DEBUG][ dns_server.c:5355] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-07-27 04:37:07,499][DEBUG][ dns.c:1925] opt type 10 [2023-07-27 04:37:07,499][DEBUG][ dns_server.c:5367] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 31973, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-07-27 04:37:07,499][DEBUG][ dns_server.c:5390] query a.com from 127.0.0.1, qtype: 28, id: 31973 [2023-07-27 04:37:07,499][ INFO][ dns_server.c:3871] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-07-27 04:37:07,499][ INFO][ dns_server.c:3871] RULE-MATCH, type: 2, domain: a.com, rule: a.com [2023-07-27 04:37:07,499][DEBUG][ dns_server.c:1874] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-07-27 04:37:07,499][DEBUG][ dns_server.c:960 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:1010:1010 [2023-07-27 04:37:07,499][ INFO][ dns_server.c:1929] result: a.com, client: 127.0.0.1, qtype: 28, id: 31973, group: default, time: 1ms ; <<>> DiG 9.18.16 <<>> -p 60053 @127.0.0.1 a.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31973 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 600 IN AAAA 64:ff9b::1010:1010 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Thu Jul 27 04:37:07 CEST 2023 ;; MSG SIZE rcvd: 51 [ OK ] Address.ip (806 ms) [----------] 2 tests from Address (2837 ms total) [----------] Global test environment tear-down [==========] 61 tests from 21 test suites ran. (80445 ms total) [ PASSED ] 58 tests. [ SKIPPED ] 1 test, listed below: [ SKIPPED ] Perf.no_speed_check [ FAILED ] 2 tests, listed below: [ FAILED ] SpeedCheck.none [ FAILED ] DNS64.no_dualstack 2 FAILED TESTS make: *** [Makefile:44: test] Error 1 make: Leaving directory '/build/smartdns/src/smartdns-Release42-test/test' ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root30/build receiving incremental file list smartdns-42-1-riscv64-build.log smartdns-42-1-riscv64-check.log smartdns-42-1-riscv64-prepare.log smartdns-42-1-x86_64-build.log smartdns-42-1-x86_64-check.log sent 119 bytes received 35,112 bytes 23,487.33 bytes/sec total size is 388,689 speedup is 11.03