Print Page as PDF
DNS lookup ICR (3056)

DNS lookup    ICR (3056)

Name Value
NUMBER 3056
IA # 3056
DATE CREATED 2000/03/01
CUSTODIAL PACKAGE KERNEL
CUSTODIAL ISC San Francisco
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE XLFNSLK
NAME DNS lookup
GENERAL DESCRIPTION
Call a DNS to resolve Domain names.
STATUS Active
KEYWORDS DNS
ID XLFNSLK
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$ADDRESS(domain_name[,type])
$$ADDRESS^XLFNSLK(domain_name[,type]) This call will
call a DNS to convert the domain name into IP address's.  The IP address of
the DNS is in the Kernel System Parameter file, field DNS IP.

Example: W $$ADDRESS^XLFNSLK("DNS         ") =>> 127.0.0.1
VARIABLES TYPE VARIABLES DESCRIPTION
domain_name Input
domain_name is a fully qualified domain name like DNS
.
type Input
This is input is optional.  Type is from the set A:
address (the default), CNAME: alias.
$$ADDRESS Output
Returns a coma-separated list of IP address's that
are associated with the domain.
MAIL(RETURN, domain_name)
MAIL^XLFNSLK(RETURN, domain_name) This call will call
a DNS to get the MX records for a domain name with their IP address.
VARIABLES TYPE VARIABLES DESCRIPTION
domain_name Input
domain_name is a fully qualified domain name like DNS
.
RETURN Output
Pass by reference a local variable to hold the return
array. The data is subscripted by priority. domain_name is a full domain name
like DNS

Example: K ZX D MAIL(.ZX,"DNS              ") ZW ZX
ZX=2
ZX(30)=a2.DNS              .^127.0.0.1
ZX(50)=gateway.DNS         .^127.0.0.1