Yes, but you’ll have to use the box’s DNS API at the end to set different “A” records for the three other domains. (They default to the box’s IP address.)
mailserver.com has 3 A records that map the hostnames of each of the other three domains to their corresponding IP address (in order to serve websites for those domains).
Mail accounts for each domain are created mailserver.com
What do you mean by using the box’s DNS API? I currently have NS1 and NS2 pointing to my server’s IP and having Mail-in-a-box host DNS. I would like to add a CNAME record to send WWW traffic to a separate web host.
The box starts serving the change immediately. DNS is frequently cached at all sorts of intermediate DNS servers between clients and the box, but those caches typically clear within a few hours.
OK, although I fixed my NS glue records, my CNAME configuration still isn’t being served. It’s been over 20 hours. Either I will have to wait even more time for DNS caches to flush or something still isn’t configured correctly. Is there anything else I can verify in my MIAB? Thank you in advance.
The @-parameter is the name or IP address of a DNS server to query, in this case you are checking that the box itself is serving the correct info. And something.yourdomain.com is the domain/subdomain that you set the CNAME record for.
Gday, did this issue ever get resolved? I seem to have the same scenario I have A records and CNAME records for the www subdomains, but the subdomains never resolve correctly.
Any advice much appreciated.
Cheers!
Dig:
dave@webserver:~$ dig @ns1.box.gotany.email www.happygoanna.com.au all
; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> @ns1.box.gotany.email www.happygoanna.com.au all
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25382
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.happygoanna.com.au. IN A
;; ANSWER SECTION:
www.happygoanna.com.au. 1800 IN CNAME 188.166.238.213.happygoanna.com.au.
;; AUTHORITY SECTION:
happygoanna.com.au. 1800 IN SOA ns1.box.gotany.email. hostmaster.box.gotany.email. 2016051700 7200 1800 1209600 1800
Am i right in saying there is still no good guide to setting up a new domain that doesnt involve directing the domains nameserver settings to the box?
I have been successfull with adding multiple domains to my box while hosting the websites for them else by changing the DNS, however it doesnt aways work and it would be great to get a concrete solution to e.g.:
I have my main domain [mysite.com] and i set up my mailinabox with that domain.