Domain name resolution is configured after domain registration, so this tutorial assumes you already own a domain. Common domain registrars include Wanwang, Xinnet, West.cn, and international ones like GoDaddy.
The steps for setting A/MX records are mainly needed when building a mail server:
1. Domain Resolution:
Log in to your domain resolution control panel via the web, select create new, choose A record as the type, set the hostname to mail.yourdomain.com, and enter your server’s public IP address in the IP/host value field.
For example: mail.123.com A 1.1.1.1 The former is the subdomain you will use for email, the latter is the host IP address鈥攋ust like standard domain resolution.
2. Add MX Record:
For the MX record, select MX as the type, set the hostname to your domain (without any prefix), and the value to mail.123.com. The naming conventions may vary slightly depending on your domain registrar.
The basic format is as follows:
123.com mx mail.123