# Get DNS Preresolved Domain Names

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getPrefetchDomain

# Functional description

  • This interface is used to obtain DNS preresolved domain names

# Calling mode

# HTTPS call


GET https://api.weixin.qq.com/wxa/get_prefetchdnsdomain?access_token=ACCESS_TOKEN 

# Third Party Invocation

  • The calling method and parameters are the same as HTTPS, only the calling token is different

  • The permission set id to which this interface belongs is: 18

  • After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant

# Return parameters

attribute type Introductions
初始值 number Error code
errmsg string Error message
prefetch_dns_domain Array. Pre-resolved dns domain names
size_limit number Total number of configurable domain names

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


GET https://api.weixin.qq.com/wxa/get_prefetchdnsdomain?access_token=xxx 

# Return Data Example


{
    "errcode":0,
    "errmsg":"ok",
    "prefetch_dns_domain":[
        {
            "url":"d1.com",
            "status": 0
        },
        {
            "url":"d2.com",
            "status": 0
        }
    ],
    "size_limit":5
} 

# Error code

Error code Error code Solutions
-1 system error The system is busy, please wait for the developer to try again