func dnsAnswerIPs(answers []dns.RR) []net.IP {
	out := make([]net.IP, 0, len(answers))
	for _, answer := range answers {
		if a, ok := answer.(*dns.A); ok {
			out = append(out, a.A)
		}
		if aaaa, ok := answer.(*dns.AAAA); ok {
			out = append(out, aaaa.AAAA)
		}
	}
	return out
}
// dnsAnswerIPs gets a list of IPs from a dns response. Used in logging
dnsAnswerIPs gets a list of IPs from a dns response. Used in logging
// dnsAnswerIPs gets a list of IPs from a dns response . Used in logging
func dnsAnswerIPs(answers []dns.RR) []net.IP {
	out := make([]net.IP, 0, len(answers))
	for _, answer := range answers {
		if a, ok := answer.(*dns.A); ok {
			out = append(out, a.A)
		}
		if aaaa, ok := answer.(*dns.AAAA); ok {
			out = append(out, aaaa.AAAA)
		}
	}
	return out
}
func dnsAnswerIPs ( answers [ ] dns . RR ) [ ] net . IP { out := make ( [ ] net . IP , 0 , len ( answers ) ) for _ , answer := range answers { if a , ok := answer . ( * dns . A ) ; ok { out = append ( out , a . A ) } if aaaa , ok := answer . ( * dns . AAAA ) ; ok { out = append ( out , aaaa . AAAA ) } } return out }
dnsAnswerIPs gets a list of IPs from a dns response.
dnsAnswerIPs gets a list of IPs from a dns response .