1Reg Docs
APIWebhook
APIWebhook
  1. DNS
  • 📝 How to start?
  • Account
    • payments
      • Payments history
    • Account details
  • Domains
    • DNS
      • Bulk get dns records
        POST
      • Get dns records
        GET
      • Bulk update dns
        PUT
    • Domains list
      GET
    • Bulk query domains
      POST
    • Register Domain
      POST
APIWebhook
APIWebhook
  1. DNS

Bulk update dns

Developing
Prod Env
https://api.onereg.org/v1
Prod Env
https://api.onereg.org/v1
PUT
/domains/dns
Last modified:2025-11-13 20:26:33

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Example
[
    {
        "domain": "example.com",
        "type": "custom_ns",
        "nameservers": [
            "ns1.example.com",
            "ns2.example.com"
        ]
    }
]

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.onereg.org/v1/domains/dns' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "domain": "example.com",
        "type": "custom_ns",
        "nameservers": [
            "ns1.example.com",
            "ns2.example.com"
        ]
    }
]'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-11-13 20:26:33
Previous
Get dns records
Next
Domains list
Built with