Home | History | Annotate | Download | only in net

Lines Matching refs:qtype

144 func exchange(ctx context.Context, server, name string, qtype uint16, timeout time.Duration) (*dnsMsg, error) {
151 {name, qtype, dnsClassINET},
184 func tryOneName(ctx context.Context, cfg *dnsConfig, name string, qtype uint16) (string, []dnsRR, error) {
193 msg, err := exchange(ctx, server, name, qtype, cfg.timeout)
211 cname, rrs, err := answer(name, server, msg, qtype)
317 func lookup(ctx context.Context, name string, qtype uint16) (cname string, rrs []dnsRR, err error) {
331 cname, rrs, err = tryOneName(ctx, conf, fqdn, qtype)
503 for _, qtype := range qtypes {
504 go func(qtype uint16) {
505 cname, rrs, err := tryOneName(ctx, conf, fqdn, qtype)
507 }(qtype)