Using a Calc (BASIC) macro to query for a DNS resolution

I can’t believe I’m the first to search for this but I’m not finding any breadcrumbs in any of the forum topics. (I might searching wrong.)

Has anyone seen any discussions about using a BASIC routine to return an address/name for a name/address via a DNS lookup?

BASIC is a bit older than the internet, so I guess, there is nothing in standard lib.
.
If I needed to do this I’d use a wrapper for a python tool, or use SHELL to access nslookup on command-line.

from VBA as well .
e.g Using Excel and VBA to NSLookup and Ping Test
seems Windows specific, but same idea with unixes,
and not so much of Excel, so not far from Calc