Up | TOC | Index | |||||
<< 7 Included Tools | < 8.35 Common Internet Routines | Up: 8 API Reference | 8.37 HTTP Client > | 9 Release Notes >> |
8.36 DNS
8.36.1 Constants
8.36.1.1 ADDR_FLAGS
include std/net/dns.e namespace dns public enum ADDR_FLAGS
8.36.1.2 ADDR_FAMILY
include std/net/dns.e namespace dns public enum ADDR_FAMILY
8.36.1.3 ADDR_TYPE
include std/net/dns.e namespace dns public enum ADDR_TYPE
8.36.1.4 ADDR_PROTOCOL
include std/net/dns.e namespace dns public enum ADDR_PROTOCOL
8.36.1.5 ADDR_ADDRESS
include std/net/dns.e namespace dns public enum ADDR_ADDRESS
8.36.1.6 HOST_OFFICIAL_NAME
include std/net/dns.e namespace dns public enum HOST_OFFICIAL_NAME
8.36.1.7 HOST_ALIASES
include std/net/dns.e namespace dns public enum HOST_ALIASES
8.36.1.8 HOST_IPS
include std/net/dns.e namespace dns public enum HOST_IPS
8.36.1.9 HOST_TYPE
include std/net/dns.e namespace dns public enum HOST_TYPE
8.36.1.10 DNS_QUERY_STANDARD
include std/net/dns.e namespace dns public constant DNS_QUERY_STANDARD
8.36.1.11 DNS_QUERY_ACCEPT_TRUNCATED_RESPONSE
include std/net/dns.e namespace dns public constant DNS_QUERY_ACCEPT_TRUNCATED_RESPONSE
8.36.1.12 DNS_QUERY_USE_TCP_ONLY
include std/net/dns.e namespace dns public constant DNS_QUERY_USE_TCP_ONLY
8.36.1.13 DNS_QUERY_NO_RECURSION
include std/net/dns.e namespace dns public constant DNS_QUERY_NO_RECURSION
8.36.1.14 DNS_QUERY_BYPASS_CACHE
include std/net/dns.e namespace dns public constant DNS_QUERY_BYPASS_CACHE
8.36.1.15 DNS_QUERY_NO_WIRE_QUERY
include std/net/dns.e namespace dns public constant DNS_QUERY_NO_WIRE_QUERY
8.36.1.16 DNS_QUERY_NO_LOCAL_NAME
include std/net/dns.e namespace dns public constant DNS_QUERY_NO_LOCAL_NAME
8.36.1.17 DNS_QUERY_NO_HOSTS_FILE
include std/net/dns.e namespace dns public constant DNS_QUERY_NO_HOSTS_FILE
8.36.1.18 DNS_QUERY_NO_NETBT
include std/net/dns.e namespace dns public constant DNS_QUERY_NO_NETBT
8.36.1.19 DNS_QUERY_WIRE_ONLY
include std/net/dns.e namespace dns public constant DNS_QUERY_WIRE_ONLY
8.36.1.20 DNS_QUERY_RETURN_MESSAGE
include std/net/dns.e namespace dns public constant DNS_QUERY_RETURN_MESSAGE
8.36.1.21 DNS_QUERY_TREAT_AS_FQDN
include std/net/dns.e namespace dns public constant DNS_QUERY_TREAT_AS_FQDN
8.36.1.22 DNS_QUERY_DONT_RESET_TTL_VALUES
include std/net/dns.e namespace dns public constant DNS_QUERY_DONT_RESET_TTL_VALUES
8.36.1.23 DNS_QUERY_RESERVED
include std/net/dns.e namespace dns public constant DNS_QUERY_RESERVED
8.36.1.24 NS_C_IN
include std/net/dns.e namespace dns public constant NS_C_IN
8.36.1.25 NS_C_ANY
include std/net/dns.e namespace dns public constant NS_C_ANY
8.36.1.26 NS_KT_RSA
include std/net/dns.e namespace dns public constant NS_KT_RSA
8.36.1.27 NS_KT_DH
include std/net/dns.e namespace dns public constant NS_KT_DH
8.36.1.28 NS_KT_DSA
include std/net/dns.e namespace dns public constant NS_KT_DSA
8.36.1.29 NS_KT_PRIVATE
include std/net/dns.e namespace dns public constant NS_KT_PRIVATE
8.36.1.30 NS_T_A
include std/net/dns.e namespace dns public constant NS_T_A
8.36.1.31 NS_T_NS
include std/net/dns.e namespace dns public constant NS_T_NS
8.36.1.32 NS_T_PTR
include std/net/dns.e namespace dns public constant NS_T_PTR
8.36.1.33 NS_T_MX
include std/net/dns.e namespace dns public constant NS_T_MX
8.36.1.34 NS_T_AAAA
include std/net/dns.e namespace dns public constant NS_T_AAAA
8.36.1.35 NS_T_A6
include std/net/dns.e namespace dns public constant NS_T_A6
8.36.1.36 NS_T_ANY
include std/net/dns.e namespace dns public constant NS_T_ANY
8.36.2 General Routines
8.36.2.1 host_by_name
include std/net/dns.e namespace dns public function host_by_name(sequence name)
Get the host information by name.
Parameters:
- name : host name
Returns:
A sequence, containing
{ official name, { alias1, alias2, ... }, { ip1, ip2, ... }, address_type }
Example 1:
object data = host_by_name("www.google.com") -- data = { -- "www.l.google.com", -- { -- "www.google.com" -- }, -- { -- "74.125.93.104", -- "74.125.93.147", -- ... -- }, -- 2 -- }
8.36.2.2 host_by_addr
include std/net/dns.e namespace dns public function host_by_addr(sequence address)
Get the host information by address.
Parameters:
- address : host address
Returns:
A sequence, containing
{ official name, { alias1, alias2, ... }, { ip1, ip2, ... }, address_type }
Example 1:
object data = host_by_addr("74.125.93.147") -- data = { -- "www.l.google.com", -- { -- "www.google.com" -- }, -- { -- "74.125.93.104", -- "74.125.93.147", -- ... -- }, -- 2 -- }