Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

IPAddr#reverse

() -> ::String
reverse

Returns a string for DNS reverse lookup. It returns a string in RFC3172 form for an IPv6 address.

See also #private? #set #prefix= #succ also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0