I have a single server (single ip) running apache, bind and a mailserver. This serves a single domain (mydomain.com) and I would like to associate www.mydomain.com and mydomain.com with my website, mail.mydomain.com with the mailserver (both incoming and outgoing) and ns.mydomain.com with the DNS.
Everything works fine, but I don't like that pointing a browser at mail.mydomain.com (or at ns.mydomain.com) takes me to my website (i.e. the same as www.mydomain.com). As far as I understand, this cannot be fixed in the DNS, correct? I could create virtual hosts in apache for mail.mydomain.com and either show a blank page or an error message? Which is preferable, and is there a common/recommended error message to show?
Are there any other places where those names overlap: e.g. ns.mydomain.com affecting the mail system?