📣 Get more control and flexibility in managing your domain portfolio. Export your DNSimple domain names list in a .CSV file 👉 Read more

Manage all your domains using C#

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

A quick tour of our CSharp API in under 9 minutes.Pointing up arrow

Pointing straight arrow

A quick tour of our C# API in under 9 minutes.

Fast and easy to use.

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

Never regretted signing up long ago.

Marius Maximus avatar Marius Maximus, DevOps

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

Rithika G. avatar Rithika G., Cloud Engineer

A dependable service with amazing technical support.

Valters J. avatar Valters J., DevOps Engineer

Best DNS Hosting Company by far.

Dorian Kind avatar Dorian Kind, Director of Data & Technologies

Case studies

Learn how our customers use DNSimple to automate their companies' domain management — from registering domains and adding zone records, to reselling domains and managing cloud infrastructure.

Developer tips

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

Test domain registration and issuing SSL certificates at no charge. 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.cs
// Print my domains with expiration date and associated SSL certificate if any.

var domains = client.Domains.ListDomains(accountId).Data;
foreach (var domain in domains)
{
 Console.Write("- {0}: {1}", domain.Name, domain.State);
    if (domain.State.Equals("registered"))
    {
        Console.Write("(expires on: {0})\n", domain.ExpiresAt);
    }

    var certificates = client.Certificates.ListCertificates(accountId, domain.Name).Data;

    if (!certificates.Any()) continue;
    foreach (var certificate in certificates)
    {
        Console.Write("    - {0}: {1} (years till expiry: {2} ",
            certificate.CommonName, certificate.State, certificate.Years);
        if ((bool) certificate.AutoRenew)
        {
            Console.Write("but will auto renew");
        }
        Console.Write(")");
    }
}
          

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

In the script below, we've created a template to apply to any domain after registration.

apply_dns_template.cs
// Point a domain to hosting after registration
var template = client.Templates.CreateTemplate(accountId, new Template
{
 Name = "Domain registration template",
    Sid = "after-domain-registration-template",
    Description = "Point a domain to hosting after registration",
}).Data;

client.Templates.CreateTemplateRecord(accountId, template.Sid, new TemplateRecord
{
    Name = "a",
    Content = "192.168.1.1",
    Type = "A",
    Ttl = 600,
});

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

// Apply the template to the domain
client.Templates.applyTemplate(accountId, template.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 CSharp.

Manage your domains from CSharp.

Start your free 30-day trial

Photo by Christina @ wocintechchat.com on Unsplash