Skip to main content

Transfer domains from third-party DNS hosting

Last update:

Transfer domains from third-party DNS hosting to Selectel DNS hosting

(actual)

For your information

These are instructions for transferring domains from a third party provider to Selectel (actual) DNS hosting via importing a zone file using octoDNS.If your current DNS hosting does not provide the ability to download a zone file, but is supported in octoDNS, you can migrate your data directly without downloading a zone file. Learn more about supported providers and how to work with them in octoDNS documentation, example configuration for migration in the section Syncing between providers

.

  1. :::Install octoDNS
  2. .Import the zone file
  3. .Delegate the domain to DNS hosting (actual)

.

    1. Install octoDNS
    sudo apt-get update
    sudo apt-get install python3 virtualenv
    sudo apt-get install python3-pip
  1. macOSconfigCreate a directory to work with octoDNS with the folders zones и

    mkdir -p ~/octodns/{config,zones}
  2. :~/octodnsGo to the directory

    cd ~/octodns
  3. :

    virtualenv env
  4. Create a virtual environment to work with octoDNS:

    source env/bin/activate
  5. Activate the virtual environment:

    pip3 install octodns
  6. Install octoDNS in a virtual environment:Set Selectel provider

    pip3 install octodns_selectel
  7. for octoDNS:

pip3 list | grep octodns-selectel

Check that the Selectel provider has been installed correctly:

octodns_selectel 0.99.1

The response will show the installed version of the ISP, for example:

The minimum version of Selectel provider to work with DNS hosting (actual) is 0.99.1.

    1. import the zone file ~/octodns/zonesDownload the zone file to the directory
  1. .~/octodns/zonesGo to the directory

    cd ~/octodns/zones
  2. :

    mv <zone_file.txt> <example.com>.

    Change the name of the downloaded file to your domain name with a dot on the end:

    • <zone_file.txt>Specify:
    • <example.com> — name of the zone file you downloaded in step 1;
    • the name of your domain.~/octodns/configGo to the directory
cd ~/octodns/config
  1. :import_config.yamlCreate a configuration file

    nano import_config.yaml
  2. :

    ---
    processors:
    no-root-ns:
    class: octodns.processor.filter.IgnoreRootNsFilter
    providers:
    selectel:
    class: octodns_selectel.SelectelProvider
    token: <token>
    zonefile:
    class: octodns_bind.ZoneFileSource
    directory: ./zones
    check_origin: false

    zones:
    <example.com>.:
    sources:
    - zonefile
    processors:
    - no-root-ns
    targets:
    - selectel

    Write the configuration for importing a zone to a file:

    • <token>Specify: — your Keystone token
    • <example.com> for the project to which you want to transfer the data;
    • the name of the domain (zone) to be transferred.~/octodnsGo to the directory
cd ~/octodns
  1. :

    octodns-sync --config-file=./config/import_config.yaml --doit
  2. Start the import:В control panels** go to DNS → **Domain zones

  3. .

  4. Make sure that you are in the project to which you have moved the data. To do this, open the projects menu (name of the current project) and select the desired project.
    Verify that the zone appears in the zone list and that its page shows the transferred records.
    Resource records of the same type are displayed as a group of records.

    • NS and SOA resource records are not migrated, they will be automatically created in the DNS hosting (actual) with default values:a.ns.selectel.ru.NS — b.ns.selectel.ru., c.ns.selectel.ru., d.ns.selectel.ru.
    • , a.ns.selectel.ru. support.selectel.ru. <zone_serial_number> 10800 3600 604800 60SOA IS. <zone_serial_number>where
    • zone serial number, which changes when the zone is updated and signals to the caching servers that records need to be cached again.If the data has been migrated incorrectly or incompletely, file a ticket

. Domains that only have NS and SOA records will not be migrated.

    1. Delegate domain to DNS hosting (actual)
  1. Go to the control panel of the domain registrar where your domain is registered.a.ns.selectel.ruIn the NS records, replace the values with the DNS hosting (actual) NS servers: b.ns.selectel.ru, c.ns.selectel.ru, d.ns.selectel.ru,
  2. . Each server must be listed in a separate entry.
  3. Wait for the migrated resource records to propagate to the DNS servers. Propagation can take up to 72 hours.Optional: check resource recordsa.ns.selectel.ru. If after 72 hours the resource records have not appeared on authoritative DNS hosting servers: b.ns.selectel.ru, c.ns.selectel.ru, d.ns.selectel.ru, , file a ticket