WSL の Ubuntu 22.04.1 LTS で
$ dig @8.8.8.8 nanashinonozomi.com any
すると、
netmgr/tcpdns.c:302: fatal error: RUNTIME_CHECK(result == ISC_R_SUCCESS) failed Aborted (core dumped)
のエラーが発生した。
原因の推定と対策
「query_test failure on Ubuntu 21.10 (Impish) (#2994) · Issues · ISC Open Source Projects / BIND · GitLab」における2つのコメント (その1, その2) の内容から、当該環境の WSL のバージョンが原因ではないかと推定。
手元の環境を確認したところ、案の定、 WSL のバージョンが 1 のままだったため、バージョンを 2 にコンバートしてから試すことにした。
C:\>wsl --list --verbose NAME STATE VERSION * Ubuntu-22.04 Stopped 1
C:\>wsl --set-version Ubuntu-22.04 2 Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 Conversion complete.
C:\>wsl --list --verbose NAME STATE VERSION * Ubuntu-22.04 Stopped 2
ついでに、 WSL の既定のバージョンを 2 に設定しておいた。
C:\>wsl --set-default-version 2 For information on key differences with WSL 2 please visit https://aka.ms/wsl2 The operation completed successfully.
その後、 WSL の Ubuntu 22.04.1 LTS で、改めて
$ dig @8.8.8.8 nanashinonozomi.com any
を実行したところ、件のエラーは発生しなくなっていた。