Update zone file for a domain via DNS control
Added: 10.03.2014 23:26:29 Last updated: 09.01.2017 20:22:02
This guide details how to proceed to make changes to the zone file for a domain which uses our name servers via DNS control. The guide assumes that you have already logged in to the client portal for your customer number.
Click on "Domains", as shown in the screenshot below.
Find the domain (dittdomene.net in our example) and click on "DNS control".
On this page the whole zone for the domain is listed, and you have access to add new records, change current ones, as well as delete records/listings.
- Under "HOST" your domain name or subdomains are always listed.
- There are many different types of DNS records (see the end of this guide for an overview), and we see here that this is an "A" record.
- Under "DATA" the address (IP) of the server the domain should point towards is listed. In this case dittdomene.net is pointing towards our servers IP 22.214.171.124. If you want your domain to point towards an external supplier, this is the record you have to change.
- Click here to delete the whole record.
- Click here to change an existing record/listing (see the next step for details).
- Click to expand the record, to make changes.
- Change the IP addresse the domain should point towards under the "Data" field.
- Click "Update" to save and start using the changes.
When you open DNS control for your domain, you will see "Add new record" over the records in the zone file. In this example we will add a record for a subdomain for dittdomene.net.
- Type the name of the subdomain under "HOST", in our example this is subdomene1.
- Choose which type of record this should be. Since we are pointing towards an IP addresse we will choose an "A" pointer.
- Type the IP addresse the subdomain should point towards.
- Type desired TTL for the record. TTL = Time To Live, and define how often a record is updated in local DNS and is indicated in seconds. 14 400 is a standard value, and we do not recommend setting this lower than 3600 (1 hour).
The new record we have added will be shown like in the picture below.
If you try to add a new record, but it does not show up under DNS control, you have made a mistake when writing it. You should always check that the listing is correct after adding a new and/or made changes in existing listings. It could also be a good idea to compare existing records when adding a new one.
Explanation of types of records:
Every line in DNS control makes up a record. There are several kinds of records. The different records that can be used in DNS control are given with an explanation below.
TTL is Time To Live and specifies how long the record can stay saved on computers online before the record must be checked for updated data. The time is specified in second. 14400 (4 hours) is the standard value for TTL in records in zone files on our name servers.
The most common type of record. Points names towards a 32-bit IPv4 address.Example
We want www2.dittdomene2.com to point towards IP 126.96.36.199. We add the following data and record these:
Alias of one name to another.Example
We want xxx2.dittdomene2.com to point towards www2.dittdomene2.com. We add the following data and record these:
Notice how there is a dot at the end of the data field. This has to be present for the record to be valid.
Specifies where email for the domain should be delivered.Example
We want all email to dittdomene2.com to be delivered to server by the name mail.dittdomene2.com. We add the following data and record these:
Notice how there is a dot at the end of the data field. This has to be present for the record to be valid. The field Priority specifies where it should try to deliver email first if there are more than one MX record. Lowest value is tried first.
|AAAA||Points name towards a 128-bit IPv6 address.|
We want www3.dittdomene2.com to point towards IPv6 2001:db8:1f70::999:de8:7648:6e8. We add the following data and record these:
|NS||Delegates the zone to make use of set authorative name server.|
Our zones are set up with the name servers ns1.proisp.no and ns2.proisp.no. If we add for ns1.proisp.no, the following data will be added:
|TXT||record originally made for human readable data, but has gradually gone over to computer readable data. Used for SPF (which has become its own record) and DomainKeys, among other things.|
We want to add a certain DomainKey. We add the following data and record these:
Notice the quotation marks around the text in the Data field. These has to be present for the record to be valid.
|SRV||Generalized server localization record used for newer services instead of protocol specific records like MX.|
Look here for example and explanation of SRV records.
We have now been through how to make changes in the zone file for a domain name via DNS control.