MCPcopy Create free account
hub / github.com/foxcpp/maddy / AuthLookupHost

Method AuthLookupHost

framework/dns/dnssec.go:142–153  ·  view source on GitHub ↗
(ctx context.Context, host string)

Source from the content-addressed store, hash-verified

140}
141
142func (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
155func (e ExtResolver) AuthLookupMX(ctx context.Context, name string) (ad bool, mxs []*net.MX, err error) {
156 msg := new(dns.Msg)

Callers

nothing calls this directly

Calls 2

AuthLookupIPAddrMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected