Interface: DNSQueryResult
Defined in: types.ts:185
DNS query result interface representing a complete DNS response.
Example
const result: DNSQueryResult = {
question: {
name: "example.com",
type: "A",
class: "IN",
},
answers: [{ type: "A", address: "93.184.216.34", ttl: 86400 }],
};
Properties
additional?
optionaladditional?:DNSRecord[]
Defined in: types.ts:187
Additional records (optional)
answers
answers:
DNSRecord[]
Defined in: types.ts:189
Answer records from the DNS response
authority?
optionalauthority?:DNSRecord[]
Defined in: types.ts:191
Authority records (optional)
question
question:
object
Defined in: types.ts:193
The question section of the DNS query
class
class:
string
Query class (usually ‘IN’ for Internet)
name
name:
string
Domain name being queried
type
type:
DNSRecordType
Type of record requested