Function EN Version 4.50

@DNSQuery

Internet

Syntax

@SQLQuery(IPADDRESS1;QNAME2;QTYPE3,QCLASS4);
@SQLQuery(IPADDRESS1;QNAME2;QTYPE3,QCLASS4;TIMEOUT5);

Description

Currently available for Windows only!!!

Sends a query via UDP to the DNS server with the Internet IP address TEXT IPADDRESS1 and returns the result as TEXTLIST . Each element represents a record whose fields are separated by "|" and whose first element specifies the type. FN TIMEOUT5 can be used to specify a timeout for waiting for the result. By default, the system waits 5 seconds for the response. Because UDP is unreliable, several additional attempts should be made if an error occurs.

TEXT QNAME2:
name to be queried

FN QTYPE3:
TYPE value   meaningTYPE value   meaning
A 1    a host address
NS 2      an authoritative name server
MD 3    a mail destination (Obsolete – use MX)
MF 4    a mail forwarder (Obsolete – use MX)
CNAME 5    the canonical name for an alias
SOA 6    marks the start of a zone of authority
MB 7    a mailbox domain name (EXPERIMENTAL)
MG 8    a mail group member (EXPERIMENTAL)
MR 9    a mail rename domain name (EXPERIMENTAL)
NULL 10    a null RR (EXPERIMENTAL)
WKS 11    a well known service description
PTR 12    a domain name pointer
HINFO 13    host information
MINFO 14    mailbox or mail list information
MX 15    mail exchange
TXT 16    text strings

AXFR 252    a request for a transfer of an entire zone
MAILB 253    a request for mailbox-related records (MB, MG or MR)
MAILA 254    a request for mail agent RRs (Obsolete – see MX)
* 255    a request for all records

FN QCLASS4:
CLASS value   meaningCLASS value   meaning
IN 1      the Internet
CS 2    the CSNET class (Obsolete – used only for examples in some obsolete RFCs)
CH 3      the CHAOS class
HS 4    Hesiod [Dyer 87]

* 255    any class

TEXTLIST @Return:
A-Record:
"A|QNAME|TYPE|CLASS|TIME-TO-LIVE|IP-ADDRESS"

NS-Record:
"NS|QNAME|TYPE|CLASS|TIME-TO-LIVE|NSDNAME"

CNAME-Record:
"CNAME|QNAME|TYPE|CLASS|TIME-TO-LIVE|CNAME"

SOA-Record:
"SOA|NAME|TYPE|CLASS|TIME-TO-LIVE|MNAME|RNAME|SERIAL|REFRESH|RETRY|EXPIRE"

PTR-Record:
"PTR|QNAME|TYPE|CLASS|TIME-TO-LIVE|PTRDNAME"

HINFO-Record:
"HINFO|QNAME|TYPE|CLASS|TIME-TO-LIVE|CPU|OS"

MX-Record:
"MX|NAME|TYPE|CLASS|TIME-TO-LIVE|PREFERENCE|EXCHANGE"

Unknown-/Unimplemented-Record:
"??|QTYPE|QCLASS|TIME-TO-LIVE"

Example: …

Note : This text was machine-translated and may contain inaccuracies.