Subdomain taking over the domain

Hello everyone,

first of all, big props to Josh for making this.

I have the following setup - one server dedicated to mail-in-a-box and another server for a website (wordpress). I did the setup by the instructions, and it’s working perfectly (only thing I changed is that the mail-in-a-box server is named mail.mydomain.com)
Reverse DNS is setup with the ISP, I’ve obtain an SSL certificate, everything working fine.
The only problem I have is that mydomain.com is now pointing to the IP address of the mail-in-a-box server, while mail.mydomain.com works as it should.
Can I install Webmin on the mail-in-a-box machine to make changes in BIND, so mydomain.com and www.mydomain.com point to the correct IP address and nameservers or can I manually change BIND configuration inside of the mail-in-a-box machine?

Thanks in advance.

You are thinking too hard. :slight_smile: There is a section in the control panel (/admin page) called Custom DNS where you can override DNS records.

1 Like

Oh… :smiley: Thanks!

Hi Josh, sorry for bothering you again.

I’ve added two A records in the Custom DNS option:

mydomain.com A ip_of_the_server
www.mydomain.com A ip_of_the_server

Now, when I try to access mydomain.com, or www.mydomain.com, I get a ERR_CONNECTION_REFUSED.

Status check for mydomain.com says:

Nameservers are set correctly at registrar. [ns1.mail.mydomain.com; ns2.mail.mydomain.com]

which is correct, but I’ve also set-up ns1.mydomain.com and ns2.mydomain.com as nameservers at GoDaddy for the specific domain, so it has total of 4: ns1, ns2, ns1.mail and ns2.mail.

Is it a propagation issue or something else?

Thanks in advance.

Check out what mxtoolbox.com is saying about your a Record :wink:

Hi aspdye,

mxtoolbox search for a: mydomain.com is pointing me to the correct IP address, meaning, the web server :smile:
But, when I try to access mydomain.com, the browser redirects to www.mydomain.com, and throws the ERR_CONNECTION_REFUSED.

Try this:

Domain.com A IP
Www.domain.com CNAME Domain.com

The Other Thing: wait some Hours (days) until DNS Updates are sucessfully :slight_smile:

Will do, thanks a lot :smile:

You’re welcome :wink: Please give me some Feedback Wether it runs (After You have ist :D)

Yeah, no, tough luck :smile:
mydomain.com now redirects to www.mydomain.com which throws a DNS_PROBE_FINISHED_NXDOMAIN.

Can I bother you with a personal message, or something, to give you the actual settings?

Thanks

Yes. Just send me an pm and i will look on it :wink:

Sincerly

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.