Protocol Property

The protocol used for the DNS request.

Syntax

ANSI (Cross Platform)
int GetProtocol();
int SetProtocol(int iProtocol); Unicode (Windows) INT GetProtocol();
INT SetProtocol(INT iProtocol);

Possible Values

PT_UDP(0), 
PT_TCP(1),
PT_TLS(2),
PT_HTTPS(3)
@property (nonatomic,readwrite,assign,getter=protocol,setter=setProtocol:) int protocol;
- (int)protocol;
- (void)setProtocol:(int)newProtocol;

Possible Values

PT_UDP(0), 
PT_TCP(1),
PT_TLS(2),
PT_HTTPS(3)
#define PID_DNS_PROTOCOL 5

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_DNS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_DNS_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property specifies the protocol used for the DNS request when Query is called. Possible values are:

0 (ptUDP - default) UDP is used. This is the most commonly used DNS protocol.
1 (ptTCP) TCP is used.
2 (ptTLS) TCP with TLS is used. Set DNSPort to the port which the server uses for TLS connections. Typically this is port 853.
3 (ptHTTPS) HTTP is used. The DNS request is made over HTTP. DNSServer must bet set to a URL of a server accepting DNS over HTTPS (DoH) requests. See the DoHMethod configuration setting for additional options when using this protocol.

Data Type

Integer

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