namecoin / nmcontrol

Namecoin Control. This repo is deprecated in favor of https://github.com/namecoin/ncdns
136 stars 38 forks source link

Format Validation #45

Open JeremyRand opened 10 years ago

JeremyRand commented 10 years ago

Right now you can put spec-invalid data in a name's value and NMControl's "dns" plugin will happily return the invalid data. The dns plugin should actually validate data according to the namespace spec before returning it to user applications.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4426394-format-validation?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github).
JeremyRand commented 9 years ago

This is the "right" way to validate IP addresses, once we upgrade to Python3.

https://docs.python.org/3/library/ipaddress.html