Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS resolver is slow #44

Closed
ajb opened this issue Oct 17, 2014 · 14 comments
Closed

DNS resolver is slow #44

ajb opened this issue Oct 17, 2014 · 14 comments

Comments

@ajb
Copy link
Contributor

ajb commented Oct 17, 2014

img

@ajb
Copy link
Contributor Author

ajb commented Oct 17, 2014

Katon 0.7.0, Yosemite, Google Chrome.

@typicode
Copy link
Owner

After spending a few hours downloading Yosemite, finally got my hand on it :)
Will try to reproduce.

@typicode
Copy link
Owner

I've got the same problem. I've noticed that with Chrome, I'm getting 2 DNS requests for the same host every time.

@typicode
Copy link
Owner

I've updated the firewall script based on the recent Pow update. It seems to have fixed it.
It's available in v0.8.1

@ajb
Copy link
Contributor Author

ajb commented Oct 29, 2014

just installed v0.8.1, still seeing this issue 😢

@typicode
Copy link
Owner

Going back to code and tests then 😅 and sorry again

@typicode
Copy link
Owner

I'm running out of ideas on this one.

So if someone wants to help or have ideas, I'd really appreciate.

@ajb
Copy link
Contributor Author

ajb commented Nov 16, 2014

Would you be willing to ping folks from other projects? Maybe someone from a similar project would be willing to help out. Have you talked to the DNS resolver folks, too?

@assaf
Copy link
Contributor

assaf commented Dec 1, 2014

At least in Yosemite, .ka domains don't get cached locally. If you run curl -I -v you will see this in the console:

* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...

This may be related to the fact that nslookup, host and dig can't resolve .ka domains either.

Basically, every single page load is always trying to resolve the hostname. It starts with Katon, gets hold of the A record, and then runs through all the remaining DNS servers looking for an AAAA record, eventually gives up and settles on using the A record.

With this change, it gets both A and AAAA records from Katon, and immediately resolves the lookup.

@ajb
Copy link
Contributor Author

ajb commented Dec 1, 2014

👍 thank you, @assaf!

@typicode
Copy link
Owner

typicode commented Dec 2, 2014

It works, thanks a lot 👍

typicode added a commit that referenced this issue Dec 2, 2014
FIXED DNS resolver is slow #44
@typicode typicode closed this as completed Dec 2, 2014
@jfirebaugh
Copy link

It still doesn't work for me in 0.8.4. Loading .ka domains in Chrome, Yosemite 10.10.1 takes many minutes, with Chrome stuck on "Resolving host..."

@jfirebaugh
Copy link

False alarm. After restarting Chrome it works much better.

@typicode
Copy link
Owner

typicode commented Dec 3, 2014

@jfirebaugh cool :) just in case, you may want to update to 0.8.5 it includes another fix from @assaf on DNS #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants