Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$ADDRESS^XLFNSLK(): Conversion (Domain Name to IP Addresses)

Reference Type: Supported, Category: Domain Name Service (DNS), ICR#: 3056

Description

The $$ADDRESS^XLFNSLK extrinsic function calls the Domain Name Service (DNS) to convert a domain name into its IP addresses. The IP addresses of the DNS being called are in the DNS IP (#8989.3,51) field in the KERNEL SYSTEM PARAMETERS (#8989.3) file.

NOTE: This API is IPv6 compliant.

Format

  $$ADDRESS^XLFNSLK(domain_name[,type])

Input Parameters

domain_name:

(required) This is the fully qualified domain name (e.g., FORUM.VA.GOV).

type:

(optional) This input variable is from the set A: IPv4 address (the default), AAAA: IPv6 address, CNAME: alias.

Output

returns:

Returns a comma-separated list of IP addresses that are associated with the input domain.

Examples

IPv4 Example
>S X=$$ADDRESS^XLFNSLK("FORUM.VA.GOV")

>W X
10.2.29.130
IPv6 Example
>S X=$$ADDRESS^XLFNSLK("www.google.com","AAAA")

>W X
2607:F8B0:400E:0C02:0000:0000:0000:0067