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

Improve API calls for Top Clients and Forward Destinations #253

Merged
merged 13 commits into from
Dec 23, 2016

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Dec 15, 2016

Changes proposed in this pull request:

  • Try to resolve client and upstream DNS server IPs to host names if corresponding settings are true

Upstream DNS servers: API_GET_UPSTREAM_DNS_HOSTNAME
Clients: API_GET_CLIENT_HOSTNAME

  • General speed improvements

http://pi.hole/admin/api.php?getForwardDestinations
devel: 5.8s
this PR: 3.3s

http://pi.hole/admin/api.php?getQuerySources
devel: 15.6s
this PR: 4.6s

@pi-hole/dashboard

@DL6ER DL6ER changed the title Resolve client IPs to hostnames [WIP] Improve API calls for Top Lists, Top Clients and Forward Destinations Dec 15, 2016
@DL6ER DL6ER changed the title [WIP] Improve API calls for Top Lists, Top Clients and Forward Destinations [WIP] Improve API calls for Top Clients and Forward Destinations Dec 15, 2016
DL6ER added a commit to pi-hole/pi-hole that referenced this pull request Dec 15, 2016
@DL6ER DL6ER added this to the v2.1 milestone Dec 16, 2016
@AzureMarker
Copy link
Contributor

Will this add lots of extra queries to the log?

@DL6ER
Copy link
Member Author

DL6ER commented Dec 21, 2016

It will add (max) 10+2 PTR requests each time. However, we will exclude [PTR] from being show in the query log in the future.

@DL6ER DL6ER changed the title [WIP] Improve API calls for Top Clients and Forward Destinations Improve API calls for Top Clients and Forward Destinations Dec 22, 2016
@PromoFaux
Copy link
Member

Hmmm, something in this PR set my PIHOLE_DNS_2 to none

I thought that was fixed in devel?

@PromoFaux
Copy link
Member

PromoFaux commented Dec 23, 2016

Approved

Approved with PullApprove

@PromoFaux PromoFaux merged commit f92d138 into devel Dec 23, 2016
@PromoFaux PromoFaux deleted the clienthosts branch December 23, 2016 10:37
@DL6ER
Copy link
Member Author

DL6ER commented Dec 23, 2016

Hmmm, something in this PR set my PIHOLE_DNS_2 to none
I thought that was fixed in devel?

Yes, I guess the branch was not up-to-date with devel. Should anyhow not cause problems when merged.

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

Successfully merging this pull request may close these issues.

3 participants