Gcore DNS

Gcore DNS

Development

The Gcore DNS offers a DNSaaS (DNS as a Service) API that enables users to efficiently manage their DNS zones and records. The API allows for easy integration with existing systems and offers comprehensive features such as domain management, record management, and DNS zone file generation. With a user-friendly interface, the website ensures hassle-free DNS management, eliminating the need for manual configurations. The platform provides reliable and fast DNS resolution services, ensuring uptime for your online services. Overall, the website provides an efficient and effective way to manage your DNS configurations.

Visit API

πŸ“š Documentation & Examples

Everything you need to integrate with Gcore DNS

πŸš€ Quick Start Examples

Gcore DNS Javascript Examplejavascript
// Gcore DNS API Example
const response = await fetch('https://docs.gcore.com/dns', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Exploring the GCore DNS API with JavaScript

Are you looking for a reliable DNS API to use in your web applications? Look no further than GCore DNS API. With its easy-to-use documentation and powerful features, you can start integrating DNS management into your applications in no time!

Getting Started

To get started with the GCore DNS API, you will first need to sign up for an account. Once you have an account, you can start using the API by making requests to the endpoint using JavaScript.

Make sure to use your unique secret API key in each request.

const api_key = "your_secret_api_key";

Examples

List all domains

To list all domains associated with your account, simply make a GET request to the /domains endpoint.

fetch("https://api.gcore.com/dns/v1/domains", {
    headers: {
        "Authorization": `Bearer ${api_key}`
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

Create a new domain

To create a new domain, make a POST request to the /domains endpoint with a JSON payload containing the domain name.

fetch("https://api.gcore.com/dns/v1/domains", {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer ${api_key}`
    },
    body: JSON.stringify({ name: "example.com" })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

Update a domain

To update a domain, make a PUT request to the /domains/:id endpoint with a JSON payload containing the updated information.

fetch("https://api.gcore.com/dns/v1/domains/123456", {
    method: "PUT",
    headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer ${api_key}`
    },
    body: JSON.stringify({ name: "new-example.com" })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

Delete a domain

To delete a domain, make a DELETE request to the /domains/:id endpoint.

fetch("https://api.gcore.com/dns/v1/domains/123456", {
    method: "DELETE",
    headers: {
        "Authorization": `Bearer ${api_key}`
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));

Conclusion

With the power of GCore DNS API and the simplicity of JavaScript, managing your DNS has never been easier. Try out some of these examples to see how you can integrate DNS management into your web applications!

πŸ“Š 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 9Jun 11Jun 13Jun 15Jun 17Jun 19Jun 21Jun 23Jun 25Jun 27Jun 29Jul 1Jul 3Jul 5Jul 804008001440Minutes
Online
Offline

Related APIs in Development