Here's my setup (on a VPS):
- 1 host running Linux (hostname: server1.example.com).
- and 2 ip addresses: 18.104.22.168 and 22.214.171.124 (for that host.)
What I would like to do is to run a web server on the first address and a mail server on the second address having 2 A records in the DNS zones file, something along this lines (pardon my syntax):
example.com. IN SOA ......... ......... ;mail server mail IN A 126.96.36.199 @ IN MX 10 mail ;web server server1 IN A 188.8.131.52 www IN CNAME server1
But, if I have understood correctly, this is not possible because the two addresses are actually pointing to the same host (server1). Am I wrong?
The point is, I don't know what to do with the second address, so I thought to run the mail server on it, but then I discovered that it was not possible (or so I have understood)
Is there a solution or I should just forget all about it and keep the spare address for... nothing?