ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / WLanguage functions / Communication / DNS functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Sends a query to a DNS server.
Example
s is string = DNSQuery("google.com", dnsA)
let ResDNS = DNSQuery("91.90.97.90", dnsPTR)
IF ErrorOccurred THEN
	Error(ErrorInfo(errFullDetails))
ELSE
	Info("The associated domain name is: " + ResDNS)
END
Syntax
<Result> = DNSQuery(<Element used> , <Query type> [, <DNS server>])
<Result>: Character string
Result of the query sent to a DNS server. If several pieces of information are returned, they are separated by carriage returns (CR)..
In an error occurs, the ErrorOccurred variable is set to True and ErrorInfo returns the details of the error.
<Element used>: Character string
Domain name or IP address on which the query is to be executed.
<Query type>: Integer constant
Type of query to be executed:
dnsAReturns the IPv4 address associated with the domain name.
dnsAAAAReturns the IPv4 address associated with the domain name.
dnsCNAMEReturns the aliases of a domain name.
dnsDNAMEReturns the aliases of a domain and its subdomains.
dnsMXReturns the mail servers associated with the specified domain.
dnsNAPTRReturns rewrite rules, allowing for more possibilities of correspondence between a domain name and a resource.
dnsNSLists DNS servers for the specified domain.
dnsPTRReturns the host or domain name associated with an IP address (opposite of A/AAAA).
dnsSOAReturns general information of the domain: main server, contact email address, expiration, zone serial number, etc.
dnsSRVReturns the mail server associated with a domain name with additional data such as the load balancing weight for a given service.
dnsTLSAReturns the TLS certificate associated with the domain name.
dnsTXTReturns the text associated with a DNS record.
<DNS server>: Optional character string
Address of the DNS server to use. By default, the current DNS server is used.
Business / UI classification: Business Logic
Component: wd290com.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/11/2024

Send a report | Local help