dig

The dig command queries the DNS for records that match an IP address or FQDN that you specify. You might run this diagnostic with an HCP domain name, for example, if you have user-defined networks that are not working as expected.

When you execute the dig command, you are prompted for arguments. Although you can specify any dig command arguments, this document describes only IP addresses and FQDNs.

To execute the dig command:

Procedure

  1. From the Appliance Diagnostics menu, enter 3. A prompt for dig command arguments appears.

    This command runs dig with he arguments you provide.
    
    Enter dig arguments:
    
  2. Enter one of these arguments:

    • -x followed by an IP address (for example, -x 172.20.33.40)
    • An FQDN
  3. In response to the confirming prompt, enter y to confirm your entry or n to try again. When you enter y, the results of the dig command are displayed on the screen.

  4. After viewing the display, press Enter to return to the Appliance Diagnostics menu.

    The following is a sample response to the dig command with the argument hcp.example.com:
    ;<<>> DiG 9.7.4-P1-RedHat-9.7.4-2.P1.fc14 <<>> hcp.example.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 49028
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ; hcp.example.com IN        A
    
    ;; AUTHORITY SECTION
    hcp.example.com. 825 IN     NS      hcp.example.com
    hcp.example.com. 825 IN     NS      hcp.example.com
    hcp.example.com. 825 IN     NS      hcp.example.com
    hcp.example.com. 825 IN     NS      hcp.example.com
    
    ;; ADDITIONAL SECTION:
    d9-014.hcp.example.com. 825 IN A    172.20.37.14
    d9-015.hcp.example.com. 825 IN A    172.20.37.15
    d9-016.hcp.example.com. 825 IN A    172.20.37.16
    d9-017.hcp.example.com. 825 IN A    172.20.37.17