21 OF_ASSUME_NONNULL_BEGIN
25 @class OFArray OF_GENERIC(ObjectType);
85 @property (readonly, nonatomic)
OFString *name;
101 @property (readonly, nonatomic) uint32_t TTL;
113 - (instancetype)initWithName: (
OFString *)name
116 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
124 OF_SUBCLASSING_RESTRICTED
135 - (instancetype)initWithName: (
OFString *)name
138 TTL: (uint32_t)TTL OF_UNAVAILABLE;
149 - (instancetype)initWithName: (
OFString *)name
151 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
160 OF_SUBCLASSING_RESTRICTED
171 - (instancetype)initWithName: (
OFString *)name
174 TTL: (uint32_t)TTL OF_UNAVAILABLE;
185 - (instancetype)initWithName: (
OFString *)name
187 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
196 OF_SUBCLASSING_RESTRICTED
205 @property (readonly, nonatomic)
OFString *alias;
207 - (instancetype)initWithName: (
OFString *)name
210 TTL: (uint32_t)TTL OF_UNAVAILABLE;
222 - (instancetype)initWithName: (
OFString *)name
225 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
234 OF_SUBCLASSING_RESTRICTED
243 @property (readonly, nonatomic)
OFString *CPU;
248 @property (readonly, nonatomic)
OFString *OS;
250 - (instancetype)initWithName: (
OFString *)name
253 TTL: (uint32_t)TTL OF_UNAVAILABLE;
266 - (instancetype)initWithName: (
OFString *)name
270 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
279 OF_SUBCLASSING_RESTRICTED
282 uint16_t _preference;
289 @property (readonly, nonatomic) uint16_t preference;
294 @property (readonly, nonatomic)
OFString *mailExchange;
296 - (instancetype)initWithName: (
OFString *)name
299 TTL: (uint32_t)TTL OF_UNAVAILABLE;
312 - (instancetype)initWithName: (
OFString *)name
314 preference: (uint16_t)preference
315 mailExchange: (
OFString *)mailExchange
316 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
325 OF_SUBCLASSING_RESTRICTED
334 @property (readonly, nonatomic)
OFString *authoritativeHost;
336 - (instancetype)initWithName: (
OFString *)name
339 TTL: (uint32_t)TTL OF_UNAVAILABLE;
351 - (instancetype)initWithName: (
OFString *)name
353 authoritativeHost: (
OFString *)authoritativeHost
354 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
363 OF_SUBCLASSING_RESTRICTED
372 @property (readonly, nonatomic)
OFString *domainName;
374 - (instancetype)initWithName: (
OFString *)name
377 TTL: (uint32_t)TTL OF_UNAVAILABLE;
389 - (instancetype)initWithName: (
OFString *)name
392 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
401 OF_SUBCLASSING_RESTRICTED
404 OFString *_mailbox, *_TXTDomainName;
410 @property (readonly, nonatomic)
OFString *mailbox;
416 @property (readonly, nonatomic)
OFString *TXTDomainName;
418 - (instancetype)initWithName: (
OFString *)name
421 TTL: (uint32_t)TTL OF_UNAVAILABLE;
435 - (instancetype)initWithName: (
OFString *)name
438 TXTDomainName: (
OFString *)TXTDomainName
439 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
448 OF_SUBCLASSING_RESTRICTED
451 OFString *_primaryNameServer, *_responsiblePerson;
452 uint32_t _serialNumber, _refreshInterval, _retryInterval;
453 uint32_t _expirationInterval, _minTTL;
459 @property (readonly, nonatomic)
OFString *primaryNameServer;
464 @property (readonly, nonatomic)
OFString *responsiblePerson;
469 @property (readonly, nonatomic) uint32_t serialNumber;
474 @property (readonly, nonatomic) uint32_t refreshInterval;
479 @property (readonly, nonatomic) uint32_t retryInterval;
484 @property (readonly, nonatomic) uint32_t expirationInterval;
489 @property (readonly, nonatomic) uint32_t minTTL;
491 - (instancetype)initWithName: (
OFString *)name
494 TTL: (uint32_t)TTL OF_UNAVAILABLE;
512 - (instancetype)initWithName: (
OFString *)name
514 primaryNameServer: (
OFString *)primaryNameServer
515 responsiblePerson: (
OFString *)responsiblePerson
516 serialNumber: (uint32_t)serialNumber
517 refreshInterval: (uint32_t)refreshInterval
518 retryInterval: (uint32_t)retryInterval
519 expirationInterval: (uint32_t)expirationInterval
520 minTTL: (uint32_t)minTTL
521 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
530 OF_SUBCLASSING_RESTRICTED
533 uint16_t _priority, _weight;
541 @property (readonly, nonatomic) uint16_t priority;
546 @property (readonly, nonatomic) uint16_t weight;
551 @property (readonly, nonatomic)
OFString *target;
556 @property (readonly, nonatomic) uint16_t port;
558 - (instancetype)initWithName: (
OFString *)name
561 TTL: (uint32_t)TTL OF_UNAVAILABLE;
575 - (instancetype)initWithName: (
OFString *)name
576 priority: (uint16_t)priority
577 weight: (uint16_t)weight
580 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
589 OF_SUBCLASSING_RESTRICTED
598 @property (readonly, nonatomic)
OFArray OF_GENERIC(
OFData *) *textStrings;
600 - (instancetype)initWithName: (
OFString *)name
603 TTL: (uint32_t)TTL OF_UNAVAILABLE;
615 - (instancetype)initWithName: (
OFString *)name
618 TTL: (uint32_t)TTL OF_DESIGNATED_INITIALIZER;
625 extern OFString *_Nonnull of_dns_record_type_to_string(
633 OF_ASSUME_NONNULL_END
of_dns_record_type_t
The type of a DNS resource record.
Definition: OFDNSResourceRecord.h:41
@ OF_DNS_RECORD_TYPE_HINFO
Definition: OFDNSResourceRecord.h:53
@ OF_DNS_RECORD_TYPE_PTR
Definition: OFDNSResourceRecord.h:51
@ OF_DNS_RECORD_TYPE_MX
Definition: OFDNSResourceRecord.h:55
@ OF_DNS_RECORD_TYPE_RP
Definition: OFDNSResourceRecord.h:59
@ OF_DNS_RECORD_TYPE_SOA
Definition: OFDNSResourceRecord.h:49
@ OF_DNS_RECORD_TYPE_CNAME
Definition: OFDNSResourceRecord.h:47
@ OF_DNS_RECORD_TYPE_NS
Definition: OFDNSResourceRecord.h:45
@ OF_DNS_RECORD_TYPE_TXT
Definition: OFDNSResourceRecord.h:57
@ OF_DNS_RECORD_TYPE_ALL
Definition: OFDNSResourceRecord.h:65
@ OF_DNS_RECORD_TYPE_A
Definition: OFDNSResourceRecord.h:43
@ OF_DNS_RECORD_TYPE_SRV
Definition: OFDNSResourceRecord.h:63
@ OF_DNS_RECORD_TYPE_AAAA
Definition: OFDNSResourceRecord.h:61
of_dns_class_t
The DNS class.
Definition: OFDNSResourceRecord.h:31
@ OF_DNS_CLASS_IN
Definition: OFDNSResourceRecord.h:33
@ OF_DNS_CLASS_ANY
Definition: OFDNSResourceRecord.h:35
A class represenging a DNS resource record.
Definition: OFDNSResourceRecord.h:163
A class representing an A DNS resource record.
Definition: OFDNSResourceRecord.h:127
An abstract class for storing objects in an array.
Definition: OFArray.h:92
A class representing a CNAME DNS resource record.
Definition: OFDNSResourceRecord.h:199
A class representing a DNS resource record.
Definition: OFDNSResourceRecord.h:75
A class for storing arbitrary data in an array.
Definition: OFData.h:40
A class representing an HINFO DNS resource record.
Definition: OFDNSResourceRecord.h:237
A class representing an MX DNS resource record.
Definition: OFDNSResourceRecord.h:282
A class representing an NS DNS resource record.
Definition: OFDNSResourceRecord.h:328
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A class representing a PTR DNS resource record.
Definition: OFDNSResourceRecord.h:366
A class representing an SOA DNS resource record.
Definition: OFDNSResourceRecord.h:451
A class representing an SRV DNS resource record.
Definition: OFDNSResourceRecord.h:533
A class for handling strings.
Definition: OFString.h:132
A class representing a TXT DNS resource record.
Definition: OFDNSResourceRecord.h:592
A protocol for the creation of copies.
Definition: OFObject.h:1187
A struct which represents a host / port pair for a socket.
Definition: socket.h:136