🔒 Protect your DNS assets. Secure your account with WebAuthn & FIDO2 security keys. 👀 Read more

Manage all your domains using Go

We've got the best API to manage your domain portfolio while saving time and money.

A quick tour of our Go API in under 8 minutes.

A quick tour of our Go API in under 8 minutes.

Fast and easy to use.

Quickly check domain availability, add a DNS record, and request an SSL certificate directly from Go.

Never regretted signing up long ago.

Marius Maximus, DevOps

Configuring server-wide DNS template is made simple for our Enterprise Network with DNSimple.

Rithika G., Cloud Engineer

A dependable service with amazing technical support.

Valters J., DevOps Engineer

Best DNS Hosting Company by far.

Dorian Kind, Director of Data & Technologies

Case studies

Our customers automate their domain management in multiple ways; from registering domains and adding zone records for their business, reselling domains to managing their cloud infrastructure.

Developer tips

Open a free account in our Sandbox environment. Write, test, and verify your code before you move to production.

Register domains and issue SSL certificates at no change. Domains registered in Sandbox do not resolve and SSL certificates should not be installed in any production environment.

Use our testing credit card to select a plan that matches the features that you'd like to test.

Follow this guide to obtain your token for your API calls.

Create an account in Sandbox

Start by writing small scripts that explore how you can use the API. Writing a custom report is a good way to get exposure to different API endpoints and how you can combine those.

custom_report.go
// Print my domains with expiration date, and associated SSL certificate if any.

domains, _ := client.Domains.ListDomains(
 context.Background(),
   accountID,
   nil,
)

for _, domain := range domains.Data {
   fmt.Printf("- %s: %s", domain.Name, domain.State)
   if domain.State == "registered" {
      fmt.Printf(" (expires on: %s)", domain.ExpiresAt)
   }
   certificates, _ := client.Certificates.ListCertificates(context.Background(), accountID, domain.Name, nil)
   if len(certificates.Data) > 0 {
      for _, certificate := range certificates.Data {
         fmt.Printf("    -%s: %s (years till expiry: %d",
            certificate.CommonName, certificate.State, certificate.Years)
         if certificate.AutoRenew {
            fmt.Print("but will auto-renew")
         }
         fmt.Print(")")
      }
   }
}
          

Managing domains with similar configurations can be error prone. Use the Go API to automate DNS changes accross multiple domains with DNS templates.

In the script below, we create a template to apply to any domain after registration.

apply_dns_template.go
// Point a domain to hosting after registration

attributes := Template{
    Name:        "Domain registration template",
    SID:         "after-domain-registration-template",
    Description: "Point a domain to hosting after registration",
 }
 template, _ := client.Templates.CreateTemplate(context.Background(), accountID, attributes)
 record := TemplateRecord{
    Name: "a",
    Type: "A",
    Content: "192.168.1.1",
    TTL: 600,
 }
 client.Templates.CreateTemplateRecord(context.Background(), accountID, template.Data.SID, record)

// To keep this example short, registering the domain is omited.

// Apply the template to the domain
client.Templates.ApplyTemplate(accountId, template.Data.SID, domain)
          

Reliable DNS at the right price

If you manage 100+ domains, get in touch.
We offer flexible plans with adjusted rates and discounts for Enterprise and Resellers.

Integrate in minutes with our API

Update DNS records, request SSL certificates, and transfer or register new domains from Go.

Manage your domains from Go.

Photo by Christina @ wocintechchat.com on Unsplash