- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CNAMEResource (0.21 sec)
-
src/vendor/golang.org/x/net/dns/dnsmessage/message.go
} else if err != nil { return err } } } // CNAMEResource parses a single CNAMEResource. // // One of the XXXHeader methods must have been called before calling this // method. func (p *Parser) CNAMEResource() (CNAMEResource, error) { if !p.resHeaderValid || p.resHeaderType != TypeCNAME { return CNAMEResource{}, ErrNotStarted } r, err := unpackCNAMEResource(p.msg, p.off) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 00:09:40 UTC 2024 - 69K bytes - Viewed (0) -
src/net/dnsclient_unix.go
} addrs = append(addrs, IPAddr{IP: IP(aaaa.AAAA[:])}) if cname.Length == 0 && h.Name.Length != 0 { cname = h.Name } case dnsmessage.TypeCNAME: c, err := result.p.CNAMEResource() if err != nil { lastErr = &DNSError{ Err: errCannotUnmarshalDNSMessage.Error(), Name: name, Server: result.server, } break loop }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 24.5K bytes - Viewed (0) -
src/net/lookup.go
} func parseCNAMEFromResources(resources []dnsmessage.Resource) (string, error) { if len(resources) == 0 { return "", errors.New("no CNAME record received") } c, ok := resources[0].Body.(*dnsmessage.CNAMEResource) if !ok { return "", errors.New("could not parse CNAME record") } return c.CNAME.String(), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 28.6K bytes - Viewed (0) -
src/net/dnsclient_unix_test.go
} case dnsmessage.TypeSRV: r.Answers[0].Body = &dnsmessage.SRVResource{ Target: dnsmessage.MustNewName("go.dev."), } case dnsmessage.TypeCNAME: r.Answers[0].Body = &dnsmessage.CNAMEResource{ CNAME: dnsmessage.MustNewName("fake.cname."), } default: panic("unknown dnsmessage type") } return r, nil }, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0)