httpdns - Domain name resolution using Http#

Adaptation status unknown

Note

This page document is automatically generated by this file. If there is any error, please submit issue or help modify pr, thank you!

Example

-- Obtain results through Alibaba DNS
local ip = httpdns.ali("air32.cn")
log.info("httpdns", "air32.cn", ip)

-- Get results via Tencent DNS
local ip = httpdns.tx("air32.cn")
log.info("httpdns", "air32.cn", ip)

httpdns.ali(domain_name)#

Obtain results through Alibaba DNS

Parameters

Incoming Value Type

Explanation

string

Domain Name

Return Value

return value type

explanation

string

ip Address

Examples

local ip = httpdns.ali("air32.cn")
log.info("httpdns", "air32.cn", ip)

httpdns.tx(domain_name)#

Get results via Tencent DNS

Parameters

Incoming Value Type

Explanation

string

Domain Name

Return Value

return value type

explanation

string

ip Address

Examples

local ip = httpdns.tx("air32.cn")
log.info("httpdns", "air32.cn", ip)