notracking / hosts-blocklists

Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage
2.31k stars 148 forks source link

Support for IPv6 #53

Closed Mausy5043 closed 6 years ago

Mausy5043 commented 6 years ago

Please consider supporting IPv6.

The way you can do that is to duplicate every line in the hosts.txt file and replace on the duplicated line the0.0.0.0 with ::1

For example:

0.0.0.0 0000mps.webpreview.dsl.net
::1 0000mps.webpreview.dsl.net
0.0.0.0 0001.2waky.com
::1 0001.2waky.com
0.0.0.0 000.gaysexe.free.fr
::1 000.gaysexe.free.fr
0.0.0.0 000owamail0.000webhostapp.com
::1 000owamail0.000webhostapp.com

etcetera

cbuijs commented 6 years ago

"::1" (localhost) should be "::" to be consistent and use an "all zeroes" address like IPv4.

-Chris

On Feb 15, 2018 15:50, "Maurice (mausy5043) Hendrix" < notifications@github.com> wrote:

Please consider supporting IPv6.

The way you can do that is to duplicate every line in the hosts.txt file and replace on the duplicated line the0.0.0.0 with ::1

For example:

0.0.0.0 0000mps.webpreview.dsl.net ::1 0000mps.webpreview.dsl.net 0.0.0.0 0001.2waky.com ::1 0001.2waky.com 0.0.0.0 000.gaysexe.free.fr ::1 000.gaysexe.free.fr 0.0.0.0 000owamail0.000webhostapp.com ::1 000owamail0.000webhostapp.com

etcetera

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/notracking/hosts-blocklists/issues/53, or mute the thread https://github.com/notifications/unsubscribe-auth/AGamUna0qywYz3zqvUkIz7Gf-89OmQR0ks5tVJikgaJpZM4SHfBT .

Mausy5043 commented 6 years ago

@cbuijs you're right. I confused the 127.0.0.1 equivalent.

notracking commented 6 years ago

Do you happen to know how Pi-Hole deals with lists in a ipv6 enabled configuration? Will it simple add a ipv4 + ipv6 line to its internal (merged) list?

For implementation I'd prefer to make a separate list in a /ipv6/ directory, although the downside would be adding extra installation instructions. I can also not really see a downside to having both ipv4&6 in one list..

notracking commented 6 years ago

Ok, it's going for the same format as you suggested: list.sh gravity.sh

Mausy5043 commented 6 years ago

You could also make a second version of each list one IPv4 and one IPv6. For example hostsv4.txt and hostsv6.txt and then people can download and install what they need/want.

notracking commented 6 years ago

I would like to prevent having to rename the main "hostnames.txt" and "domains.txt" filenames, because people are using them in auto updates and might not be aware of this change.

I'm moving more towards the direction where we just combine the ipv4&6 hosts in the current files, making the list 2x its current size. This should not influence the performance of Dnsmasq too much and is the best option in regard of backwards compatibility, while keeping the instructions to a bare minimum.

notracking commented 6 years ago

Ok, implemented in the update scripts.

Starting with the next autoupdate the blocklists will support both ipv4 & ipv6. I did not split up ipv4/ipv6 in separate files, because it has not functional impact for usage with dnsmasq.

notracking commented 6 years ago

@Mausy5043 and @cbuijs many, many thanks! This is the reason why I made my list public in the first place. Everything seems to be in place, closing ticket.