QueryType Property

The record type to query.

Syntax

 dns.getQueryType([callback])
 dns.setQueryType( queryType, [callback])

Possible Values

  1 (qtAddress), 
  2 (qtNS), 
  3 (qtMD), 
  4 (qtMF), 
  5 (qtCName), 
  6 (qtSOA), 
  7 (qtMailBox), 
  8 (qtMailGroup), 
  9 (qtMR), 
  10 (qtNULL), 
  11 (qtWKS), 
  12 (qtPointer), 
  13 (qtHostInfo), 
  14 (qtMailInfo), 
  15 (qtMX), 
  16 (qtText), 
  17 (qtRP), 
  18 (qtAFSDB), 
  19 (qtX25), 
  20 (qtISDN), 
  21 (qtRT), 
  28 (qtAAAA), 
  33 (qtSRV), 
  35 (qtNAPTR), 
  37 (qtCERT), 
  100 (qtRevLookup)

Default Value

1

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getQueryType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setQueryType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Before a query is attempted, this property must be set to the desired record type. The records are defined as follows:

qtAddress (1)Address Records
qtNS (2)Name Server Records
qtMD (3)Mail Destination Records
qtMF (4)Mail Forwarder Records
qtCName (5)Canonical Name Records
qtSOA (6)Start Of Authority Records
qtMailBox (7)MailBox Records
qtMailGroup (8)Mail Group Records
qtMR (9)MailBox Rename Records
qtNULL (10)NULL Records
qtWKS (11)Well Known Services Records
qtPointer (12)Pointer Records
qtHostInfo (13)Host Information Records
qtMailInfo (14)Mail Information Records
qtMX (15)Mail Exchange Records
qtText (16)Text Records
qtRP (17)Responsible Person Records
qtAFSDB (18)Service Records
qtX25 (19)X25 Records
qtISDN (20)ISDN Records
qtRT (21)Route Through Records
qtAAAA (28)AAAA Record
qtSRV (33)SRV Record (location of services)
qtNAPTR (35)NAPTR Record (Naming Authority Pointer)
qtCERT (37)Certificate record (Stores PKIX, SPKI, PGP, etc)
qtRevLookup (100)Reverse Lookup (Reverse Lookup)

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Node.js Edition - Version 20.0 [Build 8307]