Get the dnslookup Non-authoritative answer full results

Hi, How to get the complete Non-authoritative answer: via golang module ? can you point me to the right module and examples?

I have tried with netmodule but it is not returning complete results.

cname, _ := net.LookupCNAME("myservergs.postgres.database.azure.com")

nslookup returns full results.

nslookup psrs.redis.cache.windows.net                                                                                                                                                            0s

Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
psrs.redis.cache.windows.net	canonical name = psrs.privatelink.redis.cache.windows.net.
psrs.privatelink.redis.cache.windows.net	canonical name = weur-232143-265394171.vnet.redis.cache.windows.net.
Name:	weur-232143-265394171.vnet.redis.cache.windows.net
Address: 40.115.18.212

dig is even simpler

dig myservergs.postgres.database.azure.com aa +short                                                                                                                                             0s
myservergs.privatelink.postgres.database.azure.com.
cr5.westeurope1-a.control.database.windows.net.
13.69.105.208

my main requirement is to get psrs.privatelink.redis.cache.windows.net Can someone help ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.