[dns-operations] Help for DNS queries in webservice

Doug Barton dougb at dougbarton.email
Tue Aug 6 03:18:25 UTC 2019

New gTLDs are not "strange." You may not be familiar with them, but that 
just means you have something to learn.  :)

They also don't have "poor networks." By and large they are all run by 
the same set of around 10 or so companies, which all have a for-profit 
model. None of them would stay in business if they had "poor networks."

As others pointed out you almost certainly have problems in your code. 
Net::DNS has a timeout handler, but it is inelegant, and does not tell 
you anything about the reason. If you need a more robust solution you 
should handle the socket work yourself, and place alarms around your 
network calls so that you can handle timeouts, and diagnose the reasons 
with more information to work with.

hope this helps,


On 2019-08-05 2:59 AM, Paulina wrote:
> Hello,
> We have a mp2 handler which make a lot of DNS queries during its running 
> time. Some queris are sent to the strange domains such as .live, .club, 
> .design, .media, .digital, .market etc. I promise I never saw the 
> domains strange as those.
> Unlike the popular domains such as .com, .net, .org etc, which have 
> solid DNS servers and powerful networks for queries. Those small TLDs 
> have poor networks for DNS queries I may think. Thre are a lot of 
> timeout in the logs.
> I have been using Net::DNS::Resolver for DNS queries in handler. Can you 
> suggest a better way to improve it? maybe AnyEvent::DNS etc?
> Thanks & Yours,
> Paulina

More information about the dns-operations mailing list