Article ID: 4123, created on Mar 24, 2008, last review on May 8, 2014

  • Applies to:
  • Sphera

Symptoms

Resolution

This procedure describes how to change name servers and to add additional name servers to DNS zone.

This functionality can be achieved by using the DNS template in DCM for new VDSs.

Replace the highlighted template value "NS1.Domain.com." with the name servers that you want to add. It is very important that template value ends with a period (.).

1. For existing VDSs - In order to change SOA record and to add NS records the following commands should be sent:

<API>

<CMD type="detail" cmd="set" keys_path="sphera\accounts\<VDS_name>\dns\details\1" rec_type="NS" servers_name="ns1.domain.net." /> <CMD type="detail" cmd="add" keys_path="sphera\accounts\<VDS_name>\dns\details\0" rec_type="A" name="ns1.domain.net." address="xxx.xxx.xxx.xxx" hidden ="true"/> <CMD type="detail" cmd="add" keys_path="sphera\accounts\<VDS_name>\dns\details\0" rec_type="A" name="ns2.domain.net." address="xxx.xxx.xxx.xxx" hidden ="true"/> <CMD type="detail" cmd="add" keys_path="sphera\accounts\<VDS_name>\dns\details\0" rec_type="NS" servers_name="ns2.domain.net." />
</API>

Note that <VDS name> should be replaced by the proper VDS name.

2. In order to change SD DNS template, the following commands should be executed:

<API>
<CMD servers_name="ns1.domain.net." rec_type="NS" keys_path="sphera\dns\details\1" cmd="set" type="detail" />
<CMD rec_type="A" keys_path="sphera\dns\details\0"
cmd="add" type="detail" hidden="true" address="xxx.xxx.xxx.xxx" name="ns1.domain.net." />
<CMD rec_type="A" keys_path="sphera\dns\details\0"
cmd="add" type="detail" hidden="true" address="xxx.xxx.xxx.xxx" name="ns2.domain.net." />
<CMD servers_name="ns2.domain.net." rec_type="NS" keys_path="sphera\dns\details\0"
cmd="add" type="detail" />
</API>

3. As for the MX record, the following should be done

* In order to adjust MX record in template, please, arrange manually the following file:

%windir%\system32\dns\template.hostdir.dns.

Replace there line: IN MX 10 mail.domain.com. ;4

With the following:

IN MX 10 mail.@@DOMAIN@@. ;4

* For existing VDSs please send the following command replacing the :

<API>
<CMD cmd="del"
keys_path="<VDS name>\dns\details\4"
is_gui="true"
rec_type="MX"
type="detail"
/>

<CMD cmd="add"
keys_path="<VDS name>\dns\details\0"
preference="10"
mail="mail"
rec_type="MX"
type="detail"
/>
</API>

5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF