Skip to main content

octodns-nameocean

An octoDNS provider for NameOcean DNS. You keep your zones in YAML in git, review changes in pull requests, and sync them to NameOcean's nameservers (ns1–ns4.nameocean.net).

Install

pip install octodns octodns-nameocean

Configure

Create an API key with dns:read and dns:write, and limit it to your CI's IP address if you can. API keys need two-step login on the account.

# config/production.yaml
providers:
  config:
    class: octodns.provider.yaml.YamlProvider
    directory: ./zones
    default_ttl: 3600
  nameocean:
    class: octodns_nameocean.NameOceanProvider
    token: env/NAMEOCEAN_API_KEY

zones:
  example.com.:
    sources:
      - config
    targets:
      - nameocean

Start from what is live now:

export NAMEOCEAN_API_KEY=no_live_…
octodns-dump --config-file config/production.yaml --output-dir zones example.com. nameocean

Then plan and apply:

octodns-sync --config-file config/production.yaml          # shows the plan
octodns-sync --config-file config/production.yaml --doit   # applies it

How it works

  • The provider reads a zone with one GET /api/v1/dns/{zone}/export call. It writes the whole result with one POST /api/v1/dns/{zone}/apply. NameOcean applies it in a single transaction: if one record is refused, nothing changes.
  • The apply carries the zone serial from the read. If someone changed the zone in between (in the dashboard, or with another tool), NameOcean answers 409 and nothing is written. Run the sync again.
  • Records octoDNS can't describe stay exactly as they are and a sync never deletes them. These are HTTP REDIRECT records and ALIAS records below the apex. The provider also leaves alone records NameOcean manages itself, such as ACME challenges.
  • If the zone does not exist in your account, the provider creates it.

Supported records

A, AAAA, ALIAS (apex), CAA, CNAME, DS, HTTPS, MX, NS (subdomain delegation), SRV, SVCB, TXT.

NameOcean limits:

  • TTLs are 300, 900, 1800, 3600 or 86400 seconds (TXT records may also use 30). With the default strict_supports: true, any other TTL is an error. With strict_supports: false it is rounded to the nearest allowed value (the shorter one on a tie), with a warning.
  • One SRV record per name. With strict_supports: false, only the first value is kept.
  • CAA flags are 0 or 128, and TXT values can't contain double quotes.
  • The zone's own NS records are NameOcean's nameservers and are not managed (SUPPORTS_ROOT_NS = False).
  • Geo and dynamic records are not supported.

Options

Option Default
token — API key (env/NAMEOCEAN_API_KEY)
url https://nameocean.net/api/v1 API base URL
timeout 30 Seconds per request

Development

python -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/pytest

License

MIT

Metadata

Release files for octodns-nameocean 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octodns-nameocean 0.1.0
File Size Uploaded Provenance Actions
octodns_nameocean-0.1.0.tar.gz 10.0 kB With provenance Details for octodns_nameocean-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for octodns-nameocean 0.1.0
File Interpreter ABI Platform Actions
octodns_nameocean-0.1.0-py3-none-any.whl Python 3 none any Details for octodns_nameocean-0.1.0-py3-none-any.whl

Total release size: 17.9 kB

Release files / octodns_nameocean-0.1.0.tar.gz

Download URL octodns_nameocean-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7464787e78e87f186c2d4a1c440da8036581cfe77e6ed3a46c116167bc515417
BLAKE2b-256 checksum
How to use checksums
89b77e1b188ee18f6fec415ab7b8c27bc145bac630164ccacdce55b9d8f859a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / octodns_nameocean-0.1.0-py3-none-any.whl

Download URL octodns_nameocean-0.1.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc40f4dd0fa52bf5410683e21339b3f03de8808cf60a320131124524a9dba243
BLAKE2b-256 checksum
How to use checksums
ae7ae73df224e6d836b8e8d187c09eaf2e1d6bfa3189a0f96edfd8f463d4b626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for octodns-nameocean 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for octodns_nameocean-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page