====== How to edit a domain's zone file ====== ~~NOTOC~~ To add a resource record (like a CNAME or A record) to your domain name's zone file, you need to follow these steps. ===== 1. Go to the domain's management page ===== Go to your domain's management page and look down to the "Zone files" area that is on the bottom right-hand side of the page. ===== 2. Create a copy of the zone file (if necessary) ===== ==== If zone file is not editable ==== === Click "Create a copy": === {{en:dns:zone:dns_zone_1.png|copy the zone}} === Rename the zone file (if desired) and click Submit: === {{en:dns:zone:dns_zone_copy.png?640|rename and assign}} You will see a message that says "The zone file has been copied and associated to your domain": {{en:dns:zone:dns_zone_msg.png|}} ===== 3. Click "Edit the zone" ===== Now, at the bottom of the page under "Zone files" you will see a link to "Edit the zone". Click the link: {{ en:dns:zone:zone-files.jpg?nolink |}} ==== Create a new version if necessary ==== If the copy you just made of the original zone file was a "public" zone (i.e. Gandi default), it will already been activated. You cannot edit an active zone file, so you must click "Create a new version." {{en:dns:zone:dns_zone_version.png?635|}} ===== 4. Make your changes ===== You can now make changes to the new version in "[[:en:dns:zone:normal|normal]]" or "[[:en:dns:zone:expert|expert]]" mode by selecting from the dropdown menu on the right-hand side of the page. It looks like this: {{ en:domains:management:zone:edit_mode.png?150&nolink |}} Tips on the syntax of each resource record type can be found on the following pages: * [[en:dns:zone:a-record]] * [[en:dns:zone:cname-record]] * [[en:dns:zone:mx-record]] * [[en:dns:zone:txt-record]] * [[en:dns:zone:ns-record|NS records]] * [[en:dns:zone:spf-record|SPF records]] * [[en:dns:zone:srv-record|SRV records]] ===== 5. Activate ===== Once you are done making your changes, click "Use this version": {{:en:dns:zone:zone-usethisversion1-en.png?nolink}} You will be prompted to confirm: {{en:dns:zone:dns_zone_activate_confirm.png?325|}} And should then receive confirmation: {{en:dns:zone:dns_zone_activate_confirmed.png?325|}} Note that **changes to your zone file will take from several minutes to several hours to propagate!** ===== See also =====