question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

check dns concurrently to speed up lookup

See original GitHub issue

Is there any room to check dns concurrently as it might be a time consuming task? I’ve found some hacky ways to do that, but maybe it could be a flag on find_urls. I’m aware this would increase the complexity of this function a lot.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lipojacommented, Jun 18, 2021

OK, could you also think about how to do it so we have the code not tangled. For example: If we can separate all DNS checking parts to its own class/module? This is just and idea I did not look to the code how tricky it will be. Also it would be nice to give user a method that he/she can call when they wants. For example when they use the gen_urls() or they do some post process filtering of URLs.

0reactions
nicolasassicommented, Jun 17, 2021

Great! I was thinking of adding concurrency in the gen_urls() and give user option from the functions above it. Achieve concurrency in the way you metioned would be a lot easier. Gonna work on that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Reduce DNS Lookups? - Hostinger
Speed is key for any website. Learn how to reduce DNS lookups with this simple guide. Optimization doesn't have to be difficult!
Read more >
Online nslookup — Find DNS records
Find DNS records for a domain name with this online tool. Nslookup.io queries multiple DNS servers and displays their cached responses.
Read more >
What Is DNS Lookup Time & How to Reduce It? - Sematext
Discover what DNS lookup time is and how it works. Tips on how to reduce the average score and speed up website performance....
Read more >
7 Best DNS Monitoring Tools + How to Monitor DNS Server
DNS Check is another great tool if you value simplicity. It keeps you in the loop by monitoring any differences or lookup failures...
Read more >
What is DNS Lookup: how to reduce DNS lookups
You can also use tools such as DNSPerf and DNS SPeed Test to find the best DNS providers in your area. 2. Optimizing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found