ruby / resolv

A thread-aware DNS resolver library written in Ruby
Other
38 stars 29 forks source link

IPv6: update to_s method to be RFC5952 complient #25

Closed b4ldr closed 10 months ago

b4ldr commented 2 years ago

I noticed that the resolv library dose not honour rfc 5952 section 4.2.2 in relation to textural representation of ipv6 addresses:

The symbol "::" MUST NOT be used to shorten just one 16-bit 0 field. For example, the representation 2001:db8:0:1:1:1:1:1 is correct, but 2001:db8::1:1:1:1:1 is not correct.

fixes #24