Given a domain, such as "test.com", is there a reliable way to determine who hosts the DNS for the domain, and provide a link to the provider? Specifically, I want to be able to inform a user of our software how they can update their DNS, and provide them a link to the service.
I can run dig test.com NS and get the response,
test.com. 0 IN NS ns3.hosting.com.
test.com. 0 IN NS ns1.hosting.com.
test.com. 0 IN NS ns2.hosting.com.
So in this case, I guess hosting.com is the DNS provider, and I could provide that...
But in other cases, I get responses like ns-54.awsdns-06.com. I assume then that the DNS provider is AWS Route53, but from this response I can't determine that the user should visit https://aws.amazon.com/route53/
Does anyone know of a service (preferably a npm package) which would provide this type of mapping to a DNS provider's service URL?