Upstream Servers Graph - GUI

image
As can be seen from image (Upstream servers), I would like to ask how to distinguish which google servers are being used (colour representation/display from graph), i.e., 8.8.8.8 and or 8.8.4.4? The hover help only displays which is displayed in the graph. Also note for the open dns servers at least there is a distinction between resolver 1 and 2 which I can tie back to the Upstream DNS Servers setting page via hover help to display the IP address of the DNS, where I am assuming resolver 1 is the first selected from the left hand side...

DNS upstream server settings:

My Current Pi-Hole versions:

I played around with it and couldn't see a way to get this info in the GUI. You can get it from the FTL API in the terminal

Get forward destinations (IP addresses + hostnames (if available)) along with the percentage.

echo ">forward-names >quit" | nc localhost 4711

gives an output like

-3 16.13 blocked blocked
-2 8.17 cached cached
-1 0.87 other other
0 71.08 127.0.0.1#5335 localhost#5335
1 1.38 1.1.1.1#53 one.one.one.one#53
2 2.35 8.8.8.8#53 dns.google#53
3 0.02 8.8.4.4#53 dns.google#53

So for Google in this example that would be

2.35% | 8.8.8.8#53 | dns.google#53
0.02% | 8.8.4.4#53 | dns.google#53

This is because both IP addresses 8.8.8.8 or 8.8.4.4 share the same host name "dns.google" This is how Google has set them up, pihole just shows hostnames of the IP addresses that you set as upstream DNS servers

1 Like

Thanks for the reply and that information, which is good to know, so from a GUI/Graph representation perspective, is there any way to display this via the GUI/Graph, knowing this information is available via the data base as per @chrislph suggestion? A question for the developers..

1 Like

Thanks for reply, good information to know, but for me in terms of the graph, at least in my case makes the graph display not so useful when it comes to the google servers as you are unsure which google server is the fastest in terms of DNS requests/replies, unless you run a command line query to determine this.

Agreed, it would be handy to be able to see IPs, in my case more for debugging stuff. Maybe like a new setting in Settings > Web interface > Per Browser Settings such as

[x] Show IPs on Dashboard Upstream servers

or maybe there is a way to enable it in a conf file settings (I couldn't find one though)

1 Like

Great suggestion for the developers, I for one 100% agree. I would prefer to see an IP address rather than a host name of the upstream DNS servers. As you suggest an option being available to users would be fantastic.

Developers your thoughts?

It's not generally advisable to do this for public IPs, but in this special instance, creating a Local DNS Record for one (or both) of Google's addresses should result in the desired distinction in Pi-holes dashboard.

1 Like

Took your suggestion and tried, here is what I saw after:adding it to LOCAL DNS naming:

image

The naming conventions of open DNS are now showing IP addresses and the other google server is showing an IP address as well.. Is that suuposed to happen?

Am I missing something?

Looks ok to me:
Your screenshot shows Google's upstreams now appear by different labels.
Adjust the label names via Local DNS Records as you prefer them to appear. :wink:

The API shows that the info is captured and recorded by IP, so might there be a way to have it natively on the dashboard? Eg a custom hack in the code that pulls the IP instead of (or as well as) the names? I actually thought it was already but I was thinking of the tooltips over the DNS checkboxes.

I have already have but still:

image

And why are open DNS servers in 1 case loosing their host name and the second google dns server is not changing its name?

Maybe only one has been used since you made the change. Force them one at a time by unticking the second IPv4 Google DNS server in Settings > DNS and saving changes, and then visiting a couple of sites, then going back to the settings, unticking the first one and ticking the second one and saving changes, and then visit a couple of other sites.

Then take another look at the dashboard – is it displaying both of your custom names?

Finally, go back to the settings and ticking both again for normal use and saving changes.

Possibly the percentage generated during a short test is a fraction of a percent and after a few minutes it's essentially zero. In my stats example above the second Google server had a percentage of 0.02% after a minute of testing, and a few minutes after I posted that it had gone from the dashboard.

Ok, so I deleted the DB and now this is what I see:
image

@Bucking_Horn thanks for that tip

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