Skip to main content

List DNS servers

GET 

/node/:hostname/network/dns/:interfaceName

Retrieve the list of currently configured DNS servers for a specific network interface.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

    interfaceName stringrequired

    The name of the network interface to retrieve DNS configuration for. Must only contain letters and numbers.

Responses

List of DNS servers.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent that served this config.

    servers string[]

    List of configured DNS servers.

    search_domains string[]

    List of search domains.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...