Ipv4 and ipv6 Missing?

I cannot find the pihole's IP addresses on the WebAPI anymore. Can someone tell me how to get them, please?

Use the following command from the Pi terminal: ip addr

or generate a debug log and the information will appear near the top.

pihole -d

1 Like

Thanks. So I am not crazy, it is definetely not in WebUI anymore, right?

Correct.

Why is that. Was so convenient. I now entered the command and it Output several ipv6?!?

This was removed because the information was not always accurate:

OK, good to know. Nowe "ip addr" gives me several ipv6 addresses. How do I know which one to use?

Look in the debug log and see which IPv6 address is configured for Pi-hole. Use that one.

Confused .
on eth0 (fde2:8acd:e9d3:0:a00:27ff:feab:)
on eth0 (2003:d0:7726:f700:a00:27ff:feab:)
on eth0 (fe80::a00:27ff:feab:)

I deleted the Last four Bits.

Which one is it?

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

Depends. fde2 is a ULA address, 2003 is a GUA address and fe80 is the link local. The GUA may change depending on your ISPs whims. ULA should be stable but it's only for your local network.

What is it that you are trying to accomplish? Do you have IPv6 only clients on your network?

I am trying to block ipv6 Domains using my DNS6 Pihole in router settings.

There are no such things as "IPv6 domains". On the internet, there are only domain names. Those domain names may lead to IPv4 or IPv6 (or both) IP addresses.

If you block a domain in Pi-hole, it is blocked for both IPv4 and IPv6 addresses.

Examples:

cnn.com not blocked by Pi-hole

dig -t AAAA +short cnn.com @127.0.0.1
2a04:4e42:600::323
2a04:4e42::323
2a04:4e42:400::323
2a04:4e42:200::323

dig -t A +short cnn.com @127.0.0.1
151.101.129.67
151.101.65.67
151.101.1.67
151.101.193.67

Add the domain to the blacklist and restart FTL to clear any cache entries:

 pihole -b cnn.com
  [i] Adding cnn.com to the blacklist...
  [✓] Reloading DNS lists

pihole restartdns
  [✓] Restarting DNS server

cnn.com blocked by Pi-hole

dig -t AAAA +short cnn.com @127.0.0.1
::

dig -t A +short cnn.com @127.0.0.1
0.0.0.0

But why is ipv6 a thing in Pihole then?

It's an option available to users, but not needed for upstream DNS resolution in almost all cases.

It's not really needed unless you run an IPv6-only network.

I have clients that connect via ipv6 and therefore will not be blocked when only using ipv4 in Pihole.

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