WHOAMI(7)

NAME

whoami - return your resolver's local IP address, port and transport

DESCRIPTION

The whoami handler is not really that useful, but can be used for having a simple (fast) endpoint to test clients against. When whoami returns a response it will have your client's IP address in the additional section as either an A or AAAA record.

The reply always has an empty answer section. The port and transport are included in the additional section as a SRV record, network can be "tcp" or "udp".

If the ecs handler added an address to the context, that address is used instead.

    ._<network>.qname. 0 IN SRV 0 0 <port> .

The whoami handler will respond to every A or AAAA query, regardless of the query name.

SYNTAX

    whoami

EXAMPLES

Start a server on the default port and load the whoami handler.

    example.org {
        whoami
    }

When queried for "example.org A", atomdns will respond with:

    ;; QUESTION SECTION:
    ;example.org.   IN       A
    ;; ADDITIONAL SECTION:
    example.org.            0       IN      A       10.240.0.1
    _udp.example.org.       0       IN      SRV     0 0 40212