Update the RR types which embed IP addresses (A, AAAA, and L32) to use netip.Addr instead of net.IP. This allows downstream packages which depend on this one to easily use this package no matter whether they use netip.Addr or net.IP, since conversion is a simple one-liner in one direction but not the other.
This small public interface change requires corresponding changes to the unpack, pack, scan, compare, and len functions. The changes to these library functions then require smaller changes to some of the higher-level code, such as dnstest and cmd/atomdns/handlers.
Update the RR types which embed IP addresses (A, AAAA, and L32) to use netip.Addr instead of net.IP. This allows downstream packages which depend on this one to easily use this package no matter whether they use netip.Addr or net.IP, since conversion is a simple one-liner in one direction but not the other.
This small public interface change requires corresponding changes to the unpack, pack, scan, compare, and len functions. The changes to these library functions then require smaller changes to some of the higher-level code, such as dnstest and cmd/atomdns/handlers.