powerdnsex v0.3.1 PowerDNSex

Link to this section Summary

Functions

Create a new Record for the given Zone

Create a new Zone on PowerDNS

Delete specific Record of given Zone

Delete specific Zone on PowerDNS

Show / Retrive info of the specific Record of the given Zone name

Show / Retrive info of the specific Zone

Called when an application is started

Update Record of the given Zone

Link to this section Functions

Link to this function

create_record(zone, rrset_attrs)
create_record(PowerDNSex.Models.Zone.t(), struct()) ::
  :ok | {:error, String.t()}

Create a new Record for the given Zone

Link to this function

create_zone(zone, server_name \\ "localhost")

Create a new Zone on PowerDNS

Link to this function

delete_record(zone, rrset_attrs)
delete_record(PowerDNSex.Models.Zone.t(), struct()) ::
  :ok | {:error, String.t()}

Delete specific Record of given Zone

Link to this function

delete_zone(zone, server_name \\ "localhost")
delete_zone(String.t(), String.t()) :: :ok | {:error, String.t()}

Delete specific Zone on PowerDNS

Link to this function

show_record(zone_name, rrset_attrs)
show_record(String.t(), struct()) :: :ok | {:error, String.t()}

Show / Retrive info of the specific Record of the given Zone name

Link to this function

show_zone(zone, server_name \\ "localhost")
show_zone(String.t(), String.t()) :: :ok | {:error, String.t()}

Show / Retrive info of the specific Zone

Called when an application is started.

This function is called when an application is started using Application.start/2 (and functions on top of that, such as Application.ensure_started/2). This function should start the top-level process of the application (which should be the top supervisor of the application's supervision tree if the application follows the OTP design principles around supervision).

start_type defines how the application is started:

  • :normal - used if the startup is a normal startup or if the application is distributed and is started on the current node because of a failover from another node and the application specification key :start_phases is :undefined.
  • {:takeover, node} - used if the application is distributed and is started on the current node because of a failover on the node node.
  • {:failover, node} - used if the application is distributed and is started on the current node because of a failover on node node, and the application specification key :start_phases is not :undefined.

start_args are the arguments passed to the application in the :mod specification key (e.g., mod: {MyApp, [:my_args]}).

This function should either return {:ok, pid} or {:ok, pid, state} if startup is successful. pid should be the PID of the top supervisor. state can be an arbitrary term, and if omitted will default to []; if the application is later stopped, state is passed to the stop/1 callback (see the documentation for the c:stop/1 callback for more information).

use Application provides no default implementation for the start/2 callback.

Callback implementation for Application.start/2.

Link to this function

update_record(zone, rrset_attrs)
update_record(PowerDNSex.Models.Zone.t(), struct()) ::
  :ok | {:error, String.t()}

Update Record of the given Zone