CZ-NIC / knot-resolver

Knot Resolver - resolve DNS names like it's 2024
https://www.knot-resolver.cz/
Other
362 stars 59 forks source link

renumber: get rid of netmask limitation, now support any netmask #78

Closed cronfy closed 2 years ago

cronfy commented 2 years ago

Remove limitation of using /8 /16 and /24 netmasks only for renumbering.

Now any kind of netmask is allowed, for example:

    modules = {
        renumber = {
            -- Remap /26 subnet (64 ip addresses)
                        -- 166.55.77.128 -> 127.0.0.192
                        -- 166.55.77.129 -> 127.0.0.193
                        -- ...
            {'166.55.77.128/26', '127.0.0.192'},
        }
    }
vcunat commented 2 years ago

Uh, is the renumber module getting so popular now?

Migrated to https://gitlab.nic.cz/knot/knot-resolver/-/merge_requests/1306

ValdikSS commented 2 years ago

Uh, is the renumber module getting so popular now?

There's ongoing "Internet without Borders" hackathon with tasks to improve the connectivity using DNS resolver hacks: https://internetborders.net/goodbye-dpi/ As I mainly use knot-resolver, I encourage people to improve it in the first place.

vcunat commented 2 years ago

FYI if you're using this code already, the masking was incorrect: https://gitlab.nic.cz/knot/knot-resolver/-/merge_requests/1306#note_254590