==> Building on scovillain ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/smartdns ./ 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-43-1.log 356 100% 347.66kB/s 0:00:00 356 100% 347.66kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,028 bytes received 97 bytes 2,250.00 bytes/sec total size is 1,282 speedup is 1.14 ==> Applying RISC-V patches... sending incremental file list ./ riscv64.patch 1,135 100% 0.00kB/s 0:00:00 1,135 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2) sent 664 bytes received 38 bytes 1,404.00 bytes/sec total size is 1,135 speedup is 1.62 patching file PKGBUILD ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root2 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)... ==> Locking clean chroot [/var/lib/archbuild/extra-riscv64/root]...done ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root2]...done ==> Making package: smartdns 43-1 (Tue Dec 5 18:32:20 2023) ==> Retrieving sources...  -> Downloading smartdns-43.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 84679 0 84679 0 0 54573 0 --:--:-- 0:00:01 --:--:-- 54573 100 558k 0 558k 0 0 289k 0 --:--:-- 0:00:01 --:--:-- 1265k  -> Downloading test-SpeedCheck-none.patch... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 1268 0 1268 0 0 907 0 --:--:-- 0:00:01 --:--:-- 412k ==> Validating source files with sha512sums... smartdns-43.tar.gz ... Passed test-SpeedCheck-none.patch ... Passed ==> Making package: smartdns 43-1 (Tue Dec 5 18:32:48 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (25) New Version Net Change Download Size core/argon2 20190702-5 0.08 MiB core/cryptsetup 2.6.1-3 2.50 MiB core/dbus 1.14.10-1 0.80 MiB core/device-mapper 2.03.22-2 0.68 MiB core/dnssec-anchors 20190629-3 0.00 MiB core/hwdata 0.376-1 8.91 MiB core/iptables 1:1.8.10-1 1.75 MiB extra/jemalloc 1:5.3.0-3 6.17 MiB core/kbd 2.6.3-1 3.01 MiB core/kmod 31-1 0.25 MiB core/libedit 20230828_3.1-1 0.24 MiB extra/libmaxminddb 1.8.0-1 0.04 MiB 0.02 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.6-1 0.22 MiB core/libnl 3.8.0-1 1.73 MiB core/libnsl 2.0.1-1 0.07 MiB core/libpcap 1.10.4-1 0.58 MiB extra/libuv 1.47.0-1 0.55 MiB extra/lmdb 0.9.30-3 0.35 MiB core/popt 1.19-1 0.55 MiB extra/bind 9.18.20-1 6.12 MiB 2.09 MiB extra/gtest 1.14.0-1 2.01 MiB core/systemd 254.6-2 27.13 MiB Total Download Size: 2.11 MiB Total Installed Size: 63.94 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... bind-9.18.20-1-riscv64 downloading... libmaxminddb-1.8.0-1-riscv64 downloading... 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 'groups' with GID 983. Creating group 'systemd-journal' with GID 982. Creating group 'rfkill' with GID 981. 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 980. Creating user 'systemd-coredump' (systemd Core Dumper) with UID 980 and GID 980. Creating group 'systemd-network' with GID 979. Creating user 'systemd-network' (systemd Network Management) with UID 979 and GID 979. Creating group 'systemd-oom' with GID 978. Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 978 and GID 978. Creating group 'systemd-journal-remote' with GID 977. Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 977 and GID 977. Creating group 'systemd-journal-upload' with GID 976. Creating user 'systemd-journal-upload' (systemd Journal Upload) with UID 976 and GID 976. Creating group 'systemd-resolve' with GID 975. Creating user 'systemd-resolve' (systemd Resolver) with UID 975 and GID 975. Creating group 'systemd-timesync' with GID 974. Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 974 and GID 974. Creating group 'tss' with GID 973. Creating user 'tss' (tss user for tpm2) with UID 973 and GID 973. 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... (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-43.tar.gz  -> Found test-SpeedCheck-none.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting smartdns-43.tar.gz with bsdtar ==> Starting prepare()... patching file test/cases/test-speed-check.cc ==> 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 -j128 --jobserver-auth=fifo:/tmp/GMfifo977 -C src all make[1]: Entering directory '/build/smartdns/src/smartdns-Release43/src' make[1]: warning: -j128 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='"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 -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 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/conf.o lib/nftset.o lib/rbtree.o lib/art.o lib/bitops.o lib/radix.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:121:3, inlined from ‘dir_name’ at util.c:118:7, inlined from ‘config_additional_file’ at dns_conf.c:3644: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:3635:14: note: at offset 4095 into destination object ‘file_path_dir’ of size 1024 3635 | 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:121:3, inlined from ‘dir_name’ at util.c:118:7, inlined from ‘config_additional_file’ at dns_conf.c:3644: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-Release43/src' ==> Starting check()... make: Entering directory '/build/smartdns/src/smartdns-Release43-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 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 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-ddns.o cases/test-ddns.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-rule.o cases/test-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-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 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 ../src/smartdns.c: In function ‘_sig_error_exit’: ../src/smartdns.c:588:21: warning: unused variable ‘context’ [-Wunused-variable] 588 | ucontext_t *context = ct; | ^~~~~~~ ../src/smartdns.c: In function ‘smartdns_test_notify_func’: ../src/smartdns.c:738:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 738 | write(fd_notify, &retval, sizeof(retval)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cases/test-cache.cc: In member function ‘virtual void Cache_corrupt_file_Test::TestBody()’: cases/test-cache.cc:357:22: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 357 | write(fd, &c, 1); | ~~~~~^~~~~~~~~~~ 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-ddns.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-rule.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:121:3, inlined from ‘dir_name’ at ../src/util.c:118:7, inlined from ‘config_additional_file’ at ../src/dns_conf.c:3644: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:3635:14: note: at offset 4095 into destination object ‘file_path_dir’ of size 1024 3635 | 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:121:3, inlined from ‘dir_name’ at ../src/util.c:118:7, inlined from ‘config_additional_file’ at ../src/dns_conf.c:3644: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 70 tests from 23 test suites. [----------] Global test environment set-up. [----------] 6 tests from SubNet [ RUN ] SubNet.pass_subnet [2023-12-05 18:34:36,346][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:36,350][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:36,350][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:36,350][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:36,350][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:36,350][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:36,350][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:36,350][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:36,351][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:36,661][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 57, type = 0 [2023-12-05 18:34:36,661][DEBUG][ dns.c:1946] opt type 8 [2023-12-05 18:34:36,661][DEBUG][ dns.c:1731] ECS: family:1, source_prefix:24, scope_prefix:0, len:3 [2023-12-05 18:34:36,661][DEBUG][ dns.c:1733] 8.8.8.48 [2023-12-05 18:34:36,661][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:36,661][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 57, id = 51984, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:36,661][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 51984 [2023-12-05 18:34:36,664][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:36,665][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 7143, group: default [2023-12-05 18:34:36,665][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:36,665][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 7143, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:36,665][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:36,665][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:36,665][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:36,665][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:36,666][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:36,666][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 7143 [2023-12-05 18:34:36,666][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:36,666][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:36,666][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:36,666][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:36,666][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 51984, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -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: 51984 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:36 UTC 2023 ;; MSG SIZE rcvd: 61 [ OK ] SubNet.pass_subnet (449 ms) [ RUN ] SubNet.conf [2023-12-05 18:34:36,773][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:36,777][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:36,777][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:36,777][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:36,777][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:36,777][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:36,778][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:36,778][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:36,778][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:36,828][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:36,828][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:36,828][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 5133, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:36,828][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 5133 [2023-12-05 18:34:36,831][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:36,832][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 19468, group: default [2023-12-05 18:34:36,832][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:36,832][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 19468, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:36,832][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:36,832][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:36,832][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:36,832][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:36,832][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:36,833][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 19468 [2023-12-05 18:34:36,833][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:36,833][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:36,833][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:36,833][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:36,833][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 5133, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -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: 5133 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:36 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] SubNet.conf (163 ms) [ RUN ] SubNet.conf_v6 [2023-12-05 18:34:36,937][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:36,941][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:36,941][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:36,941][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:36,941][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:36,942][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:36,942][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:36,942][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:36,942][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:36,942][DEBUG][ fast_ping.c:1448] ping 2001::, id = 3 [2023-12-05 18:34:36,942][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 3 [2023-12-05 18:34:36,988][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:36,988][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:36,988][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 55148, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:36,988][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 55148 [2023-12-05 18:34:36,992][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:36,992][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 23013, group: default [2023-12-05 18:34:36,993][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64, latency: 0 [2023-12-05 18:34:36,993][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 23013, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:36,993][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:36,993][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:36,993][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:36,993][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 945 [2023-12-05 18:34:36,993][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 4 [2023-12-05 18:34:36,993][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 23013 [2023-12-05 18:34:36,993][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:36,993][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:36,993][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:36,993][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:36,993][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 55148, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -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: 55148 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:36 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] SubNet.conf_v6 (159 ms) [ RUN ] SubNet.v4_server_subnet_txt [2023-12-05 18:34:37,097][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:37,101][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:37,101][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,101][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:37,101][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:37,101][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,102][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:37,102][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:37,102][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:37,146][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:37,146][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:37,146][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 21029, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:37,146][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 16, id: 21029 [2023-12-05 18:34:37,146][DEBUG][ dns_server.c:5046] unsupported qtype: 16, domain: a.com [2023-12-05 18:34:37,149][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,150][ INFO][ dns_client.c:3859] request: a.com, qtype: 16, id: 30814, group: default [2023-12-05 18:34:37,150][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 41, ttl: 64, latency: 1 [2023-12-05 18:34:37,150][DEBUG][ dns.c:2303] DNS type = 16 not supported [2023-12-05 18:34:37,150][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 41, id = 30814, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:37,150][DEBUG][ dns_client.c:1723] domain: a.com qtype: 16 qclass: 1 [2023-12-05 18:34:37,150][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:37,150][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 16, id: 21029, group: default, time: 4ms [2023-12-05 18:34:37,150][DEBUG][ dns_client.c:1495] result: a.com, qtype: 16, has-result: 1, id 30814 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com TXT +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21029 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 6 IN TXT "hello world" ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:37 UTC 2023 ;; MSG SIZE rcvd: 41 [ OK ] SubNet.v4_server_subnet_txt (159 ms) [ RUN ] SubNet.v6_default_subnet_txt [2023-12-05 18:34:37,257][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:37,261][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:37,261][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,261][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:37,261][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:37,261][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,262][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:37,262][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:37,262][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:37,308][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:37,308][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:37,308][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 5044, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:37,308][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 16, id: 5044 [2023-12-05 18:34:37,308][DEBUG][ dns_server.c:5046] unsupported qtype: 16, domain: a.com [2023-12-05 18:34:37,311][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,312][ INFO][ dns_client.c:3859] request: a.com, qtype: 16, id: 44598, group: default [2023-12-05 18:34:37,312][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 41, ttl: 64, latency: 1 [2023-12-05 18:34:37,312][DEBUG][ dns.c:2303] DNS type = 16 not supported [2023-12-05 18:34:37,312][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 41, id = 44598, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:37,312][DEBUG][ dns_client.c:1723] domain: a.com qtype: 16 qclass: 1 [2023-12-05 18:34:37,312][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:37,312][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 16, id: 5044, group: default, time: 4ms [2023-12-05 18:34:37,312][DEBUG][ dns_client.c:1495] result: a.com, qtype: 16, has-result: 1, id 44598 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com TXT +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5044 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 6 IN TXT "hello world" ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:37 UTC 2023 ;; MSG SIZE rcvd: 41 [ OK ] SubNet.v6_default_subnet_txt (159 ms) [ RUN ] SubNet.per_server [2023-12-05 18:34:37,418][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:37,422][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:37,422][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,422][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:37,422][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:37,422][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,422][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:37,422][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:37,422][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:37,422][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:37,423][DEBUG][ fast_ping.c:1448] ping 2001::, id = 3 [2023-12-05 18:34:37,423][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 3 [2023-12-05 18:34:37,466][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:37,466][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:37,466][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 1426, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:37,466][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 1426 [2023-12-05 18:34:37,469][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,470][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 10840, group: default [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 23, ttl: 64, latency: 1 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:1711] qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 23, id = 10840, tc = 0, rd = 0, ra = 1, rcode = 2, payloadsize = 0 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:37,470][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:37,470][DEBUG][ dns_server.c:3003] inquery failed, a.com, rcode = 2, id = 10840 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 10840, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:37,470][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:37,470][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:37,470][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:37,470][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:37,470][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 10840 [2023-12-05 18:34:37,470][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:37,471][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:37,471][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:37,471][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:37,471][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 1426, group: default, time: 4ms [2023-12-05 18:34:37,481][DEBUG][ dns_server.c:2573] from 5.6.7.8: seq=1 time=105, lasttime=-1 id=1426 [2023-12-05 18:34:37,481][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:37,481][DEBUG][ dns_server.c:969 ] result: a.com, rtt: 10.5 ms, 5.6.7.8 [2023-12-05 18:34:37,481][ INFO][ dns_server.c:829 ] result: a.com, id: 1426, index: 1, rtt: 10.5 ms, 5.6.7.8 [2023-12-05 18:34:37,481][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:37,481][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 4 ; <<>> DiG 9.18.20 <<>> -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: 1426 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:37 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:37,537][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:37,537][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:37,537][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 47660, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:37,537][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 47660 [2023-12-05 18:34:37,537][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,537][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,537][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 24650, group: default [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 23, ttl: 64, latency: 0 [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:1711] qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 23, id = 24650, tc = 0, rd = 0, ra = 1, rcode = 2, payloadsize = 0 [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:3003] inquery failed, a.com, rcode = 2, id = 24650 [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64, latency: 1 [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 24650, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 949 [2023-12-05 18:34:37,538][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 5 [2023-12-05 18:34:37,538][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 24650 [2023-12-05 18:34:37,538][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:37,538][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:37,538][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 47660, group: default, time: 1ms [2023-12-05 18:34:37,549][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=110, lasttime=-1 id=47660 [2023-12-05 18:34:37,549][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-12-05 18:34:37,549][DEBUG][ dns_server.c:976 ] result: a.com, rtt: 11.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:37,549][ INFO][ dns_server.c:833 ] result: a.com, id: 47660, index: 1, rtt: 11.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:37,549][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:37,549][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 5 ; <<>> DiG 9.18.20 <<>> -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: 47660 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:37 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] SubNet.per_server (331 ms) [----------] 6 tests from SubNet (1425 ms total) [----------] 9 tests from SpeedCheck [ RUN ] SpeedCheck.response_mode [2023-12-05 18:34:37,749][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:37,754][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:37,754][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,754][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:37,754][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:37,754][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:37,754][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:37,754][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:37,754][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:37,798][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:37,798][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:37,798][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 27938, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:37,798][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 27938 [2023-12-05 18:34:37,801][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:37,802][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 61180, group: default [2023-12-05 18:34:37,802][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 1 [2023-12-05 18:34:37,802][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 61180, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:37,802][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:37,802][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:37,802][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:37,802][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:37,802][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:37,802][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:37,802][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:37,802][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:37,802][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 61180 [2023-12-05 18:34:38,057][DEBUG][ dns_server.c:2725] ping 1.2.3.4:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:38,057][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 5 [2023-12-05 18:34:38,057][DEBUG][ dns_server.c:2725] ping 5.6.7.8:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:38,057][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 6 [2023-12-05 18:34:38,357][DEBUG][ dns_server.c:2725] ping 1.2.3.4:443 with tcp, order: 2, timeout: 391 [2023-12-05 18:34:38,357][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 7 [2023-12-05 18:34:38,357][DEBUG][ dns_server.c:2725] ping 5.6.7.8:443 with tcp, order: 2, timeout: 391 [2023-12-05 18:34:38,357][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:443, id = 8 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2552] ping 1.2.3.4:80 timeout [2023-12-05 18:34:38,805][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 5 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2552] ping 1.2.3.4:443 timeout [2023-12-05 18:34:38,805][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 7 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2552] ping 5.6.7.8:443 timeout [2023-12-05 18:34:38,805][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:443 end, id 8 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2552] ping 1.2.3.4 timeout [2023-12-05 18:34:38,805][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 3 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2552] ping 5.6.7.8:80 timeout [2023-12-05 18:34:38,805][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 6 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2552] ping 5.6.7.8 timeout [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2300] select best ip address, b.com [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:2305] possible result: b.com, rcode: 0, hitnum: 1, 1.2.3.4 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:38,805][ INFO][ dns_server.c:829 ] result: b.com, id: 27938, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:38,805][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 600 [2023-12-05 18:34:38,805][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 27938, group: default, time: 1007ms [2023-12-05 18:34:38,805][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 4 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27938 ;; 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 1.2.3.4 ;; Query time: 1007 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:38 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:38,868][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 47697, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 47697 [2023-12-05 18:34:38,868][ INFO][ dns_server.c:3881] RULE-MATCH, type: 10, domain: a.com, rule: a.com [2023-12-05 18:34:38,868][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:38,868][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 696, group: default [2023-12-05 18:34:38,868][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:38,868][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 696, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:38,868][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:3139] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:3139] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:38,868][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:38,869][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 47697, group: default, time: 1ms [2023-12-05 18:34:38,869][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:38,869][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 949 [2023-12-05 18:34:38,869][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 9 [2023-12-05 18:34:38,869][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:38,869][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 949 [2023-12-05 18:34:38,869][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 10 [2023-12-05 18:34:38,869][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 696 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47697 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:38 UTC 2023 ;; MSG SIZE rcvd: 49 [ OK ] SpeedCheck.response_mode (1223 ms) [ RUN ] SpeedCheck.none [2023-12-05 18:34:38,973][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:38,977][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:38,977][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:38,978][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:39,022][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:39,022][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:39,022][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 65217, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:39,022][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 65217 [2023-12-05 18:34:39,025][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:39,026][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 26431, group: default [2023-12-05 18:34:39,026][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 1 [2023-12-05 18:34:39,026][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 26431, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:39,026][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:39,026][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:39,026][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:39,026][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:39,026][ INFO][ dns_server.c:2122] result: b.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:39,026][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:39,026][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:39,026][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 600 [2023-12-05 18:34:39,026][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 65217, group: default, time: 4ms [2023-12-05 18:34:39,026][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 26431 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65217 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:39 UTC 2023 ;; MSG SIZE rcvd: 55 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:39,091][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 9815, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 9815 [2023-12-05 18:34:39,091][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:39,091][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 30588, group: default [2023-12-05 18:34:39,091][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:39,091][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 30588, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:39,091][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:39,091][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:39,091][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:39,091][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 9815, group: default, time: 1ms [2023-12-05 18:34:39,091][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 30588 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9815 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:39 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] SpeedCheck.none (223 ms) [ RUN ] SpeedCheck.domain_rules_none [2023-12-05 18:34:39,197][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:39,202][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:39,202][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:39,202][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:39,202][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:39,202][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:39,202][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:39,202][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:39,202][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:39,246][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:39,246][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:39,246][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 40226, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:39,246][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 40226 [2023-12-05 18:34:39,249][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:39,250][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 3144, group: default [2023-12-05 18:34:39,250][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:39,250][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 3144, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:39,250][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:39,250][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:39,250][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:39,250][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:39,250][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:39,251][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:39,251][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:39,251][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:39,251][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 3144 [2023-12-05 18:34:39,505][DEBUG][ dns_server.c:2725] ping 1.2.3.4:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:39,505][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 5 [2023-12-05 18:34:39,505][DEBUG][ dns_server.c:2725] ping 5.6.7.8:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:39,505][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 6 [2023-12-05 18:34:39,805][DEBUG][ dns_server.c:2725] ping 1.2.3.4:443 with tcp, order: 2, timeout: 391 [2023-12-05 18:34:39,805][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 7 [2023-12-05 18:34:39,805][DEBUG][ dns_server.c:2725] ping 5.6.7.8:443 with tcp, order: 2, timeout: 391 [2023-12-05 18:34:39,805][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:443, id = 8 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2552] ping 1.2.3.4:80 timeout [2023-12-05 18:34:40,253][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 5 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2552] ping 1.2.3.4:443 timeout [2023-12-05 18:34:40,253][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 7 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2552] ping 5.6.7.8:443 timeout [2023-12-05 18:34:40,253][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:443 end, id 8 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2552] ping 1.2.3.4 timeout [2023-12-05 18:34:40,253][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 3 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2552] ping 5.6.7.8:80 timeout [2023-12-05 18:34:40,253][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 6 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2552] ping 5.6.7.8 timeout [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2300] select best ip address, b.com [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:2305] possible result: b.com, rcode: 0, hitnum: 1, 1.2.3.4 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:40,253][ INFO][ dns_server.c:829 ] result: b.com, id: 40226, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:40,253][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 600 [2023-12-05 18:34:40,253][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 40226, group: default, time: 1007ms [2023-12-05 18:34:40,254][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 4 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40226 ;; 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 1.2.3.4 ;; Query time: 1007 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:40 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:40,314][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:40,314][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:40,314][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 33716, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:40,314][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 33716 [2023-12-05 18:34:40,314][ INFO][ dns_server.c:3881] RULE-MATCH, type: 9, domain: a.com, rule: a.com [2023-12-05 18:34:40,314][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:40,314][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 26565, group: default [2023-12-05 18:34:40,314][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:40,314][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 26565, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:40,314][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:40,314][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:40,314][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:40,314][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:40,315][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:40,315][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:40,315][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:40,315][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:40,315][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 33716, group: default, time: 1ms [2023-12-05 18:34:40,315][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 26565 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33716 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:40 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] SpeedCheck.domain_rules_none (1223 ms) [ RUN ] SpeedCheck.only_ping [2023-12-05 18:34:40,421][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:40,425][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:40,426][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:40,426][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:40,426][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:40,426][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:40,472][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:40,472][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:40,472][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 10159, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:40,472][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 10159 [2023-12-05 18:34:40,476][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:40,476][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 37083, group: default [2023-12-05 18:34:40,476][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:40,477][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 37083, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:40,477][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:40,477][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:40,477][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:40,477][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:40,477][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-12-05 18:34:40,477][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:40,477][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:40,477][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-12-05 18:34:40,477][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 37083 [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:2552] ping 5.6.7.8 timeout [2023-12-05 18:34:41,481][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:2552] ping 1.2.3.4 timeout [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:2300] select best ip address, b.com [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:2305] possible result: b.com, rcode: 0, hitnum: 1, 5.6.7.8 [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:41,481][ INFO][ dns_server.c:829 ] result: b.com, id: 10159, index: 1, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:41,481][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 600 [2023-12-05 18:34:41,481][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 10159, group: default, time: 1009ms [2023-12-05 18:34:41,481][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10159 ;; 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: 1011 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:41 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.only_ping (1095 ms) [ RUN ] SpeedCheck.no_ping_fallback_tcp [2023-12-05 18:34:41,517][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:41,522][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:41,522][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:41,522][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:41,522][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:41,522][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:41,522][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:41,522][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:41,522][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:41,566][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:41,566][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:41,566][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 64281, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:41,566][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 64281 [2023-12-05 18:34:41,570][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:41,570][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 61240, group: default [2023-12-05 18:34:41,571][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 1 [2023-12-05 18:34:41,571][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 61240, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:41,571][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:41,571][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:41,571][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:41,571][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:41,571][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:41,571][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:41,571][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:41,571][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:41,571][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 61240 [2023-12-05 18:34:41,825][DEBUG][ dns_server.c:2725] ping 1.2.3.4:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:41,825][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 5 [2023-12-05 18:34:41,825][DEBUG][ dns_server.c:2725] ping 5.6.7.8:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:41,825][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 6 [2023-12-05 18:34:41,929][DEBUG][ dns_server.c:2573] from 5.6.7.8:80: seq=1 time=1035, lasttime=-1 id=64281 [2023-12-05 18:34:41,929][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: 103.5 ms, 5.6.7.8 [2023-12-05 18:34:41,929][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:41,929][DEBUG][ dns_server.c:969 ] result: a.com, rtt: 103.5 ms, 5.6.7.8 [2023-12-05 18:34:41,929][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:41,929][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 64281, group: default, time: 363ms [2023-12-05 18:34:41,929][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 6 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64281 ;; 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: 363 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:41 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.no_ping_fallback_tcp (471 ms) [ RUN ] SpeedCheck.tcp_faster_than_ping [2023-12-05 18:34:41,989][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:41,994][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:41,994][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:41,994][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:41,994][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:41,994][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:41,994][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:41,994][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:41,994][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:42,038][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:42,038][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:42,038][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 26769, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:42,038][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 26769 [2023-12-05 18:34:42,041][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:42,042][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 46025, group: default [2023-12-05 18:34:42,042][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 1 [2023-12-05 18:34:42,042][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 46025, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:42,042][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:42,042][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:42,042][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:42,042][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:42,042][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:42,042][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:42,042][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:42,042][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:42,042][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 46025 [2023-12-05 18:34:42,297][DEBUG][ dns_server.c:2725] ping 1.2.3.4:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:42,297][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 5 [2023-12-05 18:34:42,297][DEBUG][ dns_server.c:2725] ping 5.6.7.8:80 with tcp, order: 1, timeout: 691 [2023-12-05 18:34:42,297][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 6 [2023-12-05 18:34:42,309][DEBUG][ dns_server.c:2573] from 5.6.7.8:80: seq=1 time=116, lasttime=-1 id=26769 [2023-12-05 18:34:42,309][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: 11.6 ms, 5.6.7.8 [2023-12-05 18:34:42,309][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:42,309][DEBUG][ dns_server.c:969 ] result: a.com, rtt: 11.6 ms, 5.6.7.8 [2023-12-05 18:34:42,309][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:42,309][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 26769, group: default, time: 271ms [2023-12-05 18:34:42,309][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 6 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26769 ;; 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: 271 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:42 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.tcp_faster_than_ping (363 ms) [ RUN ] SpeedCheck.fastest_ip [2023-12-05 18:34:42,353][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:42,358][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:42,358][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:42,358][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:42,358][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:42,358][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:42,402][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:42,402][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:42,402][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 52387, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:42,402][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 52387 [2023-12-05 18:34:42,406][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:42,406][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 58794, group: default [2023-12-05 18:34:42,406][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:42,406][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 58794, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:42,406][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:42,406][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:42,406][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:42,406][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:42,406][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-12-05 18:34:42,407][DEBUG][ dns_server.c:2846] domain: b.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:42,407][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:42,407][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 3 [2023-12-05 18:34:42,407][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 58794 [2023-12-05 18:34:42,509][DEBUG][ dns_server.c:2573] from 1.2.3.4: seq=1 time=1023, lasttime=-1 id=52387 [2023-12-05 18:34:42,509][ INFO][ dns_server.c:2122] result: b.com, qtype: 1, rtt: 102.3 ms, 1.2.3.4 [2023-12-05 18:34:42,509][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:42,509][DEBUG][ dns_server.c:969 ] result: b.com, rtt: 102.3 ms, 1.2.3.4 [2023-12-05 18:34:42,509][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 600 [2023-12-05 18:34:42,509][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 52387, group: default, time: 107ms [2023-12-05 18:34:42,509][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-12-05 18:34:42,517][DEBUG][ dns_server.c:2573] from 5.6.7.8: seq=1 time=1102, lasttime=1023 id=52387 [2023-12-05 18:34:42,517][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:42,517][DEBUG][ dns_server.c:969 ] result: b.com, rtt: 102.3 ms, 1.2.3.4 [2023-12-05 18:34:42,517][ INFO][ dns_server.c:829 ] result: b.com, id: 52387, index: 1, rtt: 102.3 ms, 1.2.3.4 [2023-12-05 18:34:42,517][ INFO][ dns_server.c:829 ] result: b.com, id: 52387, index: 2, rtt: 110.2 ms, 5.6.7.8 [2023-12-05 18:34:42,517][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 600 [2023-12-05 18:34:42,517][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 3 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52387 ;; 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: 107 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:42 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:42,792][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:42,792][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:42,792][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 240, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:42,792][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 240 [2023-12-05 18:34:42,793][ INFO][ dns_server.c:3382] result: b.com, client: 127.0.0.1, qtype: 1, id: 240, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 240 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:42 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] SpeedCheck.fastest_ip (471 ms) [ RUN ] SpeedCheck.unreach_best_ipv4 [2023-12-05 18:34:42,826][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:42,830][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:42,830][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:42,830][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:42,830][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:42,830][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:42,830][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:42,874][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:42,875][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:42,875][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 31415, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:42,875][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 31415 [2023-12-05 18:34:42,878][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:42,879][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 27023, group: default [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 1 [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 27023, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:42,879][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 2 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 9.10.11.12 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2720] ping 9.10.11.12 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:42,879][DEBUG][ fast_ping.c:1448] ping 9.10.11.12, id = 3 [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 27023, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:42,879][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:42,879][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:42,880][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:42,880][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 27023 [2023-12-05 18:34:43,881][DEBUG][ fast_ping.c:677 ] ping 9.10.11.12 end, id 3 [2023-12-05 18:34:43,881][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 2 [2023-12-05 18:34:43,881][DEBUG][ dns_server.c:2300] select best ip address, a.com [2023-12-05 18:34:43,881][DEBUG][ dns_server.c:2305] possible result: a.com, rcode: 0, hitnum: 2, 1.2.3.4 [2023-12-05 18:34:43,881][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:43,881][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:43,881][ INFO][ dns_server.c:829 ] result: a.com, id: 31415, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:43,881][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:43,881][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 31415, group: default, time: 1007ms [2023-12-05 18:34:43,881][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 4 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31415 ;; 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: 1007 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:43 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] SpeedCheck.unreach_best_ipv4 (1195 ms) [ RUN ] SpeedCheck.unreach_best_ipv6 [2023-12-05 18:34:44,022][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:44,026][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:44,026][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:44,026][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:44,026][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:44,026][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:44,026][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:44,026][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:44,026][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:44,069][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:44,070][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:44,070][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 6713, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:44,070][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 6713 [2023-12-05 18:34:44,073][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:44,074][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 10686, group: default [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64, latency: 1 [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 10686, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 945 [2023-12-05 18:34:44,074][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 3 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0003 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0003] with icmp, order: 0, timeout: 945 [2023-12-05 18:34:44,074][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0003], id = 4 [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64, latency: 0 [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 10686, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:44,074][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:44,074][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 945 [2023-12-05 18:34:44,074][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 5 [2023-12-05 18:34:44,075][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:44,075][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 10686 [2023-12-05 18:34:45,077][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0003] end, id 4 [2023-12-05 18:34:45,077][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 3 [2023-12-05 18:34:45,077][DEBUG][ dns_server.c:2300] select best ip address, a.com [2023-12-05 18:34:45,077][DEBUG][ dns_server.c:2312] possible result: a.com, rcode: 0, hitnum: 2, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:45,077][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:45,077][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:45,077][ INFO][ dns_server.c:833 ] result: a.com, id: 6713, index: 1, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:45,077][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:45,077][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 6713, group: default, time: 1008ms [2023-12-05 18:34:45,078][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 5 ; <<>> DiG 9.18.20 <<>> -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: 6713 ;; 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: 1007 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:45 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] SpeedCheck.unreach_best_ipv6 (1199 ms) [----------] 9 tests from SpeedCheck (7471 ms total) [----------] 1 test from Server [ RUN ] Server.all_unreach [2023-12-05 18:34:45,227][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:45,231][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:45,231][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:45,231][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:45,231][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:45,232][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:45,232][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:45,232][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:45,355][ INFO][ dns_client.c:1170] add server 255.255.255.255:853, type: tls [2023-12-05 18:34:45,356][ INFO][ dns_client.c:1170] add server 255.255.255.255:443, type: https [2023-12-05 18:34:45,356][ INFO][ dns_client.c:1170] add server 255.255.255.255:53, type: tcp [2023-12-05 18:34:45,356][DEBUG][ fast_ping.c:1448] ping 2001::, id = 3 [2023-12-05 18:34:45,356][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 3 [2023-12-05 18:34:45,399][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:45,399][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:45,399][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 62281, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:45,399][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 62281 [2023-12-05 18:34:45,399][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,399][DEBUG][ dns_client.c:1962] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,399][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,399][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:1962] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,400][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,400][ WARN][ dns_client.c:3582] send query a.com to upstream server failed, total server number 3 [2023-12-05 18:34:45,400][DEBUG][ dns_server.c:5324] send dns request failed. [2023-12-05 18:34:45,400][DEBUG][ dns_server.c:5465] do query a.com failed. [2023-12-05 18:34:45,400][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:45,400][ INFO][ dns_server.c:1010] result: a.com, qtype: 1, rtcode: 2 [2023-12-05 18:34:45,400][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 62281, group: default, time: 1ms [2023-12-05 18:34:45,400][DEBUG][ dns_server.c:6666] dns server process failed. ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 62281 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:45 UTC 2023 ;; MSG SIZE rcvd: 23 [2023-12-05 18:34:45,463][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 2 [2023-12-05 18:34:45,463][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:45,463][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 59263, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:45,463][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 59263 [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:1962] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:1962] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,463][DEBUG][ dns_client.c:3492] send query to server 255.255.255.255 [2023-12-05 18:34:45,464][DEBUG][ dns_client.c:2071] connect 255.255.255.255 failed, Network is unreachable [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:5324] send dns request failed. [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:5465] do query a.com failed. [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:45,464][ INFO][ dns_server.c:1010] result: a.com, qtype: 1, rtcode: 2 [2023-12-05 18:34:45,464][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 59263, group: default, time: 1ms [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:6018] process one request failed. [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:6073] process tcp request failed. [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:6238] process TCP packet from 127.0.0.1 failed. [2023-12-05 18:34:45,464][DEBUG][ dns_server.c:6666] dns server process failed. ; <<>> DiG 9.18.20 <<>> -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: 59263 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (TCP) ;; WHEN: Tue Dec 05 18:34:45 UTC 2023 ;; MSG SIZE rcvd: 23 [ OK ] Server.all_unreach (315 ms) [----------] 1 test from Server (315 ms total) [----------] 1 test from SamePending [ RUN ] SamePending.pending [ OK ] SamePending.pending (932 ms) [----------] 1 test from SamePending (932 ms total) [----------] 4 tests from Rule [ RUN ] Rule.Match [2023-12-05 18:34:46,470][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:46,474][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:46,474][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:46,475][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:46,516][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:46,516][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,516][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 64339, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,516][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 64339 [2023-12-05 18:34:46,516][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-12-05 18:34:46,516][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,516][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:46,516][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 64339, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 64339 ;; 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 5.6.7.8 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:46,576][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 48, type = 0 [2023-12-05 18:34:46,576][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,576][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 48, id = 16964, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,576][DEBUG][ dns_server.c:5461] query a.a.com from 127.0.0.1, qtype: 1, id: 16964 [2023-12-05 18:34:46,576][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.a.com, rule: a.com [2023-12-05 18:34:46,576][DEBUG][ dns_server.c:1876] reply a.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,576][DEBUG][ dns_server.c:969 ] result: a.a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:46,576][ INFO][ dns_server.c:1931] result: a.a.com, client: 127.0.0.1, qtype: 1, id: 16964, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16964 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.a.com. IN A ;; ANSWER SECTION: a.a.com. 600 IN A 5.6.7.8 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 41 [2023-12-05 18:34:46,636][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 47, type = 0 [2023-12-05 18:34:46,636][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,636][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 47, id = 5705, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,636][DEBUG][ dns_server.c:5461] query aa.com from 127.0.0.1, qtype: 1, id: 5705 [2023-12-05 18:34:46,640][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:46,640][ INFO][ dns_client.c:3859] request: aa.com, qtype: 1, id: 47151, group: default [2023-12-05 18:34:46,641][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 34, ttl: 64, latency: 0 [2023-12-05 18:34:46,641][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 34, id = 47151, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:46,641][DEBUG][ dns_client.c:1723] domain: aa.com qtype: 1 qclass: 1 [2023-12-05 18:34:46,641][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:46,641][DEBUG][ dns_server.c:2846] domain: aa.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:46,641][ INFO][ dns_server.c:2122] result: aa.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:46,641][DEBUG][ dns_server.c:1876] reply aa.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,641][DEBUG][ dns_server.c:969 ] result: aa.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:46,641][DEBUG][ dns_server.c:1285] cache aa.com qtype: 1 ttl: 700 [2023-12-05 18:34:46,641][ INFO][ dns_server.c:1931] result: aa.com, client: 127.0.0.1, qtype: 1, id: 5705, group: default, time: 5ms [2023-12-05 18:34:46,641][DEBUG][ dns_client.c:1495] result: aa.com, qtype: 1, has-result: 1, id 47151 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 aa.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5705 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;aa.com. IN A ;; ANSWER SECTION: aa.com. 700 IN A 1.2.3.4 ;; Query time: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 40 [ OK ] Rule.Match (275 ms) [ RUN ] Rule.PrefixWildcardMatch [2023-12-05 18:34:46,746][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:46,750][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:46,750][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:46,750][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:46,792][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:46,793][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,793][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 41748, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,793][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 41748 [2023-12-05 18:34:46,793][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: .com [2023-12-05 18:34:46,793][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,793][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:46,793][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 41748, group: default, time: 1ms ; <<>> DiG 9.18.20 <<>> -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: 41748 ;; 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 5.6.7.8 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:46,855][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 48, type = 0 [2023-12-05 18:34:46,855][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,855][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 48, id = 10885, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,855][DEBUG][ dns_server.c:5461] query a.a.com from 127.0.0.1, qtype: 1, id: 10885 [2023-12-05 18:34:46,855][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.a.com, rule: .com [2023-12-05 18:34:46,855][DEBUG][ dns_server.c:1876] reply a.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,855][DEBUG][ dns_server.c:969 ] result: a.a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:46,855][ INFO][ dns_server.c:1931] result: a.a.com, client: 127.0.0.1, qtype: 1, id: 10885, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10885 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.a.com. IN A ;; ANSWER SECTION: a.a.com. 600 IN A 5.6.7.8 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 41 [2023-12-05 18:34:46,917][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 47, type = 0 [2023-12-05 18:34:46,917][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,917][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 47, id = 4285, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,917][DEBUG][ dns_server.c:5461] query aa.com from 127.0.0.1, qtype: 1, id: 4285 [2023-12-05 18:34:46,917][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: aa.com, rule: .com [2023-12-05 18:34:46,917][DEBUG][ dns_server.c:1876] reply aa.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,917][DEBUG][ dns_server.c:969 ] result: aa.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:46,917][ INFO][ dns_server.c:1931] result: aa.com, client: 127.0.0.1, qtype: 1, id: 4285, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 aa.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4285 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;aa.com. IN A ;; ANSWER SECTION: aa.com. 600 IN A 5.6.7.8 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 40 [2023-12-05 18:34:46,976][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 47, type = 0 [2023-12-05 18:34:46,976][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:46,976][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 47, id = 43183, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:46,976][DEBUG][ dns_server.c:5461] query ab.com from 127.0.0.1, qtype: 1, id: 43183 [2023-12-05 18:34:46,980][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:46,980][ INFO][ dns_client.c:3859] request: ab.com, qtype: 1, id: 2693, group: default [2023-12-05 18:34:46,981][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 34, ttl: 64, latency: 1 [2023-12-05 18:34:46,981][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 34, id = 2693, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:46,981][DEBUG][ dns_client.c:1723] domain: ab.com qtype: 1 qclass: 1 [2023-12-05 18:34:46,981][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:46,981][DEBUG][ dns_server.c:2846] domain: ab.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:46,981][ INFO][ dns_server.c:2122] result: ab.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:46,981][DEBUG][ dns_server.c:1876] reply ab.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:46,981][DEBUG][ dns_server.c:969 ] result: ab.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:46,981][DEBUG][ dns_server.c:1285] cache ab.com qtype: 1 ttl: 700 [2023-12-05 18:34:46,981][ INFO][ dns_server.c:1931] result: ab.com, client: 127.0.0.1, qtype: 1, id: 43183, group: default, time: 5ms [2023-12-05 18:34:46,981][DEBUG][ dns_client.c:1495] result: ab.com, qtype: 1, has-result: 1, id 2693 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 ab.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43183 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ab.com. IN A ;; ANSWER SECTION: ab.com. 700 IN A 1.2.3.4 ;; Query time: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:46 UTC 2023 ;; MSG SIZE rcvd: 40 [ OK ] Rule.PrefixWildcardMatch (339 ms) [ RUN ] Rule.SubDomainMatchOnly [2023-12-05 18:34:47,086][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:47,090][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:47,090][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:47,090][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:47,133][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:47,133][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,133][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 38299, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,133][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 38299 [2023-12-05 18:34:47,136][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:47,137][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 56708, group: default [2023-12-05 18:34:47,137][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:47,137][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 56708, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:47,137][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:47,137][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:47,137][DEBUG][ dns_server.c:2846] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:47,137][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,137][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,137][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,137][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:47,137][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 38299, group: default, time: 4ms [2023-12-05 18:34:47,138][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 56708 ; <<>> DiG 9.18.20 <<>> -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: 38299 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:47,197][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 48, type = 0 [2023-12-05 18:34:47,197][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,197][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 48, id = 37005, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,197][DEBUG][ dns_server.c:5461] query a.a.com from 127.0.0.1, qtype: 1, id: 37005 [2023-12-05 18:34:47,197][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.a.com, rule: a.com [2023-12-05 18:34:47,197][DEBUG][ dns_server.c:1876] reply a.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,197][DEBUG][ dns_server.c:969 ] result: a.a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:47,197][ INFO][ dns_server.c:1931] result: a.a.com, client: 127.0.0.1, qtype: 1, id: 37005, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37005 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.a.com. IN A ;; ANSWER SECTION: a.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: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 41 [2023-12-05 18:34:47,256][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 47, type = 0 [2023-12-05 18:34:47,256][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,256][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 47, id = 38690, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,257][DEBUG][ dns_server.c:5461] query aa.com from 127.0.0.1, qtype: 1, id: 38690 [2023-12-05 18:34:47,257][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:47,257][ INFO][ dns_client.c:3859] request: aa.com, qtype: 1, id: 51554, group: default [2023-12-05 18:34:47,257][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 34, ttl: 64, latency: 1 [2023-12-05 18:34:47,257][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 34, id = 51554, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:47,257][DEBUG][ dns_client.c:1723] domain: aa.com qtype: 1 qclass: 1 [2023-12-05 18:34:47,257][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:47,257][DEBUG][ dns_server.c:2846] domain: aa.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:47,257][ INFO][ dns_server.c:2122] result: aa.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,257][DEBUG][ dns_server.c:1876] reply aa.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,257][DEBUG][ dns_server.c:969 ] result: aa.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,257][DEBUG][ dns_server.c:1285] cache aa.com qtype: 1 ttl: 700 [2023-12-05 18:34:47,257][ INFO][ dns_server.c:1931] result: aa.com, client: 127.0.0.1, qtype: 1, id: 38690, group: default, time: 1ms [2023-12-05 18:34:47,257][DEBUG][ dns_client.c:1495] result: aa.com, qtype: 1, has-result: 1, id 51554 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 aa.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38690 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;aa.com. IN A ;; ANSWER SECTION: aa.com. 700 IN A 1.2.3.4 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 40 [ OK ] Rule.SubDomainMatchOnly (279 ms) [ RUN ] Rule.RootDomainMatchOnly [2023-12-05 18:34:47,366][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:47,370][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:47,370][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:47,370][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:47,413][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:47,413][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,413][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 18294, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,413][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 18294 [2023-12-05 18:34:47,413][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-12-05 18:34:47,413][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,413][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:47,413][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 18294, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 18294 ;; 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 5.6.7.8 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:47,474][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 48, type = 0 [2023-12-05 18:34:47,474][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,474][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 48, id = 26806, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,474][DEBUG][ dns_server.c:5461] query a.a.com from 127.0.0.1, qtype: 1, id: 26806 [2023-12-05 18:34:47,477][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:47,478][ INFO][ dns_client.c:3859] request: a.a.com, qtype: 1, id: 58613, group: default [2023-12-05 18:34:47,478][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64, latency: 1 [2023-12-05 18:34:47,478][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 58613, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:47,478][DEBUG][ dns_client.c:1723] domain: a.a.com qtype: 1 qclass: 1 [2023-12-05 18:34:47,478][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:47,478][DEBUG][ dns_server.c:2846] domain: a.a.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:47,478][ INFO][ dns_server.c:2122] result: a.a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,478][DEBUG][ dns_server.c:1876] reply a.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,478][DEBUG][ dns_server.c:969 ] result: a.a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,478][DEBUG][ dns_server.c:1285] cache a.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:47,478][ INFO][ dns_server.c:1931] result: a.a.com, client: 127.0.0.1, qtype: 1, id: 26806, group: default, time: 4ms [2023-12-05 18:34:47,478][DEBUG][ dns_client.c:1495] result: a.a.com, qtype: 1, has-result: 1, id 58613 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26806 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.a.com. IN A ;; ANSWER SECTION: a.a.com. 700 IN A 1.2.3.4 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 41 [2023-12-05 18:34:47,541][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 48, type = 0 [2023-12-05 18:34:47,541][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,541][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 48, id = 17467, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,541][DEBUG][ dns_server.c:5461] query b.a.com from 127.0.0.1, qtype: 1, id: 17467 [2023-12-05 18:34:47,541][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:47,541][ INFO][ dns_client.c:3859] request: b.a.com, qtype: 1, id: 43269, group: default [2023-12-05 18:34:47,542][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64, latency: 0 [2023-12-05 18:34:47,542][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 43269, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:47,542][DEBUG][ dns_client.c:1723] domain: b.a.com qtype: 1 qclass: 1 [2023-12-05 18:34:47,542][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:47,542][DEBUG][ dns_server.c:2846] domain: b.a.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:47,542][ INFO][ dns_server.c:2122] result: b.a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,542][DEBUG][ dns_server.c:1876] reply b.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,542][DEBUG][ dns_server.c:969 ] result: b.a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,542][DEBUG][ dns_server.c:1285] cache b.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:47,542][ INFO][ dns_server.c:1931] result: b.a.com, client: 127.0.0.1, qtype: 1, id: 17467, group: default, time: 1ms [2023-12-05 18:34:47,542][DEBUG][ dns_client.c:1495] result: b.a.com, qtype: 1, has-result: 1, id 43269 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.a.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17467 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;b.a.com. IN A ;; ANSWER SECTION: b.a.com. 700 IN A 1.2.3.4 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 41 [2023-12-05 18:34:47,602][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 47, type = 0 [2023-12-05 18:34:47,602][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,602][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 47, id = 40362, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,602][DEBUG][ dns_server.c:5461] query ba.com from 127.0.0.1, qtype: 1, id: 40362 [2023-12-05 18:34:47,602][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:47,602][ INFO][ dns_client.c:3859] request: ba.com, qtype: 1, id: 16211, group: default [2023-12-05 18:34:47,603][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 34, ttl: 64, latency: 0 [2023-12-05 18:34:47,603][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 34, id = 16211, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:47,603][DEBUG][ dns_client.c:1723] domain: ba.com qtype: 1 qclass: 1 [2023-12-05 18:34:47,603][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:47,603][DEBUG][ dns_server.c:2846] domain: ba.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:47,603][ INFO][ dns_server.c:2122] result: ba.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,603][DEBUG][ dns_server.c:1876] reply ba.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:47,603][DEBUG][ dns_server.c:969 ] result: ba.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:47,603][DEBUG][ dns_server.c:1285] cache ba.com qtype: 1 ttl: 700 [2023-12-05 18:34:47,603][ INFO][ dns_server.c:1931] result: ba.com, client: 127.0.0.1, qtype: 1, id: 40362, group: default, time: 1ms [2023-12-05 18:34:47,603][DEBUG][ dns_client.c:1495] result: ba.com, qtype: 1, has-result: 1, id 16211 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 ba.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40362 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ba.com. IN A ;; ANSWER SECTION: ba.com. 700 IN A 1.2.3.4 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 40 [ OK ] Rule.RootDomainMatchOnly (343 ms) [----------] 4 tests from Rule (1239 ms total) [----------] 5 tests from QtypeSOA [ RUN ] QtypeSOA.AAAA_HTTPS [2023-12-05 18:34:47,710][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:47,714][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:47,714][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:47,714][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:47,714][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:47,714][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:47,714][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:47,714][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:47,714][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:47,757][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:47,757][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,757][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 26727, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,757][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 26727 [2023-12-05 18:34:47,757][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:47,757][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 26727, group: default, time: 0ms [2023-12-05 18:34:47,757][DEBUG][ dns_server.c:4636] force qtype 28 soa ; <<>> DiG 9.18.20 <<>> -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: 26727 ;; 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: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:34:47,818][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:47,818][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,818][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 43695, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,818][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 65, id: 43695 [2023-12-05 18:34:47,818][DEBUG][ dns_server.c:5046] unsupported qtype: 65, domain: a.com [2023-12-05 18:34:47,818][DEBUG][ dns_server.c:1876] reply a.com qtype: 65, rcode: 0, reply: 1 [2023-12-05 18:34:47,818][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 65, id: 43695, group: default, time: 0ms [2023-12-05 18:34:47,818][DEBUG][ dns_server.c:4636] force qtype 65 soa ; <<>> DiG 9.18.20 <<>> -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: 43695 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:47 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:34:47,877][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:47,877][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:47,877][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 33971, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:47,877][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 33971 [2023-12-05 18:34:47,881][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:47,881][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 41429, group: default [2023-12-05 18:34:47,881][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:47,881][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 41429, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:47,882][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:47,882][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:47,882][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:47,882][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:47,882][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:47,882][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:47,882][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:47,882][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 4 [2023-12-05 18:34:47,882][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 41429 [2023-12-05 18:34:48,217][DEBUG][ dns_server.c:2725] ping 1.2.3.4:80 with tcp, order: 1, timeout: 610 [2023-12-05 18:34:48,217][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:80, id = 5 [2023-12-05 18:34:48,217][DEBUG][ dns_server.c:2725] ping 5.6.7.8:80 with tcp, order: 1, timeout: 610 [2023-12-05 18:34:48,217][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:80, id = 6 [2023-12-05 18:34:48,417][DEBUG][ dns_server.c:2725] ping 1.2.3.4:443 with tcp, order: 2, timeout: 410 [2023-12-05 18:34:48,417][DEBUG][ fast_ping.c:1448] ping 1.2.3.4:443, id = 7 [2023-12-05 18:34:48,417][DEBUG][ dns_server.c:2725] ping 5.6.7.8:443 with tcp, order: 2, timeout: 410 [2023-12-05 18:34:48,417][DEBUG][ fast_ping.c:1448] ping 5.6.7.8:443, id = 8 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2552] ping 1.2.3.4:80 timeout [2023-12-05 18:34:48,885][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:80 end, id 5 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2552] ping 1.2.3.4:443 timeout [2023-12-05 18:34:48,885][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4:443 end, id 7 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2552] ping 5.6.7.8:443 timeout [2023-12-05 18:34:48,885][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:443 end, id 8 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2552] ping 1.2.3.4 timeout [2023-12-05 18:34:48,885][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 3 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2552] ping 5.6.7.8:80 timeout [2023-12-05 18:34:48,885][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8:80 end, id 6 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2552] ping 5.6.7.8 timeout [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2300] select best ip address, a.com [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:2305] possible result: a.com, rcode: 0, hitnum: 1, 1.2.3.4 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:48,885][ INFO][ dns_server.c:829 ] result: a.com, id: 33971, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:48,885][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:48,885][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 33971, group: default, time: 1008ms [2023-12-05 18:34:48,886][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 4 [ OK ] QtypeSOA.AAAA_HTTPS (1215 ms) [ RUN ] QtypeSOA.AAAA_Except [2023-12-05 18:34:48,926][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:48,930][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:48,930][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:48,930][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:48,930][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:48,930][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:48,930][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:48,930][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:48,931][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:48,973][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:48,973][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:48,973][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 30804, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:48,973][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 30804 [2023-12-05 18:34:48,973][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-12-05 18:34:48,977][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:48,977][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 44231, group: default [2023-12-05 18:34:48,978][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64, latency: 1 [2023-12-05 18:34:48,978][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 44231, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:48,978][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:48,978][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:48,978][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:48,978][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:48,978][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:48,978][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:48,978][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:48,978][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 30804, group: default, time: 5ms [2023-12-05 18:34:48,978][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 44231 ; <<>> DiG 9.18.20 <<>> -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: 30804 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:48 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] QtypeSOA.AAAA_Except (159 ms) [ RUN ] QtypeSOA.force_AAAA_SOA_Except [2023-12-05 18:34:49,086][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:49,090][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:49,090][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:49,090][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:49,090][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:49,090][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:49,090][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:49,090][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:49,091][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:49,132][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,132][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,132][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 64998, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,132][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 64998 [2023-12-05 18:34:49,132][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-12-05 18:34:49,136][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:49,136][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 47378, group: default [2023-12-05 18:34:49,137][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64, latency: 1 [2023-12-05 18:34:49,137][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 47378, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:49,137][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:49,137][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:49,137][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:49,137][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:49,137][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:49,137][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:49,137][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:49,137][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 64998, group: default, time: 5ms [2023-12-05 18:34:49,138][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 47378 ; <<>> DiG 9.18.20 <<>> -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: 64998 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] QtypeSOA.force_AAAA_SOA_Except (159 ms) [ RUN ] QtypeSOA.force_AAAA_SOA [2023-12-05 18:34:49,246][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:49,250][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:49,250][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:49,251][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:49,293][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,293][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,293][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 31698, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,293][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 31698 [2023-12-05 18:34:49,296][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:49,297][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 22142, group: default [2023-12-05 18:34:49,297][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:49,297][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 22142, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:49,297][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:49,297][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:49,297][DEBUG][ dns_server.c:2846] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:49,297][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:49,297][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:49,297][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:49,298][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:49,298][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 31698, group: default, time: 5ms [2023-12-05 18:34:49,298][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 22142 ; <<>> DiG 9.18.20 <<>> -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: 31698 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:49,357][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,357][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,357][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 59541, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,357][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 59541 [2023-12-05 18:34:49,357][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:49,357][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 59541, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 59541 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 96 [ OK ] QtypeSOA.force_AAAA_SOA (159 ms) [ RUN ] QtypeSOA.bind_force_AAAA_SOA [2023-12-05 18:34:49,406][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:49,410][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:49,410][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:49,410][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:49,454][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,454][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,454][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 27286, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,454][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 27286 [2023-12-05 18:34:49,457][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:49,458][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 5302, group: default [2023-12-05 18:34:49,458][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:49,458][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 5302, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:49,458][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:49,458][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:49,458][DEBUG][ dns_server.c:2846] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:49,458][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:49,458][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:49,458][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:49,459][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:49,459][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 27286, group: default, time: 4ms [2023-12-05 18:34:49,459][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 5302 ; <<>> DiG 9.18.20 <<>> -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: 27286 ;; 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#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,522][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 34455, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 34455 [2023-12-05 18:34:49,522][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:49,522][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 4576, group: default [2023-12-05 18:34:49,522][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64, latency: 0 [2023-12-05 18:34:49,522][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 4576, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:49,522][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:2922] domain: a.com TTL: 700 IP: 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:34:49,522][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:34:49,522][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 700 [2023-12-05 18:34:49,522][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 34455, group: default, time: 0ms [2023-12-05 18:34:49,522][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 4576 ; <<>> DiG 9.18.20 <<>> -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: 34455 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 51 [2023-12-05 18:34:49,585][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,586][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 5575, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 5575 [2023-12-05 18:34:49,586][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:49,586][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 6613, group: default [2023-12-05 18:34:49,586][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:49,586][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 6613, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:49,586][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:2846] domain: a.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:34:49,586][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:49,586][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:49,586][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 5575, group: default, time: 1ms [2023-12-05 18:34:49,586][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 6613 ; <<>> DiG 9.18.20 <<>> -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: 5575 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60153(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:49,645][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:49,645][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,645][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 26492, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,645][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 26492 [2023-12-05 18:34:49,645][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:49,645][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 26492, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 26492 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60153(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 96 [ OK ] QtypeSOA.bind_force_AAAA_SOA (287 ms) [----------] 5 tests from QtypeSOA (1983 ms total) [----------] 3 tests from Ptr [ RUN ] Ptr.query [2023-12-05 18:34:49,694][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:49,698][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:49,698][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:49,698][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:49,698][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:49,698][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:49,698][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:49,698][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:49,699][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:49,741][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 61, type = 0 [2023-12-05 18:34:49,741][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,741][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 61, id = 30223, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,741][DEBUG][ dns_server.c:5461] query 4.3.2.1.in-addr.arpa from 127.0.0.1, qtype: 12, id: 30223 [2023-12-05 18:34:49,747][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:49,747][ INFO][ dns_client.c:3859] request: 4.3.2.1.in-addr.arpa, qtype: 12, id: 25422, group: default [2023-12-05 18:34:49,748][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 57, ttl: 64, latency: 1 [2023-12-05 18:34:49,748][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 57, id = 25422, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:49,748][DEBUG][ dns_client.c:1723] domain: 4.3.2.1.in-addr.arpa qtype: 12 qclass: 1 [2023-12-05 18:34:49,748][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:49,748][ INFO][ dns_server.c:3382] result: 4.3.2.1.in-addr.arpa, client: 127.0.0.1, qtype: 12, id: 30223, group: default, time: 7ms [2023-12-05 18:34:49,749][DEBUG][ dns_client.c:1495] result: 4.3.2.1.in-addr.arpa, qtype: 12, has-result: 1, id 25422 ; <<>> DiG 9.18.20 <<>> -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: 30223 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 57 [ OK ] Ptr.query (159 ms) [ RUN ] Ptr.address_expand_ptr [2023-12-05 18:34:49,854][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:49,858][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:49,858][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:49,859][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:49,902][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 65, type = 0 [2023-12-05 18:34:49,902][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,902][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 65, id = 57938, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,902][DEBUG][ dns_server.c:5461] query 13.12.11.10.in-addr.arpa from 127.0.0.1, qtype: 12, id: 57938 [2023-12-05 18:34:49,902][DEBUG][ dns_server.c:1876] reply 13.12.11.10.in-addr.arpa qtype: 12, rcode: 0, reply: 1 [2023-12-05 18:34:49,902][ INFO][ dns_server.c:1931] result: 13.12.11.10.in-addr.arpa, client: 127.0.0.1, qtype: 12, id: 57938, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 57938 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 61 [2023-12-05 18:34:49,962][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 113, type = 0 [2023-12-05 18:34:49,962][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:49,962][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 113, id = 63857, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:49,962][DEBUG][ dns_server.c:5461] 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: 63857 [2023-12-05 18:34:49,962][DEBUG][ dns_server.c:1876] 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-12-05 18:34:49,962][ INFO][ dns_server.c:1931] 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: 63857, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 63857 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:49 UTC 2023 ;; MSG SIZE rcvd: 109 [ OK ] Ptr.address_expand_ptr (207 ms) [ RUN ] Ptr.smartdns [2023-12-05 18:34:50,062][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:50,066][DEBUG][ fast_ping.c:1448] ping 2001::, id = 1 [2023-12-05 18:34:50,066][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:50,066][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 1 [2023-12-05 18:34:50,066][DEBUG][ fast_ping.c:1448] ping 2001::, id = 2 [2023-12-05 18:34:50,066][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:50,066][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 2 [2023-12-05 18:34:50,066][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:50,067][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:50,109][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 63, type = 0 [2023-12-05 18:34:50,109][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:50,109][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 63, id = 14498, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:50,109][DEBUG][ dns_server.c:5461] query 1.0.0.127.in-addr.arpa from 127.0.0.1, qtype: 12, id: 14498 [2023-12-05 18:34:50,111][DEBUG][ dns_server.c:1876] reply 1.0.0.127.in-addr.arpa qtype: 12, rcode: 0, reply: 1 [2023-12-05 18:34:50,111][ INFO][ dns_server.c:1931] result: 1.0.0.127.in-addr.arpa, client: 127.0.0.1, qtype: 12, id: 14498, group: default, time: 2ms ; <<>> DiG 9.18.20 <<>> -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: 14498 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 63 [ OK ] Ptr.smartdns (103 ms) [----------] 3 tests from Ptr (471 ms total) [----------] 3 tests from Ping [ RUN ] Ping.icmp [2023-12-05 18:34:50,162][DEBUG][ fast_ping.c:1448] ping 127.0.0.1, id = 1 [2023-12-05 18:34:50,173][DEBUG][ fast_ping.c:677 ] ping 127.0.0.1 end, id 1 [ OK ] Ping.icmp (12 ms) [ RUN ] Ping.tcp [2023-12-05 18:34:50,174][DEBUG][ fast_ping.c:1448] ping 127.0.0.1:1, id = 2 [2023-12-05 18:34:50,185][DEBUG][ fast_ping.c:677 ] ping 127.0.0.1:1 end, id 2 [ OK ] Ping.tcp (11 ms) [ RUN ] Ping.fake_icmp [2023-12-05 18:34:50,186][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 3 [2023-12-05 18:34:50,193][ INFO][ test-ping.cc:82 ] from 1.2.3.4: seq=1 ttl=60 time=7.108 [2023-12-05 18:34:50,289][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 3 [ OK ] Ping.fake_icmp (103 ms) [----------] 3 tests from Ping (128 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 (0 ms) [----------] 1 test from Perf (0 ms total) [----------] 1 test from NameServer [ RUN ] NameServer.cname [2023-12-05 18:34:50,295][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:50,299][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:50,299][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:50,299][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:50,299][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:50,299][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:50,299][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:50,299][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:50,299][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:50,299][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:50,300][ INFO][ dns_client.c:1170] add server 127.0.0.1:63053, type: udp [2023-12-05 18:34:50,342][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:50,342][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:50,342][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 63240, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:50,342][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 63240 [2023-12-05 18:34:50,342][ INFO][ dns_server.c:3881] RULE-MATCH, type: 8, domain: a.com, rule: a.com [2023-12-05 18:34:50,346][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:50,346][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 11504, group: g1 [2023-12-05 18:34:50,347][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:50,347][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 11504, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:50,347][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:50,347][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:50,347][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:50,347][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:50,347][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:50,347][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 11504 [2023-12-05 18:34:50,347][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:50,348][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:50,348][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:50,348][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:50,348][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 63240, group: g1, time: 5ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63240 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:50,410][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:50,410][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:50,410][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 14765, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:50,410][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 14765 [2023-12-05 18:34:50,410][ INFO][ dns_server.c:3881] RULE-MATCH, type: 8, domain: b.com, rule: b.com [2023-12-05 18:34:50,410][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:50,410][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 27006, group: g2 [2023-12-05 18:34:50,410][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:50,410][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 27006, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:50,410][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:50,410][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:63053, type: 0 [2023-12-05 18:34:50,410][DEBUG][ dns_server.c:2846] domain: b.com TTL: 611 IP: 5.6.7.8 [2023-12-05 18:34:50,410][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 950 [2023-12-05 18:34:50,411][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 7 [2023-12-05 18:34:50,411][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 27006 [2023-12-05 18:34:50,411][ INFO][ dns_server.c:2122] result: b.com, qtype: 1, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:50,411][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:50,411][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 5.6.7.8 [2023-12-05 18:34:50,411][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 611 [2023-12-05 18:34:50,411][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 14765, group: g2, time: 1ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14765 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:50,474][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:50,474][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:50,474][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 42928, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:50,474][DEBUG][ dns_server.c:5461] query c.com from 127.0.0.1, qtype: 1, id: 42928 [2023-12-05 18:34:50,474][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:50,474][ INFO][ dns_client.c:3859] request: c.com, qtype: 1, id: 1132, group: default [2023-12-05 18:34:50,475][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:50,475][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 1132, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:50,475][DEBUG][ dns_client.c:1723] domain: c.com qtype: 1 qclass: 1 [2023-12-05 18:34:50,475][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:50,475][DEBUG][ dns_server.c:2846] domain: c.com TTL: 611 IP: 9.10.11.12 [2023-12-05 18:34:50,475][DEBUG][ dns_server.c:2720] ping 9.10.11.12 with icmp, order: 0, timeout: 949 [2023-12-05 18:34:50,475][DEBUG][ fast_ping.c:1448] ping 9.10.11.12, id = 8 [2023-12-05 18:34:50,475][DEBUG][ dns_client.c:1495] result: c.com, qtype: 1, has-result: 1, id 1132 [2023-12-05 18:34:50,475][ INFO][ dns_server.c:2122] result: c.com, qtype: 1, rtt: -0.1 ms, 9.10.11.12 [2023-12-05 18:34:50,475][DEBUG][ dns_server.c:1876] reply c.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:50,475][DEBUG][ dns_server.c:969 ] result: c.com, rtt: -0.1 ms, 9.10.11.12 [2023-12-05 18:34:50,475][DEBUG][ dns_server.c:1285] cache c.com qtype: 1 ttl: 611 [2023-12-05 18:34:50,475][ INFO][ dns_server.c:1931] result: c.com, client: 127.0.0.1, qtype: 1, id: 42928, group: default, time: 1ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 c.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42928 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] NameServer.cname (287 ms) [----------] 1 test from NameServer (287 ms total) [----------] 3 tests from MockServer [ RUN ] MockServer.query_fail ; <<>> DiG 9.18.20 <<>> -p 7053 @127.0.0.1 example.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 12569 ;; flags: qr ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;example.com. IN A ;; Query time: 0 msec ;; SERVER: 127.0.0.1#7053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 29 [ OK ] MockServer.query_fail (143 ms) [ RUN ] MockServer.soa ; <<>> DiG 9.18.20 <<>> -p 7053 @127.0.0.1 example.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 7086 ;; 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: 0 msec ;; SERVER: 127.0.0.1#7053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 80 [ OK ] MockServer.soa (143 ms) [ RUN ] MockServer.noerror ; <<>> DiG 9.18.20 <<>> -p 7053 @127.0.0.1 example.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55867 ;; flags: qr ra; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#7053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:50 UTC 2023 ;; MSG SIZE rcvd: 12 [ OK ] MockServer.noerror (143 ms) [----------] 3 tests from MockServer (431 ms total) [----------] 3 tests from IPRule [ RUN ] IPRule.white_list [2023-12-05 18:34:51,014][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:51,018][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:51,018][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,018][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:51,018][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:51,018][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,018][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:51,018][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:51,019][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:51,019][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:51,061][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:51,061][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:51,061][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 23183, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:51,061][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 23183 [2023-12-05 18:34:51,065][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,065][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,065][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 31018, group: default [2023-12-05 18:34:51,065][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:51,065][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 31018, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,065][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 4.5.6.7 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:2720] ping 4.5.6.7 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:51,066][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 6 [2023-12-05 18:34:51,066][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:51,066][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 31018, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,066][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:51,066][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 31018 [2023-12-05 18:34:51,066][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:51,066][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:51,066][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 23183, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23183 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:51 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] IPRule.white_list (263 ms) [ RUN ] IPRule.black_list [2023-12-05 18:34:51,278][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:51,282][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:51,282][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,282][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:51,282][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:51,283][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,283][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:51,283][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:51,283][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:51,283][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:51,326][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:51,326][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:51,326][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 20348, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:51,326][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 20348 [2023-12-05 18:34:51,329][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,330][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,330][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 6222, group: default [2023-12-05 18:34:51,330][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:51,330][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 6222, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,330][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 4.5.6.7 [2023-12-05 18:34:51,331][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:51,331][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 6222, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,331][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:51,331][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:51,331][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 6222 [2023-12-05 18:34:51,331][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:51,331][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:51,331][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 20348, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20348 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:51 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] IPRule.black_list (263 ms) [ RUN ] IPRule.ignore_ip [2023-12-05 18:34:51,542][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:51,546][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:51,546][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,546][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:51,546][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:51,547][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,547][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:51,547][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:51,547][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:51,589][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:51,589][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:51,589][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 8512, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:51,589][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 8512 [2023-12-05 18:34:51,593][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,593][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 28587, group: default [2023-12-05 18:34:51,594][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 65, ttl: 64, latency: 1 [2023-12-05 18:34:51,594][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 3, nscount = 0, nrcount = 0, len = 65, id = 28587, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,594][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:51,594][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:51,594][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:51,594][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 4.5.6.7 [2023-12-05 18:34:51,594][DEBUG][ dns_server.c:2720] ping 4.5.6.7 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:51,594][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 6 [2023-12-05 18:34:51,594][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 7.8.9.10 [2023-12-05 18:34:51,594][DEBUG][ dns_server.c:2720] ping 7.8.9.10 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:51,594][DEBUG][ fast_ping.c:1448] ping 7.8.9.10, id = 7 [2023-12-05 18:34:51,594][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 28587 [2023-12-05 18:34:51,637][DEBUG][ dns_server.c:2573] from 7.8.9.10: seq=1 time=425, lasttime=-1 id=8512 [2023-12-05 18:34:51,637][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: 42.5 ms, 7.8.9.10 [2023-12-05 18:34:51,637][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:51,637][DEBUG][ dns_server.c:969 ] result: a.com, rtt: 42.5 ms, 7.8.9.10 [2023-12-05 18:34:51,637][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:51,637][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 8512, group: default, time: 48ms [2023-12-05 18:34:51,637][DEBUG][ fast_ping.c:677 ] ping 7.8.9.10 end, id 7 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8512 ;; 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: 47 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:51 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] IPRule.ignore_ip (159 ms) [----------] 3 tests from IPRule (688 ms total) [----------] 3 tests from DualStack [ RUN ] DualStack.ipv4_prefer [2023-12-05 18:34:51,702][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:51,706][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:51,706][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:51,706][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:51,706][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:51,707][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:51,707][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:51,707][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:51,749][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:51,749][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:51,749][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 26458, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:51,749][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 26458 [2023-12-05 18:34:51,753][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,754][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 56818, group: default [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:51,754][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 58747, group: default [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64, latency: 0 [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 56818, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 945 [2023-12-05 18:34:51,754][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 6 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 945 [2023-12-05 18:34:51,754][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 7 [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 56818 [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 58747, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:51,754][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:51,754][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:51,755][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 949 [2023-12-05 18:34:51,755][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 8 [2023-12-05 18:34:51,755][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:51,755][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 949 [2023-12-05 18:34:51,755][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 9 [2023-12-05 18:34:51,755][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 58747 [2023-12-05 18:34:51,857][DEBUG][ dns_server.c:2573] from 1.2.3.4: seq=1 time=1022, lasttime=-1 id=0 [2023-12-05 18:34:51,857][ INFO][ dns_server.c:2081] result: a.com, qtype: 28, force IPv4 preferred, id: 26458, time1: -1, time2: 1022 [2023-12-05 18:34:51,857][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:51,857][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:51,857][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 26458, group: default, time: 108ms [2023-12-05 18:34:51,857][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: 102.2 ms, 1.2.3.4 [2023-12-05 18:34:51,858][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:51,858][DEBUG][ dns_server.c:969 ] result: a.com, rtt: 102.2 ms, 1.2.3.4 [2023-12-05 18:34:51,858][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:51,858][DEBUG][ dns_server.c:3429] dualstack result: domain: a.com, ip: 1.2.3.4, type: 1, ping: 1022, rcode: 0 [2023-12-05 18:34:51,858][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 8 [2023-12-05 18:34:51,865][DEBUG][ dns_server.c:2573] from 5.6.7.8: seq=1 time=1101, lasttime=1022 id=0 [2023-12-05 18:34:51,865][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:51,865][DEBUG][ dns_server.c:969 ] result: a.com, rtt: 102.2 ms, 1.2.3.4 [2023-12-05 18:34:51,865][ INFO][ dns_server.c:829 ] result: a.com, id: 0, index: 1, rtt: 102.2 ms, 1.2.3.4 [2023-12-05 18:34:51,865][ INFO][ dns_server.c:829 ] result: a.com, id: 0, index: 2, rtt: 110.1 ms, 5.6.7.8 [2023-12-05 18:34:51,865][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:51,865][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 9 ; <<>> DiG 9.18.20 <<>> -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: 26458 ;; 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: 107 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:51 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:34:51,905][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=1506, lasttime=-1 id=26458 [2023-12-05 18:34:51,905][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 6 [2023-12-05 18:34:51,905][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=1505, lasttime=1506 id=26458 [2023-12-05 18:34:51,905][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-12-05 18:34:51,905][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:51,905][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 7 [2023-12-05 18:34:52,140][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:52,140][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:52,140][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 15637, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:52,140][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 15637 [2023-12-05 18:34:52,140][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 15637, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15637 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 599 IN A 1.2.3.4 a.com. 599 IN A 5.6.7.8 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:52 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] DualStack.ipv4_prefer (471 ms) [ RUN ] DualStack.ipv6_prefer_allow_force_AAAA [2023-12-05 18:34:52,174][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:52,178][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:52,178][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:52,178][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:52,178][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:52,178][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:52,178][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:52,179][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:52,222][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:52,222][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:52,222][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 54214, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:52,222][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 54214 [2023-12-05 18:34:52,225][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:52,226][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 49664, group: default [2023-12-05 18:34:52,226][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:52,226][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 53984, group: default [2023-12-05 18:34:52,226][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 0 [2023-12-05 18:34:52,226][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 49664, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:52,226][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:52,226][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:52,226][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:52,226][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:52,226][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:52,226][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:52,227][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:52,227][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 7 [2023-12-05 18:34:52,227][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 49664 [2023-12-05 18:34:52,227][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64, latency: 1 [2023-12-05 18:34:52,227][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 53984, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:52,227][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:52,227][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:52,227][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,227][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 949 [2023-12-05 18:34:52,227][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 8 [2023-12-05 18:34:52,227][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:52,227][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 949 [2023-12-05 18:34:52,227][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 9 [2023-12-05 18:34:52,227][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 53984 [2023-12-05 18:34:52,297][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=700, lasttime=-1 id=0 [2023-12-05 18:34:52,297][ INFO][ dns_server.c:2081] result: a.com, qtype: 1, force IPv6 preferred, id: 54214, time1: -1, time2: 700 [2023-12-05 18:34:52,297][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:52,297][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:52,297][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 54214, group: default, time: 75ms [2023-12-05 18:34:52,297][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,298][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:52,298][DEBUG][ dns_server.c:976 ] result: a.com, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,298][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:52,298][DEBUG][ dns_server.c:3429] dualstack result: domain: a.com, ip: 2001:0db8:0000:0000:0000:0000:0000:0001, type: 28, ping: 700, rcode: 0 [2023-12-05 18:34:52,298][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 8 [2023-12-05 18:34:52,305][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=779, lasttime=700 id=0 [2023-12-05 18:34:52,305][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-12-05 18:34:52,305][DEBUG][ dns_server.c:976 ] result: a.com, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,305][ INFO][ dns_server.c:833 ] result: a.com, id: 0, index: 1, rtt: 70.0 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,305][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:52,305][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 9 ; <<>> DiG 9.18.20 <<>> -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: 54214 ;; 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: 75 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:52 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:34:52,329][DEBUG][ dns_server.c:2573] from 1.2.3.4: seq=1 time=1023, lasttime=-1 id=54214 [2023-12-05 18:34:52,329][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-12-05 18:34:52,337][DEBUG][ dns_server.c:2573] from 5.6.7.8: seq=1 time=1102, lasttime=1023 id=54214 [2023-12-05 18:34:52,337][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:52,337][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:52,337][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 7 [2023-12-05 18:34:52,580][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:52,580][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:52,580][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 29377, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:52,580][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 29377 [2023-12-05 18:34:52,580][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 28, id: 29377, group: default, time: 1ms ; <<>> DiG 9.18.20 <<>> -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: 29377 ;; 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::1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:52 UTC 2023 ;; MSG SIZE rcvd: 51 cases/test-dualstack.cc:128: Failure Expected equality of these values: client.GetAnswerNum() Which is: 1 2 [ FAILED ] DualStack.ipv6_prefer_allow_force_AAAA (471 ms) [ RUN ] DualStack.ipv6_prefer_must_exist_ipv4 [2023-12-05 18:34:52,646][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:52,650][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:52,650][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:52,650][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:52,650][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:52,650][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:52,651][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:52,651][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:52,693][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:52,693][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:52,693][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 56460, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:52,693][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 56460 [2023-12-05 18:34:52,697][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:52,697][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 28423, group: default [2023-12-05 18:34:52,697][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:52,698][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 34682, group: default [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 49, ttl: 64, latency: 1 [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 49, id = 28423, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:52,698][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 5.6.7.8 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2720] ping 5.6.7.8 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:52,698][DEBUG][ fast_ping.c:1448] ping 5.6.7.8, id = 7 [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 28423 [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 73, ttl: 64, latency: 1 [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 2, nscount = 0, nrcount = 0, len = 73, id = 34682, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:52,698][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0001] with icmp, order: 0, timeout: 949 [2023-12-05 18:34:52,698][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0001], id = 8 [2023-12-05 18:34:52,698][DEBUG][ dns_server.c:2922] domain: a.com TTL: 60 IP: 2001:0db8:0000:0000:0000:0000:0000:0002 [2023-12-05 18:34:52,699][DEBUG][ dns_server.c:2720] ping [2001:0db8:0000:0000:0000:0000:0000:0002] with icmp, order: 0, timeout: 949 [2023-12-05 18:34:52,699][DEBUG][ fast_ping.c:1448] ping [2001:0db8:0000:0000:0000:0000:0000:0002], id = 9 [2023-12-05 18:34:52,699][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 34682 [2023-12-05 18:34:52,769][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0001]: seq=1 time=703, lasttime=-1 id=0 [2023-12-05 18:34:52,769][ INFO][ dns_server.c:2081] result: a.com, qtype: 1, force IPv6 preferred, id: 56460, time1: -1, time2: 703 [2023-12-05 18:34:52,769][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:52,769][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:52,769][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 56460, group: default, time: 76ms [2023-12-05 18:34:52,769][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: 70.3 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,770][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:52,770][DEBUG][ dns_server.c:976 ] result: a.com, rtt: 70.3 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,770][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:52,770][DEBUG][ dns_server.c:3429] dualstack result: domain: a.com, ip: 2001:0db8:0000:0000:0000:0000:0000:0001, type: 28, ping: 703, rcode: 0 [2023-12-05 18:34:52,770][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0001] end, id 8 ; <<>> DiG 9.18.20 <<>> -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: 56460 ;; 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: 75 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:52 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:34:52,801][DEBUG][ dns_server.c:2573] from 1.2.3.4: seq=1 time=1026, lasttime=-1 id=56460 [2023-12-05 18:34:52,801][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-12-05 18:34:52,801][DEBUG][ dns_server.c:2573] from [2001:0db8:0000:0000:0000:0000:0000:0002]: seq=1 time=1022, lasttime=703 id=0 [2023-12-05 18:34:52,801][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 0 [2023-12-05 18:34:52,801][DEBUG][ dns_server.c:976 ] result: a.com, rtt: 70.3 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,801][ INFO][ dns_server.c:833 ] result: a.com, id: 0, index: 1, rtt: 70.3 ms, 2001:0db8:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:52,801][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:52,801][DEBUG][ fast_ping.c:677 ] ping [2001:0db8:0000:0000:0000:0000:0000:0002] end, id 9 [2023-12-05 18:34:52,809][DEBUG][ dns_server.c:2573] from 5.6.7.8: seq=1 time=1105, lasttime=1026 id=56460 [2023-12-05 18:34:52,809][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:52,809][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:52,809][DEBUG][ fast_ping.c:677 ] ping 5.6.7.8 end, id 7 [2023-12-05 18:34:53,052][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:53,052][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:53,052][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 34608, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:53,052][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 34608 [2023-12-05 18:34:53,052][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 28, id: 34608, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 34608 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:53 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] DualStack.ipv6_prefer_must_exist_ipv4 (471 ms) [----------] 3 tests from DualStack (1415 ms total) [----------] 1 test from DomainSet [ RUN ] DomainSet.set_add domain-set -name test-set -file /tmp/smartdns-test-tmp.LkvXsD 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-12-05 18:34:53,119][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:53,123][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:53,123][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:53,166][ INFO][ dns_server.c:1931] result: fa37JncCHr.yDs, client: 127.0.0.1, qtype: 1, id: 9082, group: default, time: 0ms [2023-12-05 18:34:53,226][ INFO][ dns_server.c:1931] result: bzayy4cBWD.xS2, client: 127.0.0.1, qtype: 1, id: 3955, group: default, time: 0ms [2023-12-05 18:34:53,285][ INFO][ dns_server.c:1931] result: 2JjzhMaiRr.V41, client: 127.0.0.1, qtype: 1, id: 38407, group: default, time: 0ms [2023-12-05 18:34:53,346][ INFO][ dns_server.c:1931] result: mtzxlYvKWr.O72, client: 127.0.0.1, qtype: 1, id: 22083, group: default, time: 0ms [2023-12-05 18:34:53,406][ INFO][ dns_server.c:1931] result: tK0LK0e1zL.OZ2, client: 127.0.0.1, qtype: 1, id: 51252, group: default, time: 0ms [2023-12-05 18:34:53,466][ INFO][ dns_server.c:1931] result: nOXpPIhMFS.v8k, client: 127.0.0.1, qtype: 1, id: 16097, group: default, time: 0ms [2023-12-05 18:34:53,526][ INFO][ dns_server.c:1931] result: P07U20o0J9.0xA, client: 127.0.0.1, qtype: 1, id: 61792, group: default, time: 0ms [2023-12-05 18:34:53,585][ INFO][ dns_server.c:1931] result: 0GWXIIwo7J.4og, client: 127.0.0.1, qtype: 1, id: 59172, group: default, time: 0ms [2023-12-05 18:34:53,645][ INFO][ dns_server.c:1931] result: HFZQxwQ2RQ.0DR, client: 127.0.0.1, qtype: 1, id: 51028, group: default, time: 0ms [2023-12-05 18:34:53,705][ INFO][ dns_server.c:1931] result: JKRETPVzxl.FrX, client: 127.0.0.1, qtype: 1, id: 25897, group: default, time: 0ms [2023-12-05 18:34:53,766][ INFO][ dns_server.c:1931] result: L8b7mtKLHI.GhI, client: 127.0.0.1, qtype: 1, id: 28954, group: default, time: 1ms [2023-12-05 18:34:53,824][ INFO][ dns_server.c:1931] result: h5JuWcFwrg.JKd, client: 127.0.0.1, qtype: 1, id: 16281, group: default, time: 0ms [2023-12-05 18:34:53,886][ INFO][ dns_server.c:1931] result: E3t5bECALy.3eK, client: 127.0.0.1, qtype: 1, id: 10155, group: default, time: 0ms [2023-12-05 18:34:53,946][ INFO][ dns_server.c:1931] result: IwYxEF3V7Z.8KT, client: 127.0.0.1, qtype: 1, id: 50637, group: default, time: 0ms [2023-12-05 18:34:54,006][ INFO][ dns_server.c:1931] result: x0nFe1IX5t.jH2, client: 127.0.0.1, qtype: 1, id: 29803, group: default, time: 0ms [2023-12-05 18:34:54,066][ INFO][ dns_server.c:1931] result: 2F5gXOa5Ln.IMI, client: 127.0.0.1, qtype: 1, id: 49684, group: default, time: 0ms [2023-12-05 18:34:54,133][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 10793, group: default [2023-12-05 18:34:54,134][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,134][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 56445, group: default, time: 5ms [ OK ] DomainSet.set_add (1123 ms) [----------] 1 test from DomainSet (1123 ms total) [----------] 1 test from DomainRule [ RUN ] DomainRule.bogus_nxdomain [2023-12-05 18:34:54,242][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:54,246][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:54,246][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,246][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:54,246][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:54,246][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,246][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:54,246][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:54,247][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:54,290][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:54,290][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:54,290][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 39956, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:54,290][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 39956 [2023-12-05 18:34:54,294][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,294][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 53368, group: default [2023-12-05 18:34:54,295][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:54,295][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 53368, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,295][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,295][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:54,295][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 10.11.12.13 [2023-12-05 18:34:54,295][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 53368 [2023-12-05 18:34:54,295][ INFO][ dns_server.c:2119] result: a.com, qtype: 1, SOA [2023-12-05 18:34:54,295][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:54,295][DEBUG][ dns_server.c:999 ] result: a.com, qtype: 1, return SOA [2023-12-05 18:34:54,295][ INFO][ dns_server.c:1010] result: a.com, qtype: 1, rtcode: 3 [2023-12-05 18:34:54,295][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 39956, group: default, time: 5ms [2023-12-05 18:34:54,295][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:54,295][DEBUG][ dns_server.c:999 ] result: a.com, qtype: 1, return SOA [2023-12-05 18:34:54,295][ INFO][ dns_server.c:1010] result: a.com, qtype: 1, rtcode: 3 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39956 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:54 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:34:54,358][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:54,358][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:54,358][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 27396, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:54,358][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 27396 [2023-12-05 18:34:54,358][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,359][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 55842, group: default [2023-12-05 18:34:54,359][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:54,359][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 55842, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,359][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,359][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:54,359][DEBUG][ dns_server.c:2846] domain: b.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:54,359][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 949 [2023-12-05 18:34:54,359][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:54,359][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 55842 [2023-12-05 18:34:54,359][ INFO][ dns_server.c:2122] result: b.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,359][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:54,359][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,359][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 611 [2023-12-05 18:34:54,359][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 27396, group: default, time: 1ms [2023-12-05 18:34:54,373][DEBUG][ dns_server.c:2573] from 1.2.3.4: seq=1 time=139, lasttime=-1 id=27396 [2023-12-05 18:34:54,373][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:54,373][DEBUG][ dns_server.c:969 ] result: b.com, rtt: 13.9 ms, 1.2.3.4 [2023-12-05 18:34:54,373][ INFO][ dns_server.c:829 ] result: b.com, id: 27396, index: 1, rtt: 13.9 ms, 1.2.3.4 [2023-12-05 18:34:54,373][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 611 [2023-12-05 18:34:54,373][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 b.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27396 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:54 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] DomainRule.bogus_nxdomain (223 ms) [----------] 1 test from DomainRule (223 ms total) [----------] 1 test from DNS64 [ RUN ] DNS64.no_dualstack [2023-12-05 18:34:54,466][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:54,470][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:54,470][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,470][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:54,470][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:54,470][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,470][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:54,470][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:54,471][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:54,514][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:54,514][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:54,514][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 35869, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:54,514][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 35869 [2023-12-05 18:34:54,517][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,518][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 13270, group: default [2023-12-05 18:34:54,518][DEBUG][ dns_server.c:4591] query a.com with dns64 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,518][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 5656, group: default [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 82, ttl: 64, latency: 0 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:1711] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 82, id = 13270, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:34:54,518][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 13270 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 5656, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,518][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,518][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:54,518][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:54,518][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 950 [2023-12-05 18:34:54,519][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:54,519][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 5656 [2023-12-05 18:34:54,519][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,519][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:54,519][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,519][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:54,519][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:54,519][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:34:54,519][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 600 [2023-12-05 18:34:54,519][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 35869, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -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: 35869 ;; 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 64:ff9b::102:304 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:54 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] DNS64.no_dualstack (159 ms) [----------] 1 test from DNS64 (159 ms total) [----------] 2 tests from DiscardBlockIP [ RUN ] DiscardBlockIP.first_ping [2023-12-05 18:34:54,626][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:54,630][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:54,630][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,630][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:54,630][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:54,630][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,630][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:54,630][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:54,631][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:54,631][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:54,673][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:54,673][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:54,673][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 3296, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:54,673][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 3296 [2023-12-05 18:34:54,677][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,677][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,677][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 5484, group: default [2023-12-05 18:34:54,678][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:54,678][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 5484, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,678][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,678][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:54,678][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 0.0.0.0 [2023-12-05 18:34:54,701][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 24 [2023-12-05 18:34:54,701][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 5484, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,701][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,701][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:54,701][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:54,701][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 922 [2023-12-05 18:34:54,701][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:54,701][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 5484 [2023-12-05 18:34:54,701][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,701][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:54,701][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:54,701][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:54,702][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 3296, group: default, time: 28ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3296 ;; 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: 31 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:54 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] DiscardBlockIP.first_ping (263 ms) [ RUN ] DiscardBlockIP.first_response [2023-12-05 18:34:54,890][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:54,894][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:54,894][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,894][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:54,894][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:54,894][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:54,894][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:54,894][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:54,895][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:54,895][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:54,938][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:54,938][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:54,938][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 18941, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:54,938][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 18941 [2023-12-05 18:34:54,942][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,942][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:54,942][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 9178, group: default [2023-12-05 18:34:54,943][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:54,943][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 9178, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,943][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,943][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:54,943][DEBUG][ dns_server.c:3139] domain: a.com TTL: 611 IP: 0.0.0.0 [2023-12-05 18:34:54,943][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 0.0.0.0 [2023-12-05 18:34:54,965][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 23 [2023-12-05 18:34:54,965][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 9178, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:54,965][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:54,965][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:54,965][DEBUG][ dns_server.c:3139] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:54,965][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:54,965][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 18941, group: default, time: 27ms [2023-12-05 18:34:54,965][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:54,965][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 923 [2023-12-05 18:34:54,965][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:54,966][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 9178 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18941 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 3 IN A 1.2.3.4 ;; Query time: 27 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:54 UTC 2023 ;; MSG SIZE rcvd: 33 [ OK ] DiscardBlockIP.first_response (263 ms) [----------] 2 tests from DiscardBlockIP (527 ms total) [----------] 2 tests from DDNS [ RUN ] DDNS.smartdns [2023-12-05 18:34:55,154][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:55,158][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:55,158][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,158][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:55,158][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:55,158][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,158][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:55,158][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:55,159][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:55,202][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 49, type = 0 [2023-12-05 18:34:55,202][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,202][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 49, id = 18261, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,202][DEBUG][ dns_server.c:5461] query smartdns from 127.0.0.1, qtype: 1, id: 18261 [2023-12-05 18:34:55,202][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: smartdns, rule: smartdns [2023-12-05 18:34:55,202][DEBUG][ dns_server.c:1876] reply smartdns qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,202][DEBUG][ dns_server.c:969 ] result: smartdns, rtt: -0.1 ms, 127.0.0.1 [2023-12-05 18:34:55,202][ INFO][ dns_server.c:1931] result: smartdns, client: 127.0.0.1, qtype: 1, id: 18261, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 smartdns A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18261 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;smartdns. IN A ;; ANSWER SECTION: smartdns. 600 IN A 127.0.0.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 42 [2023-12-05 18:34:55,262][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 49, type = 0 [2023-12-05 18:34:55,262][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,262][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 49, id = 21716, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,262][DEBUG][ dns_server.c:5461] query smartdns from 127.0.0.1, qtype: 28, id: 21716 [2023-12-05 18:34:55,262][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: smartdns, rule: smartdns [2023-12-05 18:34:55,263][DEBUG][ dns_server.c:1876] reply smartdns qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:55,263][DEBUG][ dns_server.c:976 ] result: smartdns, rtt: -0.1 ms, 0000:0000:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:55,263][ INFO][ dns_server.c:1931] result: smartdns, client: 127.0.0.1, qtype: 28, id: 21716, group: default, time: 1ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 smartdns AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21716 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;smartdns. IN AAAA ;; ANSWER SECTION: smartdns. 600 IN AAAA ::1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 54 [ OK ] DDNS.smartdns (207 ms) [ RUN ] DDNS.ddns [2023-12-05 18:34:55,362][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:55,366][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:55,366][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,366][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:55,366][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:55,366][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,366][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:55,366][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:55,367][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:55,409][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 54, type = 0 [2023-12-05 18:34:55,409][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,409][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 54, id = 114, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,409][DEBUG][ dns_server.c:5461] query test.ddns.com from 127.0.0.1, qtype: 1, id: 114 [2023-12-05 18:34:55,409][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: test.ddns.com, rule: test.ddns.com [2023-12-05 18:34:55,409][DEBUG][ dns_server.c:1876] reply test.ddns.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,409][DEBUG][ dns_server.c:969 ] result: test.ddns.com, rtt: -0.1 ms, 127.0.0.1 [2023-12-05 18:34:55,409][ INFO][ dns_server.c:1931] result: test.ddns.com, client: 127.0.0.1, qtype: 1, id: 114, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 test.ddns.com A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 114 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.ddns.com. IN A ;; ANSWER SECTION: test.ddns.com. 600 IN A 127.0.0.1 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 47 [2023-12-05 18:34:55,471][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 54, type = 0 [2023-12-05 18:34:55,471][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,471][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 54, id = 31685, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,471][DEBUG][ dns_server.c:5461] query test.ddns.com from 127.0.0.1, qtype: 28, id: 31685 [2023-12-05 18:34:55,471][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: test.ddns.com, rule: test.ddns.com [2023-12-05 18:34:55,472][DEBUG][ dns_server.c:1876] reply test.ddns.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:55,472][DEBUG][ dns_server.c:976 ] result: test.ddns.com, rtt: -0.1 ms, 0000:0000:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:55,472][ INFO][ dns_server.c:1931] result: test.ddns.com, client: 127.0.0.1, qtype: 28, id: 31685, group: default, time: 1ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 test.ddns.com AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31685 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.ddns.com. IN AAAA ;; ANSWER SECTION: test.ddns.com. 600 IN AAAA ::1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 59 [2023-12-05 18:34:55,534][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 54, type = 0 [2023-12-05 18:34:55,534][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,534][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 54, id = 59713, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,534][DEBUG][ dns_server.c:5461] query test.ddns.org from 127.0.0.1, qtype: 1, id: 59713 [2023-12-05 18:34:55,534][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: test.ddns.org, rule: test.ddns.org [2023-12-05 18:34:55,534][DEBUG][ dns_server.c:1876] reply test.ddns.org qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,534][DEBUG][ dns_server.c:969 ] result: test.ddns.org, rtt: -0.1 ms, 127.0.0.1 [2023-12-05 18:34:55,534][ INFO][ dns_server.c:1931] result: test.ddns.org, client: 127.0.0.1, qtype: 1, id: 59713, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 test.ddns.org A +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59713 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.ddns.org. IN A ;; ANSWER SECTION: test.ddns.org. 600 IN A 127.0.0.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 47 [2023-12-05 18:34:55,593][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 54, type = 0 [2023-12-05 18:34:55,593][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,593][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 54, id = 27857, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,593][DEBUG][ dns_server.c:5461] query test.ddns.org from 127.0.0.1, qtype: 28, id: 27857 [2023-12-05 18:34:55,593][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: test.ddns.org, rule: test.ddns.org [2023-12-05 18:34:55,594][DEBUG][ dns_server.c:1876] reply test.ddns.org qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:34:55,595][DEBUG][ dns_server.c:976 ] result: test.ddns.org, rtt: -0.1 ms, 0000:0000:0000:0000:0000:0000:0000:0001 [2023-12-05 18:34:55,595][ INFO][ dns_server.c:1931] result: test.ddns.org, client: 127.0.0.1, qtype: 28, id: 27857, group: default, time: 2ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 test.ddns.org AAAA +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27857 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.ddns.org. IN AAAA ;; ANSWER SECTION: test.ddns.org. 600 IN AAAA ::1 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 59 [ OK ] DDNS.ddns (311 ms) [----------] 2 tests from DDNS (519 ms total) [----------] 4 tests from Cname [ RUN ] Cname.cname [2023-12-05 18:34:55,674][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:55,678][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:55,678][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,678][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:55,678][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:55,678][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,678][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:55,678][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:55,679][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:55,721][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:55,721][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,721][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 10965, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,721][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 10965 [2023-12-05 18:34:55,721][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:4428] query a.com with cname b.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: b.com, rule: b.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:4428] query b.com with cname c.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: c.com, rule: c.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:4428] query c.com with cname d.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: d.com, rule: d.com [2023-12-05 18:34:55,721][ INFO][ dns_server.c:4428] query d.com with cname e.com [2023-12-05 18:34:55,725][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:55,725][ INFO][ dns_client.c:3859] request: e.com, qtype: 1, id: 42300, group: default [2023-12-05 18:34:55,726][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:55,726][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 42300, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:55,726][DEBUG][ dns_client.c:1723] domain: e.com qtype: 1 qclass: 1 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:2846] domain: e.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:55,726][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:55,726][DEBUG][ dns_client.c:1495] result: e.com, qtype: 1, has-result: 1, id 42300 [2023-12-05 18:34:55,726][ INFO][ dns_server.c:2122] result: e.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:1876] reply e.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:969 ] result: e.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:1285] cache e.com qtype: 1 ttl: 611 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:1876] reply d.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,726][DEBUG][ dns_server.c:969 ] result: d.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1285] cache d.com qtype: 1 ttl: 611 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1876] reply c.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:969 ] result: c.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1285] cache c.com qtype: 1 ttl: 611 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 611 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:55,727][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:34:55,727][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 10965, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10965 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.cname (160 ms) [ RUN ] Cname.subdomain1 [2023-12-05 18:34:55,834][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:55,838][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:55,838][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,838][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:55,838][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:55,838][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,838][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:55,838][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:55,839][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:55,881][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:55,881][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:55,881][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 38719, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:55,881][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 38719 [2023-12-05 18:34:55,881][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-12-05 18:34:55,881][ INFO][ dns_server.c:4428] query a.com with cname s.a.com [2023-12-05 18:34:55,881][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-12-05 18:34:55,885][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:55,885][ INFO][ dns_client.c:3859] request: s.a.com, qtype: 1, id: 42798, group: default [2023-12-05 18:34:55,886][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64, latency: 1 [2023-12-05 18:34:55,886][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 42798, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:55,886][DEBUG][ dns_client.c:1723] domain: s.a.com qtype: 1 qclass: 1 [2023-12-05 18:34:55,886][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:55,886][DEBUG][ dns_server.c:2846] domain: s.a.com TTL: 700 IP: 4.5.6.7 [2023-12-05 18:34:55,886][DEBUG][ dns_server.c:2720] ping 4.5.6.7 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:55,886][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 6 [2023-12-05 18:34:55,887][DEBUG][ dns_client.c:1495] result: s.a.com, qtype: 1, has-result: 1, id 42798 [2023-12-05 18:34:55,887][ INFO][ dns_server.c:2122] result: s.a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:55,887][DEBUG][ dns_server.c:1876] reply s.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,887][DEBUG][ dns_server.c:969 ] result: s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:55,887][DEBUG][ dns_server.c:1285] cache s.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:55,887][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:55,887][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:55,887][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:55,887][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 38719, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38719 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:55 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.subdomain1 (159 ms) [ RUN ] Cname.subdomain2 [2023-12-05 18:34:55,994][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:55,998][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:55,998][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,998][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:55,998][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:55,998][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:55,998][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:55,998][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:55,999][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:56,041][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:56,041][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:56,041][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 63120, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:56,041][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 63120 [2023-12-05 18:34:56,041][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-12-05 18:34:56,041][ INFO][ dns_server.c:4428] query a.com with cname s.a.com [2023-12-05 18:34:56,041][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: s.a.com, rule: s.a.com [2023-12-05 18:34:56,041][ INFO][ dns_server.c:4428] query s.a.com with cname a.s.a.com [2023-12-05 18:34:56,041][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: a.s.a.com, rule: s.a.com [2023-12-05 18:34:56,045][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:56,046][ INFO][ dns_client.c:3859] request: a.s.a.com, qtype: 1, id: 42749, group: default [2023-12-05 18:34:56,046][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 37, ttl: 64, latency: 1 [2023-12-05 18:34:56,046][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 37, id = 42749, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:56,046][DEBUG][ dns_client.c:1723] domain: a.s.a.com qtype: 1 qclass: 1 [2023-12-05 18:34:56,046][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:56,046][DEBUG][ dns_server.c:2846] domain: a.s.a.com TTL: 700 IP: 4.5.6.7 [2023-12-05 18:34:56,046][DEBUG][ dns_server.c:2720] ping 4.5.6.7 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:56,047][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 6 [2023-12-05 18:34:56,047][DEBUG][ dns_client.c:1495] result: a.s.a.com, qtype: 1, has-result: 1, id 42749 [2023-12-05 18:34:56,047][ INFO][ dns_server.c:2122] result: a.s.a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:1876] reply a.s.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:969 ] result: a.s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:1285] cache a.s.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:1876] reply s.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:969 ] result: s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:1285] cache s.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,047][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:56,047][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 63120, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63120 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:56 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.subdomain2 (159 ms) [ RUN ] Cname.loop [2023-12-05 18:34:56,154][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:56,158][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:56,158][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:56,158][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:56,158][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:56,158][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:56,158][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:56,158][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:56,159][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:56,202][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:56,202][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:56,202][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 49375, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:56,202][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 49375 [2023-12-05 18:34:56,202][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: a.com, rule: a.com [2023-12-05 18:34:56,202][ INFO][ dns_server.c:4428] query a.com with cname c.a.com [2023-12-05 18:34:56,202][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: c.a.com, rule: c.a.com [2023-12-05 18:34:56,202][ INFO][ dns_server.c:4428] query c.a.com with cname s.a.com [2023-12-05 18:34:56,202][ INFO][ dns_server.c:3881] RULE-MATCH, type: 11, domain: s.a.com, rule: a.com [2023-12-05 18:34:56,205][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:56,206][ INFO][ dns_client.c:3859] request: s.a.com, qtype: 1, id: 21705, group: default [2023-12-05 18:34:56,206][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 35, ttl: 64, latency: 0 [2023-12-05 18:34:56,206][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 35, id = 21705, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:56,206][DEBUG][ dns_client.c:1723] domain: s.a.com qtype: 1 qclass: 1 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:2846] domain: s.a.com TTL: 700 IP: 4.5.6.7 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:2720] ping 4.5.6.7 with icmp, order: 0, timeout: 946 [2023-12-05 18:34:56,207][DEBUG][ fast_ping.c:1448] ping 4.5.6.7, id = 6 [2023-12-05 18:34:56,207][DEBUG][ dns_client.c:1495] result: s.a.com, qtype: 1, has-result: 1, id 21705 [2023-12-05 18:34:56,207][ INFO][ dns_server.c:2122] result: s.a.com, qtype: 1, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:1876] reply s.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:969 ] result: s.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:1285] cache s.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:1876] reply c.a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:969 ] result: c.a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:1285] cache c.a.com qtype: 1 ttl: 700 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 4.5.6.7 [2023-12-05 18:34:56,207][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 700 [2023-12-05 18:34:56,207][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 49375, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49375 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:56 UTC 2023 ;; MSG SIZE rcvd: 55 [ OK ] Cname.loop (159 ms) [----------] 4 tests from Cname (640 ms total) [----------] 6 tests from Cache [ RUN ] Cache.min [2023-12-05 18:34:56,314][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:56,318][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:56,318][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:56,319][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:56,362][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:56,362][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:56,362][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 49042, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:56,362][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 49042 [2023-12-05 18:34:56,366][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:56,366][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 4225, group: default [2023-12-05 18:34:56,367][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:34:56,367][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 4225, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:56,367][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:56,367][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:56,367][DEBUG][ dns_server.c:3139] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:56,367][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 1 [2023-12-05 18:34:56,367][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 49042, group: default, time: 5ms [2023-12-05 18:34:56,367][DEBUG][ dns_server.c:2846] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:56,367][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 4225 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49042 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 1 IN A 1.2.3.4 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:56 UTC 2023 ;; MSG SIZE rcvd: 33 [ OK ] Cache.min (159 ms) [ RUN ] Cache.max_reply_ttl [2023-12-05 18:34:56,474][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:56,478][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:34:56,479][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:56,479][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:56,524][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:56,524][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:56,524][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 40689, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:56,524][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 40689 [2023-12-05 18:34:56,528][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:56,528][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 29384, group: default [2023-12-05 18:34:56,529][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:56,529][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 29384, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:56,529][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:56,529][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:56,529][DEBUG][ dns_server.c:3139] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:56,529][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:56,529][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 40689, group: default, time: 5ms [2023-12-05 18:34:56,529][DEBUG][ dns_server.c:2846] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:56,529][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 29384 ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40689 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 5 IN A 1.2.3.4 ;; Query time: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:56 UTC 2023 ;; MSG SIZE rcvd: 33 [2023-12-05 18:34:57,592][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:57,592][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:57,592][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 31547, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:57,592][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 31547 [2023-12-05 18:34:57,592][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 31547, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31547 ;; flags: qr ra; QUERY: 0, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; ANSWER SECTION: a.com. 5 IN A 1.2.3.4 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:57 UTC 2023 ;; MSG SIZE rcvd: 33 [ OK ] Cache.max_reply_ttl (1199 ms) [ RUN ] Cache.max_reply_ttl_expired [2023-12-05 18:34:57,674][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:57,678][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:57,678][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:57,678][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:57,678][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:57,678][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:57,678][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:57,678][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:57,679][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:57,722][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:57,722][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:57,722][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 44095, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:57,722][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 44095 [2023-12-05 18:34:57,725][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:57,726][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 15987, group: default [2023-12-05 18:34:57,726][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:57,726][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 15987, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:57,726][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:57,726][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:57,726][DEBUG][ dns_server.c:2846] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:57,726][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:57,726][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:57,726][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 15987 [2023-12-05 18:34:57,727][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:57,727][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:57,727][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:57,727][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:57,727][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 44095, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44095 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:57 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:57,791][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:57,791][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:57,791][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 57330, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:57,791][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 57330 [2023-12-05 18:34:57,791][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 57330, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57330 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:57 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Cache.max_reply_ttl_expired (159 ms) [ RUN ] Cache.nocache [2023-12-05 18:34:57,834][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:57,838][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:57,838][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:57,838][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:57,838][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:57,838][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:57,838][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:57,838][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:57,838][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:34:57,882][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:57,882][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:57,882][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 33487, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:57,882][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 33487 [2023-12-05 18:34:57,882][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-12-05 18:34:57,885][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:57,886][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 17824, group: default [2023-12-05 18:34:57,905][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 20 [2023-12-05 18:34:57,905][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 17824, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:57,905][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:57,905][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:57,905][DEBUG][ dns_server.c:2846] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:57,905][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 927 [2023-12-05 18:34:57,905][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:57,905][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 17824 [2023-12-05 18:34:57,906][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:57,906][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:57,906][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:57,906][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 33487, group: default, time: 24ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33487 ;; 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: 23 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:57 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:57,968][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:57,968][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:57,968][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 55071, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:57,968][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 55071 [2023-12-05 18:34:57,968][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-12-05 18:34:57,968][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:57,968][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 6828, group: default [2023-12-05 18:34:57,985][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 17 [2023-12-05 18:34:57,985][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 6828, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:57,985][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:57,985][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:34:57,985][DEBUG][ dns_server.c:2846] domain: a.com TTL: 0 IP: 1.2.3.4 [2023-12-05 18:34:57,985][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 933 [2023-12-05 18:34:57,985][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 7 [2023-12-05 18:34:57,985][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 6828 [2023-12-05 18:34:57,985][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:57,985][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:57,985][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:57,985][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 55071, group: default, time: 17ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55071 ;; 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: 19 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:57 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Cache.nocache (259 ms) [ RUN ] Cache.save_file [2023-12-05 18:34:58,094][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:58,099][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:58,099][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:58,099][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:58,099][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:58,099][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:58,099][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:58,099][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:58,100][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:58,144][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:58,144][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:58,144][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 64440, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:58,144][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 64440 [2023-12-05 18:34:58,148][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:58,149][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 3811, group: default [2023-12-05 18:34:58,149][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:58,149][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 3811, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:58,149][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:58,149][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:58,149][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:58,149][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:58,150][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:58,150][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 3811 [2023-12-05 18:34:58,150][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,150][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:58,150][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,150][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:58,150][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 64440, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64440 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:58 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:58,168][ INFO][ smartdns.c:581 ] stop smartdns by signal 15 [2023-12-05 18:34:58,269][ INFO][ smartdns.c:569 ] smartdns exit... [2023-12-05 18:34:58,269][DEBUG][ dns_client.c:1221] server 127.0.0.1 closed. [2023-12-05 18:34:58,270][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:58,270][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,270][ INFO][ dns_server.c:829 ] result: a.com, id: 64440, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,270][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:58,270][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-12-05 18:34:58,270][DEBUG][ dns_cache.c:893 ] write cache file /tmp/smartdns_cache.QuOiNJj8YL [2023-12-05 18:34:58,270][DEBUG][ dns_cache.c:936 ] wrote total 1 records. [ OK ] Cache.save_file (475 ms) [ RUN ] Cache.corrupt_file [2023-12-05 18:34:58,570][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:58,575][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:58,575][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:58,575][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:58,575][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:58,575][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:58,575][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:58,575][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:58,575][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:58,620][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:58,620][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:58,620][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 55603, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:58,620][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 55603 [2023-12-05 18:34:58,624][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:58,624][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 18740, group: default [2023-12-05 18:34:58,625][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:58,625][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 18740, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:58,625][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:58,625][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:58,625][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:58,625][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:34:58,625][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:58,626][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 18740 [2023-12-05 18:34:58,626][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,626][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:58,626][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,626][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:58,626][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 55603, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55603 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:58 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:58,644][ INFO][ smartdns.c:581 ] stop smartdns by signal 15 [2023-12-05 18:34:58,745][ INFO][ smartdns.c:569 ] smartdns exit... [2023-12-05 18:34:58,745][DEBUG][ dns_client.c:1221] server 127.0.0.1 closed. [2023-12-05 18:34:58,746][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:58,746][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,746][ INFO][ dns_server.c:829 ] result: a.com, id: 55603, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:58,746][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:58,746][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-12-05 18:34:58,746][DEBUG][ dns_cache.c:893 ] write cache file /tmp/smartdns_cache.8rqDiZSkZf [2023-12-05 18:34:58,746][DEBUG][ dns_cache.c:936 ] wrote total 1 records. try make corrupt at 84, file size: 455 [2023-12-05 18:34:58,955][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:58,959][ INFO][ dns_cache.c:824 ] load cache file /tmp/smartdns_cache.8rqDiZSkZf, total 1 records [2023-12-05 18:34:58,959][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:58,960][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:58,960][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:58,960][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:58,960][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:58,960][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:58,960][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:58,960][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:59,004][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:34:59,005][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:34:59,005][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 30596, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:34:59,005][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 30596 [2023-12-05 18:34:59,008][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:34:59,009][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 37913, group: default [2023-12-05 18:34:59,010][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:34:59,010][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 37913, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:34:59,010][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:34:59,010][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:34:59,010][DEBUG][ dns_server.c:2846] domain: a.com TTL: 60 IP: 1.2.3.4 [2023-12-05 18:34:59,010][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 944 [2023-12-05 18:34:59,010][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:34:59,010][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 37913 [2023-12-05 18:34:59,010][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:59,010][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:34:59,010][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:59,010][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:59,010][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 30596, group: default, time: 6ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30596 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:34:59 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:34:59,031][ INFO][ smartdns.c:581 ] stop smartdns by signal 15 [2023-12-05 18:34:59,133][ INFO][ smartdns.c:569 ] smartdns exit... [2023-12-05 18:34:59,133][DEBUG][ dns_client.c:1221] server 127.0.0.1 closed. [2023-12-05 18:34:59,134][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:34:59,134][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:59,134][ INFO][ dns_server.c:829 ] result: a.com, id: 30596, index: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:34:59,134][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 600 [2023-12-05 18:34:59,134][DEBUG][ fast_ping.c:677 ] ping 1.2.3.4 end, id 6 [2023-12-05 18:34:59,134][DEBUG][ dns_cache.c:893 ] write cache file /tmp/smartdns_cache.8rqDiZSkZf [2023-12-05 18:34:59,134][DEBUG][ dns_cache.c:936 ] wrote total 2 records. [ OK ] Cache.corrupt_file (859 ms) [----------] 6 tests from Cache (3116 ms total) [----------] 1 test from BootStrap [ RUN ] BootStrap.bootstrap [2023-12-05 18:34:59,431][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:34:59,435][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:34:59,435][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:59,435][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:34:59,435][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:34:59,435][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:34:59,435][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:34:59,435][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:34:59,436][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:34:59,436][ INFO][ dns_client.c:1417] add pending server example.com [2023-12-05 18:35:00,337][ INFO][ dns_server.c:3881] RULE-MATCH, type: 8, domain: example.com, rule: example.com [2023-12-05 18:35:00,342][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:00,342][ INFO][ dns_client.c:3859] request: example.com, qtype: 1, id: 9764, group: bootstrap-dns [2023-12-05 18:35:00,342][ INFO][ dns_server.c:3881] RULE-MATCH, type: 8, domain: example.com, rule: example.com [2023-12-05 18:35:00,342][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:00,342][ INFO][ dns_client.c:3859] request: example.com, qtype: 28, id: 63204, group: bootstrap-dns [2023-12-05 18:35:00,342][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 39, ttl: 64, latency: 0 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 39, id = 9764, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:1723] domain: example.com qtype: 1 qclass: 1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:2846] domain: example.com TTL: 611 IP: 127.0.0.1 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:1495] result: example.com, qtype: 1, has-result: 1, id 9764 [2023-12-05 18:35:00,343][ INFO][ dns_server.c:2122] result: example.com, qtype: 1, rtt: -0.1 ms, 127.0.0.1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:1876] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:969 ] result: example.com, rtt: -0.1 ms, 127.0.0.1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:1285] cache example.com qtype: 1 ttl: 611 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:1876] reply example.com qtype: 1, rcode: 0, reply: 0 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:969 ] result: example.com, rtt: -0.1 ms, 127.0.0.1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:1285] cache example.com qtype: 1 ttl: 611 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 80, ttl: 64, latency: 1 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:1711] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 80, id = 63204, tc = 0, rd = 0, ra = 1, rcode = 3, payloadsize = 0 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:1723] domain: example.com qtype: 28 qclass: 1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:62053, type: 0 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:3066] 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-12-05 18:35:00,343][ INFO][ dns_server.c:2119] result: example.com, qtype: 28, SOA [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:1876] reply example.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:35:00,343][DEBUG][ dns_server.c:999 ] result: example.com, qtype: 28, return SOA [2023-12-05 18:35:00,343][ INFO][ dns_server.c:1010] result: example.com, qtype: 28, rtcode: 3 [2023-12-05 18:35:00,343][DEBUG][ dns_client.c:1495] result: example.com, qtype: 28, has-result: 1, id 63204 [2023-12-05 18:35:01,337][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:01,984][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:01,984][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:01,984][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 59511, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:01,984][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 59511 [2023-12-05 18:35:01,984][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:01,985][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 55121, group: default [2023-12-05 18:35:01,986][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:35:01,986][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 55121, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:01,986][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:35:01,986][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:35:01,986][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:35:01,986][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 948 [2023-12-05 18:35:01,986][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:35:01,986][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 55121 [2023-12-05 18:35:01,986][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:01,986][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:01,986][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:01,986][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:35:01,986][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 59511, group: default, time: 2ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59511 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:01 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] BootStrap.bootstrap (2767 ms) [----------] 1 test from BootStrap (2768 ms total) [----------] 6 tests from Bind [ RUN ] Bind.tls [2023-12-05 18:35:02,198][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:02,202][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:35:02,203][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:02,203][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:35:02,203][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:35:02,203][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:02,203][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:35:02,203][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:02,327][ INFO][ dns_client.c:1170] add server 127.0.0.1:60053, type: tls [2023-12-05 18:35:02,993][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:02,998][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:35:02,998][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:02,998][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:35:02,998][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:35:02,999][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:02,999][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:35:02,999][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:02,999][ INFO][ dns_client.c:1170] add server 172.24.4.1:53, type: udp [2023-12-05 18:35:02,999][ INFO][ dns_client.c:1170] add server 114.114.114.114:53, type: udp [2023-12-05 18:35:03,044][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 52, type = 0 [2023-12-05 18:35:03,044][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:03,044][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 52, id = 45326, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:03,045][DEBUG][ dns_server.c:5461] query example.com from 127.0.0.1, qtype: 1, id: 45326 [2023-12-05 18:35:03,045][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:03,046][DEBUG][ dns_client.c:2106] tls server 127.0.0.1 connecting. [2023-12-05 18:35:03,046][ INFO][ dns_client.c:3859] request: example.com, qtype: 1, id: 56229, group: default [2023-12-05 18:35:03,062][DEBUG][ dns_client.c:3001] tls server 127.0.0.1 connected. [2023-12-05 18:35:03,062][DEBUG][ dns_client.c:3006] new session [2023-12-05 18:35:03,062][DEBUG][ dns_client.c:2883] peer CN: smartdns [2023-12-05 18:35:03,062][DEBUG][ dns_client.c:2929] cert SPKI pin(sha256): 56:C9:D6:88:CD:68:EE:3E:61:C4:65:9D:C2:28:F8:1E:8B:D7:94:A5:AF:09:EC:DB:08:8F:31:54:91:5A:44:88 [2023-12-05 18:35:03,063][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 40, type = 4 [2023-12-05 18:35:03,063][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 40, id = 56229, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:03,063][DEBUG][ dns_server.c:5461] query example.com from 127.0.0.1, qtype: 1, id: 56229 [2023-12-05 18:35:03,063][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: example.com, rule: example.com [2023-12-05 18:35:03,063][DEBUG][ dns_server.c:1876] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:03,063][DEBUG][ dns_server.c:969 ] result: example.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,063][ INFO][ dns_server.c:1931] result: example.com, client: 127.0.0.1, qtype: 1, id: 56229, group: default, time: 0ms [2023-12-05 18:35:03,064][DEBUG][ dns_client.c:2575] recv tcp packet from 127.0.0.1, len = 47 [2023-12-05 18:35:03,064][DEBUG][ dns_client.c:1711] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 56229, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:03,064][DEBUG][ dns_client.c:1723] domain: example.com qtype: 1 qclass: 1 [2023-12-05 18:35:03,064][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:60053, type: 2 [2023-12-05 18:35:03,064][DEBUG][ dns_server.c:2846] domain: example.com TTL: 600 IP: 1.2.3.4 [2023-12-05 18:35:03,064][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 931 [2023-12-05 18:35:03,064][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:35:03,064][DEBUG][ dns_client.c:1495] result: example.com, qtype: 1, has-result: 1, id 56229 [2023-12-05 18:35:03,064][ INFO][ dns_server.c:2122] result: example.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,064][DEBUG][ dns_server.c:1876] reply example.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:03,064][DEBUG][ dns_server.c:969 ] result: example.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,064][DEBUG][ dns_server.c:1285] cache example.com qtype: 1 ttl: 600 [2023-12-05 18:35:03,064][ INFO][ dns_server.c:1931] result: example.com, client: 127.0.0.1, qtype: 1, id: 45326, group: default, time: 19ms [ OK ] Bind.tls (895 ms) [ RUN ] Bind.udp_tcp [2023-12-05 18:35:03,094][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:03,099][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:35:03,099][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:03,099][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:35:03,099][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:35:03,099][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:03,099][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:35:03,099][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:03,099][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:03,144][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 2 [2023-12-05 18:35:03,144][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:03,144][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 35271, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:03,144][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 35271 [2023-12-05 18:35:03,148][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:03,148][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 30364, group: default [2023-12-05 18:35:03,149][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 0 [2023-12-05 18:35:03,149][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 30364, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:03,149][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:35:03,149][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:35:03,149][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:35:03,149][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 945 [2023-12-05 18:35:03,149][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:35:03,149][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 30364 [2023-12-05 18:35:03,149][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,149][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:03,149][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,149][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:35:03,149][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 35271, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -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: 35271 ;; 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: 7 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (TCP) ;; WHEN: Tue Dec 05 18:35:03 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:35:03,212][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:03,212][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:03,212][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 4114, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:03,212][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 4114 [2023-12-05 18:35:03,212][ INFO][ dns_server.c:3382] result: a.com, client: 127.0.0.1, qtype: 1, id: 4114, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4114 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:03 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.udp_tcp (159 ms) [ RUN ] Bind.self [2023-12-05 18:35:03,254][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:03,258][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:03,259][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:03,259][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:35:03,310][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 55041, group: self [2023-12-05 18:35:03,310][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 63604, group: upstream [2023-12-05 18:35:03,311][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,311][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 55041, group: upstream, time: 1ms [2023-12-05 18:35:03,311][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,311][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 26120, group: self, time: 5ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26120 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:03 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.self (163 ms) [ RUN ] Bind.nocache [2023-12-05 18:35:03,419][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:03,423][DEBUG][ fast_ping.c:1448] ping 2001::, id = 4 [2023-12-05 18:35:03,423][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:03,423][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 4 [2023-12-05 18:35:03,423][DEBUG][ fast_ping.c:1448] ping 2001::, id = 5 [2023-12-05 18:35:03,424][DEBUG][ fast_ping.c:1219] from 2001::: error is Network is unreachable [2023-12-05 18:35:03,424][DEBUG][ fast_ping.c:677 ] ping 2001:: end, id 5 [2023-12-05 18:35:03,424][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:03,424][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:03,469][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:03,469][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:03,469][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 61722, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:03,469][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 61722 [2023-12-05 18:35:03,473][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:03,473][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 46925, group: default [2023-12-05 18:35:03,489][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 16 [2023-12-05 18:35:03,489][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 46925, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:03,489][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:35:03,489][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:35:03,489][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:35:03,489][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 930 [2023-12-05 18:35:03,489][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 6 [2023-12-05 18:35:03,490][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 46925 [2023-12-05 18:35:03,490][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,490][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:03,490][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,490][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:35:03,490][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 61722, group: default, time: 21ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61722 ;; 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: 23 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:03 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:35:03,552][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:03,552][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:03,552][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 46776, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:03,552][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 46776 [2023-12-05 18:35:03,552][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:03,552][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 14394, group: default [2023-12-05 18:35:03,569][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 17 [2023-12-05 18:35:03,569][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 14394, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:03,569][DEBUG][ dns_client.c:1723] domain: a.com qtype: 1 qclass: 1 [2023-12-05 18:35:03,569][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:35:03,569][DEBUG][ dns_server.c:2846] domain: a.com TTL: 611 IP: 1.2.3.4 [2023-12-05 18:35:03,569][DEBUG][ dns_server.c:2720] ping 1.2.3.4 with icmp, order: 0, timeout: 933 [2023-12-05 18:35:03,569][DEBUG][ fast_ping.c:1448] ping 1.2.3.4, id = 7 [2023-12-05 18:35:03,569][DEBUG][ dns_client.c:1495] result: a.com, qtype: 1, has-result: 1, id 14394 [2023-12-05 18:35:03,569][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,569][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:03,569][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,569][DEBUG][ dns_server.c:1285] cache a.com qtype: 1 ttl: 611 [2023-12-05 18:35:03,569][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 46776, group: default, time: 17ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46776 ;; 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: 19 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:03 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.nocache (259 ms) [ RUN ] Bind.device [2023-12-05 18:35:03,678][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:03,683][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:03,683][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:35:03,731][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 26085, group: default [2023-12-05 18:35:03,732][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:03,732][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 16042, group: default, time: 5ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16042 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:03 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.device (159 ms) [ RUN ] Bind.malformed_packet [2023-12-05 18:35:03,838][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:03,843][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:03,843][ INFO][ dns_client.c:1170] add server 127.0.0.1:62053, type: udp [2023-12-05 18:35:12,867][ INFO][ dns_client.c:3859] request: a.com, qtype: 1, id: 61490, group: default [2023-12-05 18:35:12,868][ INFO][ dns_server.c:2122] result: a.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:12,868][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 36723, group: default, time: 7ms ; <<>> DiG 9.18.20 <<>> -p 60053 @127.0.0.1 a.com +tries=1 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36723 ;; 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: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:12 UTC 2023 ;; MSG SIZE rcvd: 39 [ OK ] Bind.malformed_packet (9136 ms) [----------] 6 tests from Bind (10776 ms total) [----------] 3 tests from Address [ RUN ] Address.soa [2023-12-05 18:35:12,978][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:12,983][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:35:12,983][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:12,983][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:13,027][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,027][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,027][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 24239, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,027][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 24239 [2023-12-05 18:35:13,027][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-12-05 18:35:13,027][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:13,027][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 24239, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 24239 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:35:13,094][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,094][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,094][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 61744, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,094][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 61744 [2023-12-05 18:35:13,094][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: a.com, rule: a.com [2023-12-05 18:35:13,094][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:13,094][ INFO][ dns_client.c:3859] request: a.com, qtype: 28, id: 28889, group: default [2023-12-05 18:35:13,095][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 45, ttl: 64, latency: 1 [2023-12-05 18:35:13,095][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 45, id = 28889, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:13,095][DEBUG][ dns_client.c:1723] domain: a.com qtype: 28 qclass: 1 [2023-12-05 18:35:13,095][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:35:13,095][DEBUG][ dns_server.c:2922] domain: a.com TTL: 700 IP: 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:35:13,095][ INFO][ dns_server.c:2126] result: a.com, qtype: 28, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:35:13,095][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:35:13,095][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:0102:0304 [2023-12-05 18:35:13,095][DEBUG][ dns_server.c:1285] cache a.com qtype: 28 ttl: 700 [2023-12-05 18:35:13,095][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 61744, group: default, time: 1ms [2023-12-05 18:35:13,095][DEBUG][ dns_client.c:1495] result: a.com, qtype: 28, has-result: 1, id 28889 ; <<>> DiG 9.18.20 <<>> -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: 61744 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 51 [2023-12-05 18:35:13,159][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,159][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,159][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 45280, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,159][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 1, id: 45280 [2023-12-05 18:35:13,159][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: b.com, rule: b.com [2023-12-05 18:35:13,159][DEBUG][ dns_client.c:3492] send query to server 127.0.0.1 [2023-12-05 18:35:13,160][ INFO][ dns_client.c:3859] request: b.com, qtype: 1, id: 49069, group: default [2023-12-05 18:35:13,160][DEBUG][ dns_client.c:2325] recv udp packet from 127.0.0.1, len: 33, ttl: 64, latency: 1 [2023-12-05 18:35:13,160][DEBUG][ dns_client.c:1711] qdcount = 0, ancount = 1, nscount = 0, nrcount = 0, len = 33, id = 49069, tc = 0, rd = 0, ra = 1, rcode = 0, payloadsize = 0 [2023-12-05 18:35:13,160][DEBUG][ dns_client.c:1723] domain: b.com qtype: 1 qclass: 1 [2023-12-05 18:35:13,160][DEBUG][ dns_server.c:3494] query result from server 127.0.0.1:61053, type: 0 [2023-12-05 18:35:13,160][DEBUG][ dns_server.c:2846] domain: b.com TTL: 700 IP: 1.2.3.4 [2023-12-05 18:35:13,160][ INFO][ dns_server.c:2122] result: b.com, qtype: 1, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:13,160][DEBUG][ dns_server.c:1876] reply b.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:13,160][DEBUG][ dns_server.c:969 ] result: b.com, rtt: -0.1 ms, 1.2.3.4 [2023-12-05 18:35:13,160][DEBUG][ dns_server.c:1285] cache b.com qtype: 1 ttl: 700 [2023-12-05 18:35:13,160][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 1, id: 45280, group: default, time: 1ms [2023-12-05 18:35:13,160][DEBUG][ dns_client.c:1495] result: b.com, qtype: 1, has-result: 1, id 49069 ; <<>> DiG 9.18.20 <<>> -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: 45280 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:35:13,223][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,223][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,223][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 48632, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,223][DEBUG][ dns_server.c:5461] query b.com from 127.0.0.1, qtype: 28, id: 48632 [2023-12-05 18:35:13,223][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: b.com, rule: b.com [2023-12-05 18:35:13,223][DEBUG][ dns_server.c:1876] reply b.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:35:13,223][ INFO][ dns_server.c:1931] result: b.com, client: 127.0.0.1, qtype: 28, id: 48632, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 48632 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:35:13,287][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,287][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,287][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 57551, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,287][DEBUG][ dns_server.c:5461] query c.com from 127.0.0.1, qtype: 1, id: 57551 [2023-12-05 18:35:13,287][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: c.com, rule: c.com [2023-12-05 18:35:13,287][DEBUG][ dns_server.c:1876] reply c.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:13,287][ INFO][ dns_server.c:1010] result: c.com, qtype: 1, rtcode: 3 [2023-12-05 18:35:13,287][ INFO][ dns_server.c:1931] result: c.com, client: 127.0.0.1, qtype: 1, id: 57551, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 57551 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 96 [2023-12-05 18:35:13,351][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,351][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,351][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 61095, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,351][DEBUG][ dns_server.c:5461] query c.com from 127.0.0.1, qtype: 28, id: 61095 [2023-12-05 18:35:13,351][ INFO][ dns_server.c:3881] RULE-MATCH, type: 0, domain: c.com, rule: c.com [2023-12-05 18:35:13,351][DEBUG][ dns_server.c:1876] reply c.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:35:13,351][ INFO][ dns_server.c:1010] result: c.com, qtype: 28, rtcode: 3 [2023-12-05 18:35:13,351][ INFO][ dns_server.c:1931] result: c.com, client: 127.0.0.1, qtype: 28, id: 61095, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 61095 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 96 [ OK ] Address.soa (499 ms) [ RUN ] Address.ip [2023-12-05 18:35:13,474][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:13,477][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:35:13,477][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:13,477][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:13,520][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,520][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,520][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 27617, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,520][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 27617 [2023-12-05 18:35:13,520][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-12-05 18:35:13,520][ INFO][ dns_server.c:3881] RULE-MATCH, type: 2, domain: a.com, rule: a.com [2023-12-05 18:35:13,521][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:13,521][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 10.10.10.10 [2023-12-05 18:35:13,521][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 27617, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 27617 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 39 [2023-12-05 18:35:13,584][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,584][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,584][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 15368, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,584][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 15368 [2023-12-05 18:35:13,584][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-12-05 18:35:13,584][ INFO][ dns_server.c:3881] RULE-MATCH, type: 2, domain: a.com, rule: a.com [2023-12-05 18:35:13,584][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:35:13,584][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:1010:1010 [2023-12-05 18:35:13,584][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 15368, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 15368 ;; 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: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 51 [ OK ] Address.ip (207 ms) [ RUN ] Address.multiaddress [2023-12-05 18:35:13,682][NOTICE][ smartdns.c:485 ] smartdns starting...(Copyright (C) Nick Peng , build: Dec 5 2023 18:31:46) [2023-12-05 18:35:13,684][ INFO][ dns_server.c:4923] ICMP ping is disabled, no ipv6 icmp check feature [2023-12-05 18:35:13,684][ INFO][ dns_server.c:7194] IPV6 is not ready, disable IPV6 features [2023-12-05 18:35:13,685][ INFO][ dns_client.c:1170] add server 127.0.0.1:61053, type: udp [2023-12-05 18:35:13,729][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,729][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,729][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 37925, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,729][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 1, id: 37925 [2023-12-05 18:35:13,729][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-12-05 18:35:13,729][ INFO][ dns_server.c:3881] RULE-MATCH, type: 2, domain: a.com, rule: a.com [2023-12-05 18:35:13,729][DEBUG][ dns_server.c:1876] reply a.com qtype: 1, rcode: 0, reply: 1 [2023-12-05 18:35:13,729][DEBUG][ dns_server.c:969 ] result: a.com, rtt: -0.1 ms, 10.10.10.10 [2023-12-05 18:35:13,729][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 1, id: 37925, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 37925 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN A ;; ANSWER SECTION: a.com. 600 IN A 10.10.10.10 a.com. 600 IN A 11.11.11.11 a.com. 600 IN A 22.22.22.22 ;; Query time: 3 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 71 [2023-12-05 18:35:13,792][DEBUG][ dns_server.c:5426] recv query packet from 127.0.0.1, len = 46, type = 0 [2023-12-05 18:35:13,792][DEBUG][ dns.c:1946] opt type 10 [2023-12-05 18:35:13,792][DEBUG][ dns_server.c:5438] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 46, id = 31299, tc = 0, rd = 1, ra = 0, rcode = 0 [2023-12-05 18:35:13,792][DEBUG][ dns_server.c:5461] query a.com from 127.0.0.1, qtype: 28, id: 31299 [2023-12-05 18:35:13,792][ INFO][ dns_server.c:3881] RULE-MATCH, type: 1, domain: a.com, rule: a.com [2023-12-05 18:35:13,792][ INFO][ dns_server.c:3881] RULE-MATCH, type: 2, domain: a.com, rule: a.com [2023-12-05 18:35:13,792][DEBUG][ dns_server.c:1876] reply a.com qtype: 28, rcode: 0, reply: 1 [2023-12-05 18:35:13,792][DEBUG][ dns_server.c:976 ] result: a.com, rtt: -0.1 ms, 0064:ff9b:0000:0000:0000:0000:1010:1010 [2023-12-05 18:35:13,792][ INFO][ dns_server.c:1931] result: a.com, client: 127.0.0.1, qtype: 28, id: 31299, group: default, time: 0ms ; <<>> DiG 9.18.20 <<>> -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: 31299 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.com. IN AAAA ;; ANSWER SECTION: a.com. 600 IN AAAA 64:ff9b::1010:1010 a.com. 600 IN AAAA 64:ff9b::2222:2222 a.com. 600 IN AAAA 64:ff9b::1111:1111 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#60053(127.0.0.1) (UDP) ;; WHEN: Tue Dec 05 18:35:13 UTC 2023 ;; MSG SIZE rcvd: 107 [ OK ] Address.multiaddress (207 ms) [----------] 3 tests from Address (915 ms total) [----------] Global test environment tear-down [==========] 70 tests from 23 test suites ran. (37566 ms total) [ PASSED ] 68 tests. [ SKIPPED ] 1 test, listed below: [ SKIPPED ] Perf.no_speed_check [ FAILED ] 1 test, listed below: [ FAILED ] DualStack.ipv6_prefer_allow_force_AAAA 1 FAILED TEST make: *** [Makefile:44: test] Error 1 make: Leaving directory '/build/smartdns/src/smartdns-Release43-test/test' ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root2/build receiving incremental file list smartdns-43-1-riscv64-build.log smartdns-43-1-riscv64-check.log smartdns-43-1-riscv64-prepare.log sent 81 bytes received 29,077 bytes 58,316.00 bytes/sec total size is 355,632 speedup is 12.20