ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
Adds an "IP address/domain name" pair to the DNS server.
Example
c is Duration
c.InDays = 1
DNSResult is boolean

// Add an "IP address/domain name" pair to a specific DNS server
DNSResult = DNSAddAddress("testdoc.doc.local.", "192.168.1.1", c, "Andromeda_2")
IF DNSResult = False THEN
	Error(ErrorInfo(errFullDetails))
END

// Add an "IP address/domain name" pair to the default DNS server
DNSResult = DNSAddAddress("testAp.towerqual.local.", "192.168.1.2")
IF DNSResult = False THEN
	Error(ErrorInfo(errFullDetails))
END
Syntax
<Result> = DNSAddAddress(<Domain name> , <IP address> [, <Validity period> [, <DNS server> [, <User> [, <Password>]]]])
<Result>: Boolean
  • True if the DNS address was successfully added,
  • False otherwise. ErrorInfo returns more information on the error.
<Domain name>: Unicode string
Full domain name to be associated with the IP address. This parameter has the following format:
<Name> + "." + <Domain>
Example: "testdoc.pcsoft.com"
<IP address>: Character string
IP address to be associated with <Domain name>. It can be an Internet Protocol version 4 (in the xxx.xxx.xxx.xxx format) or version 6 (in the aaaa:bbbb:cccc:dddd:eeee:ffff:gggg:hhhh:iiii:jjjj format).
<Validity period>: Optional duration
Duration (in seconds) of the request validity. This parameter can be:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s).
This parameter is set to 0 by default.
<DNS server>: Optional character string
Address of the DNS server to be updated. The "IP address/domain name" pair will be added to this server. By default, the current DNS server is used.
<User>: Optional Unicode character string
Name of the user used to sign the request.
<Password>: Optional Unicode character string
Password associated with the user to sign the request.
Remarks
  • This function supports Linux and Windows DNS servers that do not require signed requests.
  • This function supports Linux and Windows DSN servers that require signed requests.
Component: wd290com.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/11/2024

Send a report | Local help