Email This List Email This List Print This List Print This List

Con­fir­gur­ing your domain for Ajenti Con­trol Pan­el web­host­ing

So far, https://panel.your_domain_name:8000/ opens the Ajenti con­trol pan­el. Before we can setup your web­site at http://your_domain_name/ and con­fig­ure email addresses for your domain, there are a few DNS modi­fic­a­tions that need to be made.

We need to add 2 records to make sure your web­site and email addresses work prop­erly. Go tocloud​.digita​locean​.com/​d​o​m​a​i​ns/ and click on the blue View but­ton (it looks like a mag­ni­fy­ing glass) for the domain you con­figured when set­ting up the Ajenti con­trol pan­el and Ajenti V.

Click the blue Add Record but­ton, and select MX. In the Enter Host­name text box, enter @. In the Enter Pri­or­ity text box, enter 10. Then click the blue Cre­ate MX Record but­ton.

If you are con­fig­ur­ing the same domain that has the Ajenti con­trol pan­el on it, you also need to add a TXT record. For instance, if you access Ajenti on pan­el.example​.com you should add this record. If you access it on pan­el.oth​er​do​main​.com, you do not need to add the TXT record.

To add the TXT record, click the blue Add Record but­ton again, and select TXT. In the Enter Name text box, enter @. In the Enter Text text box, paste this in: v=spf1 a ip4:your_server_ip ~all (repla­cing the IP with your Droplet’s IP). Click the Cre­ate TXT Record but­ton.

Your domain DNS set­tings should now look like this. Note that the domain I used was jonaharagon.me. Your domain will vary.

Example DNS Settings

Your zone file will then look some­thing like this:

$ORIGIN example.com.
$TTL 1800
example.com. IN SOA ns1.digitalocean.com. hostmaster.example.com. 1434177047 10800 3600 604800 1800
example.com. 1800 IN NS ns1.digitalocean.com.
example.com. 1800 IN NS ns2.digitalocean.com.
example.com. 1800 IN NS ns3.digitalocean.com.
example.com. 1800 IN A 111.111.111.111
example.com. 1800 IN MX 10 example.com.
example.com. 1800 IN TXT v=spf1 a ip4:111.111.111.111 ~all
panel.example.com. 1800 IN A 111.111.111.111

Related Post

admin has written 133 articles