Dig
Resolve domain FQDNs using Akamai’s Edge Diagnostics API. The query is executed from an Akamai Edge server, so the results reflect what Akamai sees — not your local DNS resolver.
Usage
akcli dig [OPTIONS] HOSTNAME
Arguments
HOSTNAMEThe fully qualified domain name to query.
Options
--query-type [A|AAAA|SOA|CNAME|PTR|NS|TXT|MX|SRV|CAA|ANY]DNS record type to query. Defaults toA.--rawPrint the rawdig-style response, equivalent to running a standarddigcommand locally.--shortShow only the returned values, without the full DNS record details.--jsonOutput the result in JSON format. Just as returned by the Akamai’s API without parsing.
Config file
The following options can be set in the [dig] section of the config file:
...
[dig]
query_type = "A"
raw = false
short_output = false
Output
By default, results are displayed as a table with the following columns:
With --short, only the resolved values are shown:
With --raw, the output mirrors a standard dig response:
Examples
Basic A record query:
akcli dig example.com
Query a specific record type:
akcli dig example.com --query-type MX
Show only the returned values:
akcli dig example.com --short
Print the raw dig-style response:
akcli dig example.com --raw