code: func DNSType(name string) (uint16, error) {
  	dt, ok := dns.StringToType[strings.ToUpper(name)]
  	if !ok {
  		return 0, fmt.Errorf("unknown DNS type %q", name)
  	}
  	return dt, nil
  }
docs: // DNSType returns the dnsType that corresponds with the given name.