uklans / cache-domains

Domain Names required for LAN Content Cache DNS spoofing
MIT License
565 stars 525 forks source link

dnsmasq script only for ipv4 and DNS resolves into IPv6 #203

Open soonic6 opened 2 years ago

soonic6 commented 2 years ago

Describe the issue you are having

when IPv6 is active in my LAN, sometimes Pihole resolve it into ipv6 addresses

Describe your setup?

pihole, unbound with dnsmasq script

soltuion

i was running the dnsmasq script a second time, but change the IPs from the config.json into "::". the renaming all files into ipv6_BLABLA.conf. Maybe it is possible, that the script create both config. one for ipv4 and one for ipv6 with "::" as destination.

kbrierly commented 2 years ago

It may not be portable to the other generators but there's already a way to do it using the config.json

  "ips": {
    "generic":  ["10.0.0.80","::"]
  },

example steam config:

address=/lancache.steamcontent.com/10.0.0.80
address=/lancache.steamcontent.com/::
nightah commented 3 weeks ago

There's a Dnsmasq configuration knob that can disable this behaviour but the alternative @kbrierly has suggested also is a simple solution.