DNS Cache Settings   /rest/apv/network/dns/DNSCahceSettings

Upon receiving any type A or AAAA DNS responses, the DNS cache function will cache the A or AAAA records. When the system receives any DNS queries for the cached A or AAAA records, the system will return the type A or AAAA DNS responses directly. If the DNS queries match no cached record, the system will forward the queries to the remote DNS server(s). In addition, the administrator can add static DNS entries to the DNS cache.

  • Relational-instance Queries:
  • GET
    /rest/apv/network/dns/DNSCahceSettings/host
    Query the Cache DNS Entries info of the corresponding DNS Cache Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "DNSCahceSettings": {
            "instance_id":<instance_id>,
            "host":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/network/dns/DNSCahceSettings/host
    Create a Cache DNS Entry for corresponding DNS Cache Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    hostname string
    ip ipaddr
    Response format
            {
                "DNSCacheHostEntry": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/network/dns/DNSCahceSettings/host/<dnscachehostentry_id>
    Delete a specific Cache DNS Entry of corresponding dnscahcesettings
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples