Thanks for taking the time to file this bug and trying to make Ubuntu better.
I did try to run the same command you did in a clean Jammy lxd container and it just hangs:
root@bind9-test:~# dig google.com +nssearch
SOA ns1.google.com. dns-admin.google.com. 444516783 900 900 1800 60 from server 2001:4860:4802:34::a in 72 ms.
SOA ns1.google.com. dns-admin.google.com. 444516783 900 900 1800 60 from server 2001:4860:4802:32::a in 76 ms.
SOA ns1.google.com. dns-admin.google.com. 444516783 900 900 1800 60 from server 216.239.32.10 in 80 ms.
SOA ns1.google.com. dns-admin.google.com. 444516783 900 900 1800 60 from server 216.239.34.10 in 80 ms.
SOA ns1.google.com. dns-admin.google.com. 444217784 900 900 1800 60 from server 216.239.36.10 in 140 ms.
SOA ns1.google.com. dns-admin.google.com. 444217784 900 900 1800 60 from server 216.239.38.10 in 140 ms.
SOA ns1.google.com. dns-admin.google.com. 444217784 900 900 1800 60 from server 2001:4860:4802:36::a in 144 ms.
SOA ns1.google.com. dns-admin.google.com. 444217784 900 900 1800 60 from server 2001:4860:4802:38::a in 144 ms.
The command stays running forever. I was not able to get the core dump you got but seems that something undesired is happening.
Thanks for taking the time to file this bug and trying to make Ubuntu better.
I did try to run the same command you did in a clean Jammy lxd container and it just hangs:
root@bind9-test:~# dig google.com +nssearch google. com. 444516783 900 900 1800 60 from server 2001:4860: 4802:34: :a in 72 ms. google. com. 444516783 900 900 1800 60 from server 2001:4860: 4802:32: :a in 76 ms. google. com. 444516783 900 900 1800 60 from server 216.239.32.10 in 80 ms. google. com. 444516783 900 900 1800 60 from server 216.239.34.10 in 80 ms. google. com. 444217784 900 900 1800 60 from server 216.239.36.10 in 140 ms. google. com. 444217784 900 900 1800 60 from server 216.239.38.10 in 140 ms. google. com. 444217784 900 900 1800 60 from server 2001:4860: 4802:36: :a in 144 ms. google. com. 444217784 900 900 1800 60 from server 2001:4860: 4802:38: :a in 144 ms.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
SOA ns1.google.com. dns-admin.
The command stays running forever. I was not able to get the core dump you got but seems that something undesired is happening.