---
updatedAt: 2026-06-08T17:22:42.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Import a domain

Imports a domain zone from a remote nameserver. Your nameserver must allow zone transfers (AXFR) from the following IPs:

- 96.126.114.97
- 96.126.114.98
- 2600:3c00::5e
- 2600:3c00::5f


**Permissions and scopes**

To call this operation, you need the following:

- **Identity and access permissions**. Your user needs these roles assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).
  - Roles: `domain_admin`
- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `domains:read_write`


**CLI**

```shell
linode-cli domains import --domain example.com --remote_nameserver examplenameserver.com
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "natgateways:read_only": "Allows access to Get NAT Gateways on your account.",
              "natgateways:read_write": "Allows access to all NAT Gateway endpoints.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Domains",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/domains/import": {
      "post": {
        "description": "Imports a domain zone from a remote nameserver. Your nameserver must allow zone transfers (AXFR) from the following IPs:\n\n- 96.126.114.97\n- 96.126.114.98\n- 2600:3c00::5e\n- 2600:3c00::5f\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **Identity and access permissions**. Your user needs these roles assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).\n  - Roles: `domain_admin`\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `domains:read_write`\n\n\n**CLI**\n\n```shell\nlinode-cli domains import --domain example.com --remote_nameserver examplenameserver.com\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/post-import-domain"
        },
        "operationId": "post-import-domain",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "domain": "example.com",
                "remote_nameserver": "examplenameserver.com"
              },
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "domain": {
                    "description": "The domain to import.",
                    "example": "example.com",
                    "type": "string"
                  },
                  "remote_nameserver": {
                    "description": "The remote nameserver that allows zone transfers (AXFR).",
                    "example": "examplenameserver.com",
                    "type": "string"
                  }
                },
                "required": [
                  "domain",
                  "remote_nameserver"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/added-post-import-domain.yaml"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "axfr_ips": [],
                  "description": null,
                  "domain": "example.org",
                  "expire_sec": 300,
                  "id": 1234,
                  "master_ips": [],
                  "refresh_sec": 300,
                  "retry_sec": 300,
                  "soa_email": "admin@example.org",
                  "status": "active",
                  "tags": [
                    "example tag",
                    "another example"
                  ],
                  "ttl_sec": 300,
                  "type": "master"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "A domain zonefile in our DNS system.  You must own the domain name and tell your registrar to use Linode's nameservers in order for a domain in our system to be treated as authoritative.",
                  "properties": {
                    "axfr_ips": {
                      "description": "The list of IPs that may perform a zone transfer for this domain. The total combined length of all data within this array cannot exceed 1000 characters.\n\n> 📘\n>\n> This is potentially dangerous, and should be set to an empty list unless you intend to use it.",
                      "example": [],
                      "items": {
                        "format": "ip",
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "description": {
                      "description": "A description for this domain. This is for display purposes only.",
                      "example": null,
                      "maxLength": 253,
                      "minLength": 1,
                      "nullable": true,
                      "type": "string"
                    },
                    "domain": {
                      "description": "__Filterable__ The domain this domain represents. domain labels cannot be longer than 63 characters and must conform to [RFC1035](https://tools.ietf.org/html/rfc1035). domains must be unique on Linode's platform, including across different Linode accounts; there cannot be two domains representing the same domain.",
                      "example": "example.org",
                      "maxLength": 253,
                      "minLength": 1,
                      "pattern": "^(\\*\\.)?([a-zA-Z0-9-_]{1,63}\\.)+([a-zA-Z]{2,3}\\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+)$",
                      "type": "string",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 2,
                      "x-linode-filterable": true
                    },
                    "expire_sec": {
                      "default": 0,
                      "description": "The amount of time in seconds that may pass before this domain is no longer authoritative.\n\n- Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.\n\n- Any other value is rounded up to the nearest valid value.\n\n- A value of 0 is equivalent to the default value of 1209600.",
                      "example": 300,
                      "type": "integer"
                    },
                    "group": {
                      "deprecated": true,
                      "description": "__Deprecated__, __Filterable__ The group this domain belongs to.  This is for display purposes only.",
                      "example": null,
                      "maxLength": 50,
                      "minLength": 1,
                      "nullable": true,
                      "type": "string",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ],
                        "status": "DEPRECATED"
                      },
                      "x-linode-filterable": true
                    },
                    "id": {
                      "description": "__Read-only__ This domain's unique ID.",
                      "example": 1234,
                      "readOnly": true,
                      "type": "integer",
                      "x-linode-cli-display": 1
                    },
                    "master_ips": {
                      "description": "The IP addresses representing the master DNS for this domain. At least one value is required for `type` slave domains. The total combined length of all data within this array cannot exceed 1000 characters.",
                      "example": [],
                      "items": {
                        "format": "ip",
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "refresh_sec": {
                      "default": 0,
                      "description": "The amount of time in seconds before this domain should be refreshed.\n\n- Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.\n\n- Any other value is rounded up to the nearest valid value.\n\n- A value of 0 is equivalent to the default value of 14400.",
                      "example": 300,
                      "type": "integer"
                    },
                    "retry_sec": {
                      "default": 0,
                      "description": "The interval, in seconds, at which a failed refresh should be retried.\n\n- Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.\n\n- Any other value is rounded up to the nearest valid value.\n\n- A value of 0 is equivalent to the default value of 14400.",
                      "example": 300,
                      "type": "integer"
                    },
                    "soa_email": {
                      "description": "Start of Authority email address. This is required for `type` master domains.",
                      "example": "admin@example.org",
                      "format": "email",
                      "type": "string",
                      "x-linode-cli-display": 5
                    },
                    "status": {
                      "default": "active",
                      "description": "Indicates whether this domain is currently being rendered, either `active` or `disabled`.",
                      "enum": [
                        "disabled",
                        "active"
                      ],
                      "example": "active",
                      "type": "string",
                      "x-linode-cli-color": {
                        "active": "green",
                        "default_": "red",
                        "disabled": "yellow",
                        "edit_mode": "yellow"
                      },
                      "x-linode-cli-display": 4
                    },
                    "tags": {
                      "description": "__Filterable__ An array of tags applied to this object.  Tags are for organizational purposes only.",
                      "example": [
                        "example tag",
                        "another example"
                      ],
                      "items": {
                        "type": "string"
                      },
                      "type": "array",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-filterable": true
                    },
                    "ttl_sec": {
                      "default": 0,
                      "description": "\"Time to Live\" - the amount of time in seconds that this domain's records may be cached by resolvers or other domain servers.\n\n- Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.\n\n- Any other value is rounded up to the nearest valid value.\n\n- A value of 0 is equivalent to the default value of 86400.",
                      "example": 300,
                      "type": "integer"
                    },
                    "type": {
                      "description": "Whether this domain represents the authoritative source of information for the domain it describes (`master`), or whether it is a read-only copy of a master (`slave`).",
                      "enum": [
                        "master",
                        "slave"
                      ],
                      "example": "master",
                      "type": "string",
                      "x-linode-cli-display": 3
                    }
                  },
                  "title": "Domain",
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/domain.yaml"
                  }
                }
              }
            },
            "description": "A single Domain in Linode's DNS Manager."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](ref:post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](ref:errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "domains:read_write"
            ]
          }
        ],
        "summary": "Import a domain",
        "tags": [
          "Domains"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli domains import --domain example.com --remote_nameserver examplenameserver.com",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            }
          ]
        },
        "x-linode-cli-action": "import",
        "x-linode-cli-command": "domains",
        "x-linode-grant": "read_write",
        "x-linode-iam": [
          {
            "roles": [
              "domain_admin"
            ]
          }
        ]
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/domains-import.yaml",
        "path-info": "/{apiVersion}/domains/import"
      },
      "x-linode-cli-command": "domains"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Use these operations to create and manage domains on your account.",
      "name": "Domains"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "domains.yaml"
  },
  "x-readme": {
    "apply-tag-changes": true,
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [Create a domain](https://techdocs.akamai.com/linode-api/reference/post-domain.md)
* [List domains](https://techdocs.akamai.com/linode-api/reference/get-domains.md)
* [Get a domain](https://techdocs.akamai.com/linode-api/reference/get-domain.md)
* [Update a domain](https://techdocs.akamai.com/linode-api/reference/put-domain.md)
* [Delete a domain](https://techdocs.akamai.com/linode-api/reference/delete-domain.md)
* [Clone a domain](https://techdocs.akamai.com/linode-api/reference/post-clone-domain.md)