Home | History | Annotate | Download | only in net

Lines Matching defs:String

30 	dialDNS(ctx context.Context, network, addr string) (dnsConn, error)
119 func (d *Dialer) dialDNS(ctx context.Context, network, server string) (dnsConn, error) {
144 func exchange(ctx context.Context, server, name string, qtype uint16, timeout time.Duration) (*dnsMsg, error) {
154 for _, network := range []string{"udp", "tcp"} {
184 func tryOneName(ctx context.Context, cfg *dnsConfig, name string, qtype uint16) (string, []dnsRR, error) {
275 func (conf *resolverConfig) tryUpdate(name string) {
317 func lookup(ctx context.Context, name string, qtype uint16) (cname string, rrs []dnsRR, err error) {
349 func avoidDNS(name string) bool {
360 func (conf *dnsConfig) nameList(name string) []string {
374 return []string{name}
382 names := make([]string, 0, 1+len(conf.search))
414 var lookupOrderName = map[hostLookupOrder]string{
422 func (o hostLookupOrder) String() string {
435 func goLookupHost(ctx context.Context, name string) (addrs []string, err error) {
439 func goLookupHostOrder(ctx context.Context, name string, order hostLookupOrder) (addrs []string, err error) {
451 addrs = make([]string, 0, len(ips))
453 addrs = append(addrs, ip.String())
459 func goLookupIPFiles(name string) (addrs []IPAddr) {
473 func goLookupIP(ctx context.Context, host string) (addrs []IPAddr, err error) {
479 func goLookupIPCNAMEOrder(ctx context.Context, name string, order hostLookupOrder) (addrs []IPAddr, cname string, err error) {
495 cname string
546 func goLookupCNAME(ctx context.Context, host string) (cname string, err error) {
557 func goLookupPTR(ctx context.Context, addr string) ([]string, error) {
570 ptrs := make([]string, len(rrs))