recordType (property)

This property contains the record type.

Syntax

- (int)recordType:(int)recordIndex;

/* Possible Values */
RT_ADDRESS(1),
RT_NS(2),
RT_MD(3),
RT_MF(4),
RT_CNAME(5),
RT_SOA(6),
RT_MAIL_BOX(7),
RT_MAIL_GROUP(8),
RT_MR(9),
RT_NULL(10),
RT_WKS(11),
RT_POINTER(12),
RT_HOST_INFO(13),
RT_MAIL_INFO(14),
RT_MX(15),
RT_TEXT(16),
RT_RP(17),
RT_AFSDB(18),
RT_X25(19),
RT_ISDN(20),
RT_RT(21),
RT_AAAA(28),
RT_SRV(33),
RT_NAPTR(35)
public func recordType(recordIndex: Int32) throws -> DnsRecordTypes
public enum DnsRecordTypes : Int32 { case rtAddress = 1 case rtNS = 2 case rtMD = 3 case rtMF = 4 case rtCName = 5 case rtSOA = 6 case rtMailBox = 7 case rtMailGroup = 8 case rtMR = 9 case rtNULL = 10 case rtWKS = 11 case rtPointer = 12 case rtHostInfo = 13 case rtMailInfo = 14 case rtMX = 15 case rtText = 16 case rtRP = 17 case rtAFSDB = 18 case rtX25 = 19 case rtISDN = 20 case rtRT = 21 case rtAAAA = 28 case rtSRV = 33 case rtNAPTR = 35 }

Default Value

1

Remarks

This property contains the record type.

Record types correspond to QueryType and are defined as follows:

rtAddress (1)Address Record
rtNS (2)Name Server Record
rtMD (3)Mail Destination Record
rtMF (4)Mail Forwarder Record
rtCName (5)Canonical Name Record
rtSOA (6)Start Of Authority Record
rtMailBox (7)MailBox Record
rtMailGroup (8)Mail Group Record
rtMR (9)MailBox Rename Record
rtNULL (10)NULL Record
rtWKS (11)Well Known Services Record
rtPointer (12)Pointer Record
rtHostInfo (13)Host Information Record
rtMailInfo (14)Mail Information Record
rtMX (15)Mail Exchange Record
rtText (16)Text Record
rtRP (17)Responsible Person Record
rtAFSDB (18)Service Record
rtX25 (19)X25 Record
rtISDN (20)ISDN Record
rtRT (21)Route Through Record
rtAAAA (28)AAAA Record
rtSRV (33)SRV Record (location of services)
rtNAPTR (35)NAPTR Record (Naming Authority Pointer)

The RecordIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecordCount property.

This property is read-only.

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