dnsimple v1.1.1 Dnsimple.Registrar

Provides functions to interact with the registrar endpoints.

See:

Summary

Functions

Reverts all the operations performed to delegate to vanity name servers and delegates the domain back to DNSimple’s name servers (if DNSimple is the registrar of the domain)

Checks if a domain name is available to be registered and whether premium pricing applies to that domain name

Returns the name servers the domain is delegating to

Requests the transfer of a domain out of DNSimple

Functions

change_domain_delegation(client, account_id, domain_name, name_servers, options \\ [])

Specs

change_domain_delegation(Dnsimple.Client.t, integer | String.t, String.t, List.t, Keyword.t) :: Dnsimple.Response.t

Changes the domain’s name servers and returns them.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.change_domain_delegation(client, account_id = 1010, domain_id = "example.com", [
  "ns1.provider.com",
  "ns2.provider.com",
  "ns3.provider.com",
  "ns4.provider.com",
])
change_domain_delegation_from_vanity(client, account_id, domain_name, options \\ [])

Specs

change_domain_delegation_from_vanity(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Reverts all the operations performed to delegate to vanity name servers and delegates the domain back to DNSimple’s name servers (if DNSimple is the registrar of the domain).

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.change_domain_delegation_from_vanity(client, account_id = 1010, domain_id = "example.com")
change_domain_delegation_to_vanity(client, account_id, domain_name, name_servers, options \\ [])

Specs

change_domain_delegation_to_vanity(Dnsimple.Client.t, integer | String.t, String.t, List.t, Keyword.t) :: Dnsimple.Response.t

Delegates the domain to vanity name servers.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.change_domain_delegation_to_vanity(client, account_id = 1010, domain_id = "example.com", [
  "ns1.example.com",
  "ns2.example.com",
  "ns3.example.com",
  "ns4.example.com",
])
check_domain(client, account_id, domain_name, options \\ [])

Checks if a domain name is available to be registered and whether premium pricing applies to that domain name.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.check_domain(client, account_id = 1010, domain_id = "example.com")
disable_domain_auto_renewal(client, account_id, domain_name, options \\ [])

Specs

disable_domain_auto_renewal(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Disables auto-renewal for the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.disable_domain_auto_renewal(client, account_id = 1010, domain_id = "example.com")
disable_whois_privacy(client, account_id, domain_name, options \\ [])

Specs

disable_whois_privacy(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Disables whois privacy for the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.disable_whois_privacy(client, account_id = 1010, domain_id = "example.com")
enable_domain_auto_renewal(client, account_id, domain_name, options \\ [])

Specs

enable_domain_auto_renewal(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Enables auto-renewal for the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.enable_domain_auto_renewal(client, account_id = 1010, domain_id = "example.com")
enable_whois_privacy(client, account_id, domain_name, options \\ [])

Specs

enable_whois_privacy(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Enables whois privacy for the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.enable_whois_privacy(client, account_id = 1010, domain_id = "example.com")
get_domain_delegation(client, account_id, domain_name, options \\ [])

Specs

get_domain_delegation(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Returns the name servers the domain is delegating to.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.get_domain_delegation(client, account_id = 1010, domain_id = "example.com")
get_domain_premium_price(client, account_id, domain_name, params \\ %{}, options \\ [])

Specs

Gets the premium price for a domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.get_domain_premium_price(client, account_id = "1010", domain_id = "example.com")
{:ok, response} = Dnsimple.Registrar.get_domain_premium_price(client, account_id = "1010", domain_id = "example.com", %{action: "registration"})
{:ok, response} = Dnsimple.Registrar.get_domain_premium_price(client, account_id = "1010", domain_id = "example.com", %{action: "renewal"})
{:ok, response} = Dnsimple.Registrar.get_domain_premium_price(client, account_id = "1010", domain_id = "example.com", %{action: "transfer"})
get_whois_privacy(client, account_id, domain_name, options \\ [])

Specs

get_whois_privacy(Dnsimple.Client.t, integer | String.t, String.t, Keyword.t) :: Dnsimple.Response.t

Returns the whois privacy of the domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.get_whois_privacy(client, account_id = 1010, domain_id = "example.com")
register_domain(client, account_id, domain_name, attributes \\ [], options \\ [])

Registers a domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.register_domain(client, account_id = 1010, domain_id = "example.com", %{
  registrant_id: 1,
  privacy: true,
  auto_renew: false,
})
renew_domain(client, account_id, domain_name, attributes \\ [], options \\ [])

Renews a domain.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.renew_domain(client, account_id = 1010, domain_id = "example.com")
{:ok, response} = Dnsimple.Registrar.renew_domain(client, account_id = 1010, domain_id = "example.com", %{period: 5})
transfer_domain(client, account_id, domain_name, attributes \\ [], options \\ [])

Starts the transfer of a domain to DNSimple.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.transfer_domain(client, account_id = 1010, domain_id = "example.com", %{
  registrant_id: 1,
  auth_code: "XXXXXXXXX",
  privacy: true,
  auto_renew: true,
})
transfer_domain_out(client, account_id, domain_name, options \\ [])

Requests the transfer of a domain out of DNSimple.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Registrar.transfer_domain_out(client, account_id = 1010, domain_id = "example.com")