3
3
I saw couple of related posts on this topic: How do client applications know to use IPv4 or IPv6? and How to know if your browser is connected to the Ipv4 or Ipv6 address of a website?
The first post is couple years old so I am not sure if it is still relevant and the 2nd one didn't answer my question.
Reason I ask is I installed pi hole to help blocking ads. I setup my router to use pi-hole as my IPv4 DNS server, however I still see advertisements when browsing site like CNN. I then realized that my ISP provider (Comcast) provided two IP addresses, one IPv4 and one IPv6 and my router also supports IPv6.
When I manually disable IPv6 on my network card then advertisements stop showing up when I browse CNN website. Therefore I concluded that I was using IPv6 to connect to the CNN website. My question is when a web browser decides to use IPv4 or IPv6 to connect to the destination? Does is simply try to use IPv6 first and if succeeded then use it, otherwise fall back to IPv4?
A side note, apparently Arris SBG6700-AC modem/router only allow you to configure IPv4 DNS server but not IPv6 DNS server. To specify your own IPv6 DNS server, I must set that up from the computer itself.
1I suggest using UBlock Origins – BadSnowflake – 2017-04-12T20:26:08.587
Have you tried installing pi-hole on a dual stack host and use it for resolution over both IPv4 and IPv6? At least four of the supported operating systems have IPv6 support. – kasperd – 2017-04-17T12:37:47.760
Raspbian which is what pi-hole is installed on supports IPv6. It is my Arris SBG6700-AC modem/router that doesn't allow me to set a default IPv6 DNS server. I can of course set my IPv6 DNS server manually on each PC I have on the network but that's a bit inconvenient. – beyonddc – 2017-04-18T19:41:09.750