M
M
mitaichik2019-07-16 14:02:41
Domain Name System
mitaichik, 2019-07-16 14:02:41

Is it possible to register the port of the mail server in DNS?

There are 2 domains hosted on the same server, on the same ip.
You need to make sure that the MX record of one host leads to one port for a given ip, the MX record of another leads to another.
Is it possible to do so?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
2
20ivs, 2019-07-16
@mitaichik

no and no reason. the mail server itself handles emails for both domains and won't get confused, don't worry.

A
aleks-th, 2019-07-16
@aleks-th

In DNS ports? absolutely not.
---
By the name of the domain, sort it out and that's it.
Why invent a bicycle where it was invented a long time ago.

C
CityCat4, 2019-07-16
@CityCat4

You can't do that.
MX records lead nowhere. MX records set the priority of the specified server in the list of candidate servers for receiving mail. Very often there is only one such record, but if there are several, then the mail will be given to the one pointed to by the MX record with the lowest priority.
Maybe it's worth reading about "virtual hosts" before you start inventing nonsense?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question