To contents

14.27.1 Protocols.DNS.client

CLASS
Protocols.DNS.client

DESCRIPTION
Synchronous DNS client.

METHOD
Protocols.DNS.client.create

SYNTAX
void create()
void create(void|string|array server,  void|int|array domain)

DESCRIPTION

METHOD
Protocols.DNS.client.gethostbyname,
Protocols.DNS.client.gethostbyaddr

SYNTAX
array gethostbyname(string hostname)
array gethostbyaddr(string hostip)

DESCRIPTION
Querys the host name or ip from the default or given DNS server. The result is a mapping with three elements,
({
   string hostname  [0] hostname
   array(string) ip [1] ip number(s)
   array(string) ip [2] dns name(s)
})

METHOD
Protocols.DNS.client.get_primary_mx

SYNTAX
string get_primary_mx(string hostname)

DESCRIPTION
Querys the primary mx for the host.

RETURNS
the hostname of the primary mail exchanger

To contents