/
dns_response.go
54 lines (37 loc) · 2.51 KB
/
dns_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package models
// This file is auto-generated.
// Please contact avi-sdk@avinetworks.com for any change requests.
// DNSResponse Dns response
// swagger:model DnsResponse
type DNSResponse struct {
// Number of additional records.
AdditionalRecordsCount *int32 `json:"additional_records_count,omitempty"`
// Number of answer records.
AnswerRecordsCount *int32 `json:"answer_records_count,omitempty"`
// Flag to indicate the responding DNS is an authority for the requested FQDN.
AuthoritativeAnswer *bool `json:"authoritative_answer,omitempty"`
// Flag to indicate whether fallback algorithm was used to serve this request. Field introduced in 18.2.3.
FallbackAlgorithmUsed *bool `json:"fallback_algorithm_used,omitempty"`
// Resource records in the response are generated based on wildcard match. Field introduced in 18.2.1.
IsWildcard *bool `json:"is_wildcard,omitempty"`
// Number of nameserver records.
NameserverRecordsCount *int32 `json:"nameserver_records_count,omitempty"`
// DNS response operation code e.g. QUERY, NOTIFY, etc. Enum options - DNS_OPCODE_QUERY, DNS_OPCODE_IQUERY, DNS_OPCODE_STATUS, DNS_OPCODE_NOTIFY, DNS_OPCODE_UPDATE. Field introduced in 17.1.3.
Opcode *string `json:"opcode,omitempty"`
// Opt resource records in the response. Field introduced in 17.1.1.
OptRecord *DNSOptRecord `json:"opt_record,omitempty"`
// Flag indicating response is a client query (false) or server response (true). Field introduced in 17.1.3.
QueryOrResponse *bool `json:"query_or_response,omitempty"`
// Number of questions in the client DNS request eliciting this DNS response. Field introduced in 17.1.3.
QuestionCount *int32 `json:"question_count,omitempty"`
// Resource records in the response.
Records []*DNSResourceRecord `json:"records,omitempty"`
// Flag indicating the DNS query is fully answered.
RecursionAvailable *bool `json:"recursion_available,omitempty"`
// Flag copied from the DNS query's recursion desired field by the responding DNS. Field introduced in 17.1.3.
RecursionDesired *bool `json:"recursion_desired,omitempty"`
// Response code in the response. Enum options - DNS_RCODE_NOERROR, DNS_RCODE_FORMERR, DNS_RCODE_SERVFAIL, DNS_RCODE_NXDOMAIN, DNS_RCODE_NOTIMP, DNS_RCODE_REFUSED, DNS_RCODE_YXDOMAIN, DNS_RCODE_YXRRSET, DNS_RCODE_NXRRSET, DNS_RCODE_NOTAUTH, DNS_RCODE_NOTZONE.
ResponseCode *string `json:"response_code,omitempty"`
// Flag to indicate if the answer received from DNS is truncated (original answer exceeds 512 bytes UDP limit).
Truncation *bool `json:"truncation,omitempty"`
}