Web lists-archives.com

Re: Multiple host names for a single server?

On Mon, 7 Jan 2019 10:13:03 -0600
Tom Browder <tom.browder@xxxxxxxxx> wrote:

> I would like to use a single server for multiple remote services
> including mail, bind dns, OpenStreep tiles, etcs., all with different
> subdomain names but sharing the same server and IP.  For example:
>   mail.example.com
>   ns1.example.com
>   tiles.example.com
>   ...
> I know I can define them with individual A records (with the same IP)
> with my domain host provider, but will that cause problems conflicting
> with a single physical hostname of, say, "pluto.example2.net"?
> In other words, is the physical hostname of any server of any
> importance except for logged in users?

In general, no. I wouldn't like to assert that there is no server
software that cares what the computer hostname is, but the vast majority
certainly doesn't. Email servers in particular can host a number of
domains, and the HELO hostname returned for each can be configured and
is independent of the machine hostname. Apache2 will handle multiple
domains and can be configured to respond differently according to the
domain name given to it in the URL.

In general you're right, it's just a matter of multiple A records. In
the case of a mail server, the A record used for mail must have a
complementary PTR record at your ISP, but this is not a matter of
whether your mail server works, but whether other mail servers will
accept mail from it.