Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PowerDNSSimpleClient

Index

Constructors

Properties

baseClient: PowerDNSAdvancedClient = ...

Base client

Methods

  • Add a record to the specified domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    Returns Promise<void>

    void

  • Adds multiple records to the specified domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    Returns Promise<void>

    void

  • Creates a new zone. Returns the Zone on creation.

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    • kind: IPowerDNSZoneKind = 'Native'

      Kind of the domain

    Returns Promise<IPowerDNSZone>

    IPowerDNSZone

  • deleteDomain(domainName: string): Promise<void>
  • Deletes this domain, all attached metadata and rrsets.

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    Returns Promise<void>

    void

  • Returns information in the selected domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    Returns Promise<IPowerDNSZone>

    IPowerDNSZone

  • Returns all records in this domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    Returns Promise<IPowerDNSSimpleRecord[]>

    IPowerDNSZoneRRSet[]

  • hasDomain(domainName: string): Promise<boolean>
  • Returns true if the server has the specified domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    Returns Promise<boolean>

  • hasRecord(domainName: string, recordType: string, recordName?: string): Promise<boolean>
  • Returns true if the zone has one record with the specified conditions

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    • recordType: string

      Type of the record (e.g. "A", "MX")

    • Optional recordName: string

      Name of the record

    Returns Promise<boolean>

  • removeRecord(domainName: string, record: Omit<IPowerDNSSimpleRecord, "disabled" | "ttl" | "comment">): Promise<void>
  • Removes one record from the specified domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    • record: Omit<IPowerDNSSimpleRecord, "disabled" | "ttl" | "comment">

      Record to add

    Returns Promise<void>

    void

  • removeRecords(domainName: string, records: (Omit<IPowerDNSSimpleRecord, "disabled" | "ttl" | "comment" | "content"> & { content?: string | string[] })[]): Promise<void>
  • Removes multiple records from the specified domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    • domainName: string

      Name of the domain

    • records: (Omit<IPowerDNSSimpleRecord, "disabled" | "ttl" | "comment" | "content"> & { content?: string | string[] })[]

      Array of records to remove

    Returns Promise<void>

    void

  • Replaces all records with the specific name with the new one

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    Returns Promise<void>

    void

  • Replaces all records with de records collection

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    Returns Promise<void>

    void

  • Removes multiple records from the specified domain

    throws

    PowerDNSBadRequestException

    throws

    PowerDNSNotFoundException

    throws

    PowerDNSTimeoutException

    throws

    PowerDNSUnprocessableEntityException

    throws

    PowerDNSInternalServerErrorException

    Parameters

    Returns Promise<true>

    void

Generated using TypeDoc