22.02.2023, 12:58
(20.02.2023, 11:03)admin Wrote: There's no way of getting all IP addresses for a given host. Why do you need to get all? If some kind of load balancing is used then the list is not static and can change over time.
DNS requests are very lightweight and should not cause high load. You can put a small delay between them so there are no CPU load spikes.
I'm building a bot to manage dns-based ip routes on the router (vpn tunnel), for this reason i need all returned IPs by a single DNS query (like if you do nslookup). I understand there're some sites that are using dns round robin with 10+ addresses, but most of them are using 2-3 static and i want to make sure i add all of them to the routing policy.