Searching

The API allows searching for data in Zones, Comments and RRSets.

Endpoints

GET /servers/{server_id}/search-data

Search the data inside PowerDNS

Search the data inside PowerDNS for search_term and return at most max_results. This includes zones, records and comments. The * character can be used in search_term as a wildcard character and the ? character can be used as a wildcard for a single character.

Parameters:
  • server_id (string) – The id of the server to retrieve
Query Parameters:
 
  • q (string) – The string to search for
  • max (integer) – Maximum number of entries to return
Status Codes:
GET /servers/{server_id}/search-log

Query the log, filtered by search_term.

Parameters:
  • server_id (string) – The id of the server to retrieve
Query Parameters:
 
  • q (string) – The string to search for
Status Codes:
  • 200 OK – Returns a single JSON object with a single array of strings. Returns: string

Objects

SearchResult
Object Properties: