Mobile app version of vmapp.org
Login or Join
Heady270

: 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

@Heady270

Posted in: #Dns #Email

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme