sparse-intern-71089
05/30/2020, 5:56 PMgreen-school-95910
05/30/2020, 5:58 PMable-beard-29160
05/30/2020, 6:00 PMbillowy-army-68599
green-school-95910
05/30/2020, 6:11 PMIt can use a pure Go resolver that sends DNS requests directly to the servers listed in /etc/resolv.conf, or it can use a cgo-based resolver that calls C library routines such as getaddrinfo and getnameinfo.
By default the pure Go resolver is used, because a blocked DNS request consumes only a goroutine, while a blocked C call consumes an operating system thread.
green-school-95910
05/30/2020, 6:16 PMable-beard-29160
05/30/2020, 6:37 PMable-beard-29160
05/30/2020, 6:38 PMable-beard-29160
05/30/2020, 6:47 PMgreen-school-95910
05/30/2020, 6:55 PMable-beard-29160
05/30/2020, 6:57 PMgreen-school-95910
05/30/2020, 7:08 PM