Method Protocols.DNS.client()->getsrvbyname()
- Method
getsrvbyname
arraygetsrvbyname(stringservice,stringprotocol,string|voidname)- Description
Queries the service record (RFC 2782) from the default or given DNS server. The result is an array of arrays with the following six elements for each record. The array is sorted according to the priority of each record.
Each element of the array returned represents a service record. Each service record contains the following:
- Returns
An array with the requested information about the specified service.
Array intpriorityPriority
intweightWeight in event of multiple records with same priority.
intportport number
stringtargettarget dns name