: What should the DNS settings be for my domain and mail server? I am trying to configure my own mail server. My domain name is: example.net I've created a subdomain (a virtual host for Apache
I am trying to configure my own mail server.
My domain name is: example.net
I've created a subdomain (a virtual host for Apache 2): mail.example.net
My hostname is: server01 (the name of the server I get using hostname in Ubuntu's command line).
I only have one server with several virtual host: example.net (website) and mail.example.net (mail).
My record for the DNS zone file for the domain example.net should be:
mail 10800 IN A 123.123.123.123 @ 10800 IN MX 10 server01.mail.exemple.net.
So my zone is:
@ 10800 IN A 123.123.123.123
mail 10800 IN A 123.123.123.123
server01 10800 IN A 123.123.123.123
www 10800 IN A 123.123.123.123 @ 10800 IN MX 10 server01.mail.example.net.
or:
mail 10800 IN A 123.123.123.123 @ 10800 IN MX 10 mail.example.net.
So my zone is:
@ 10800 IN A 123.123.123.123
mail 10800 IN A 123.123.123.123
server01 10800 IN A 123.123.123.123
www 10800 IN A 123.123.123.123 @ 10800 IN MX 10 mail.example.net.
More posts by @Heady270
1 Comments
Sorted by latest first Latest Oldest Best
There are two options:
Create an A record for example.net with IP address 123.123.123.123.
Create a CNAME record pointing example.net to example.net
Create a CNAME record pointing mail.example.net to example.net
Create a MX record pointing to mail.example.net
But since I noticed you are using the same IP addresses in your example, if you are intending to run your mail server and web server on the same machine, this becomes much simpler.
Create an A record for example.net with IP address 123.123.123.123.
Create a CNAME record pointing example.net to example.net
Create a MX record pointing to example.net
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.