DNSServer Property

The address of the DNS Server.

Syntax

ANSI (Cross Platform)
char* GetDNSServer();

Unicode (Windows)
LPWSTR GetDNSServer();
@property (nonatomic,readonly,assign,getter=DNSServer) NSString* DNSServer;
- (NSString*)DNSServer;
#define PID_IPINFO_DNSSERVER 28

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_IPInfo_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

Default Value

""

Remarks

The class attempts to find the default DNS server for the machine where it is installed, and provide it in this property.

If the class cannot determine the default DNS server address, this property value will be an empty string.

NOTE: This functionality is only available in Windows.

This property is read-only.

Data Type

String

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