(ctx context.Context, host string)
| 140 | } |
| 141 | |
| 142 | func (e ExtResolver) AuthLookupHost(ctx context.Context, host string) (ad bool, addrs []string, err error) { |
| 143 | ad, addrParsed, err := e.AuthLookupIPAddr(ctx, host) |
| 144 | if err != nil { |
| 145 | return false, nil, err |
| 146 | } |
| 147 | |
| 148 | addrs = make([]string, 0, len(addrParsed)) |
| 149 | for _, addr := range addrParsed { |
| 150 | addrs = append(addrs, addr.String()) |
| 151 | } |
| 152 | return ad, addrs, nil |
| 153 | } |
| 154 | |
| 155 | func (e ExtResolver) AuthLookupMX(ctx context.Context, name string) (ad bool, mxs []*net.MX, err error) { |
| 156 | msg := new(dns.Msg) |
nothing calls this directly
no test coverage detected