Over the years, there have been some changes in how some functions and commands provide an output. Which is why, it is difficult to follow older tutorials, which sometimes do not conform with the latest revisions to software and its commands.
One such change happened whilst I was using nslookup
and python
to lookup ip addresses
on windows, as I do not primarily own a mac or linux.
How, can we fetch, only the IP address of a 'Top Level Url' (tld) using python and nslookup, as of 2019?