I'm looking for a solution to an obscure problem. For security policy reasons we have a workstation using PeerBlock with a block list that essentially blacklists the entire internet, and then an allow list for a handful of IPs we deem ok.
This particular workstation has one piece software on it that is supported by an external company, and their remote support tool of choice is Teamviewer. We've had many "discussions" about using an alternative package and suffice to say, they won't budge, and I don't have the power to change that. So now I need to find a way to whitelist teamviewer.
According to the Teamviewer KB:
...we are unable to provide a list of our server IPs. However, all of our IP addresses have PTR records that resolve to *.teamviewer.com
So now I'm wondering if I can use the PTR records to somehow scrape through and pull out all of the subdomains used along with their associated IP addresses.
I have both a windows workstation and an ubuntu workstation available to me to periodically perform this task, so powershell or shell scripting are my preferred weapons of choice.
Is there a way to achieve what I'm trying to do? I've been looking at dig
, but I can't quite get my head around it.