DefaultServer Property

The default server from which to retrieve registrar information.

Syntax

ANSI (Cross Platform)
char* GetDefaultServer();
int SetDefaultServer(const char* lpszDefaultServer); Unicode (Windows) LPWSTR GetDefaultServer();
INT SetDefaultServer(LPCWSTR lpszDefaultServer);
@property (nonatomic,readwrite,assign,getter=defaultServer,setter=setDefaultServer:) NSString* defaultServer;
- (NSString*)defaultServer;
- (void)setDefaultServer:(NSString*)newDefaultServer;
#define PID_WHOIS_DEFAULTSERVER 1

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

Default Value

"whois.internic.net"

Remarks

If Server is empty, then the class will attempt to connect to DefaultServer and determine the WHOIS server of the registrar of the domain. The Server property will then be set to the name of the WHOIS server of the registrar, and a WHOIS request will be issued against that server.

The default value for DefaultServer is "whois.internic.net".

Data Type

String

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