ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / DNS functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Deletes an "IP address/Domain name" pair from a DNS server.
Example
ResultDNS is boolean

// Supprime une adresse
ResultDNS = DNSDeleteAddress("testAp.towerqual.local.", "192.168.1.1", "Andromede_2")
IF ResultDNS = False THEN
	Error(ErrorInfo(errFullDetails))
END

// Supprime toutes les adresses
ResultDNS = DNSDeleteAddress("testAp.towerqual.local.", "", "Andromede_2")
IF ResultDNS = False  THEN
	Error(ErrorInfo(errFullDetails))
END
Syntax
<Result> = DNSDeleteAddress(<Domain name> [, <IP address> [, <DNS server> [, <User> [, <Password>]]]])
<Result>: Boolean
  • True if deleted successfully,
  • False otherwise. ErrorInfo returns more information on the error.
<Domain name>: Unicode string
Domain name to be deleted from the DNS server. This parameter has the following format:
<Nom> + "." + <Domaine>
For example: "testdoc.windev.com"
<IP address>: Optional character string
IP address associated with the domain name to be deleted. 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).
If this parameter is an empty string (""), all the associations of a domain name with an IP address will be deleted.
<DNS server>: Optional character string
Address of the DNS server to be updated. The "IP address/domain name" pair will be deleted from 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 string or Secret string
Password associated with the user to sign the request.
New in version 2025
Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "Unicode string".
To learn more about secret strings and how to use the vault, see Secret string vault.
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: wd300com.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/16/2025

Send a report | Local help