Submitted by vincen on Sun, 11/10/2013 - 06:02 Pro Licensee
Hi
I’m probably missing something but didn’t find a way to do this :( I have an account for domain.com for example for a customer. He wants to be able to setup some redirections on some subdomains. For example setup toto.domain.com to redirect to external website www.cnn.com ! I have tried to setup a sub-domain and setup a redirect but it creates a new dns zone instead of using dns zone of main domain and so resolution of this sub-domain doesn’t work :(
Thanks for help
Vincèn
Status:
Active
Comments
Submitted by andreychek on Sun, 11/10/2013 - 07:21 Comment #1
Howdy -- well, it shouldn't actually matter that the DNS zone file is separate, that's a normal setup.
If you're creating a new subdomain that's not resolving -- can you let us know what the name of that subdomain is?
We can do some remote testing on the DNS to try and determine what the problem there is.
Submitted by vincen on Sun, 11/17/2013 - 08:33 Pro Licensee Comment #2
Hi Andry
Thanks for yous answer. Here is the tes sub-domain that is not working ! foo.commentsapp.co
Thanks for help
Vincèn
Submitted by andreychek on Sun, 11/17/2013 - 08:37 Comment #3
Hmm, so just to clarify -- is that actually "foo.commentsapp.co", or should that be "foo.commentsapp.com"?
Submitted by vincen on Sun, 11/17/2013 - 11:10 Pro Licensee Comment #4
it’s well foo.commentsapp.co :)
Submitted by andreychek on Sun, 11/17/2013 - 11:14 Comment #5
Okay, it looks like the nameservers for the domain "commentsapp.co" are:
dns1.pointhq.com
dns2.pointhq.com
dns3.pointhq.com
dns4.pointhq.com
dns5.pointhq.com
What is pointhq.com, is that your ISP?
However, it appears that your Virtualmin server isn't controlling the DNS records, but that pointhq.com is.
That means that you'd need to go to pointhq.com, and add a DNS record for "foo.commentsapp.co" there.
Submitted by vincen on Sun, 11/17/2013 - 13:23 Pro Licensee Comment #6
arg sorry for that my customer has changd them back again, I’m going to check with him ! sorry for that ! Just to be sure, if he changes DNS back to use my virtualmin server then the foo redirection setup will work right ?
Thanks
Submitted by andreychek on Sun, 11/17/2013 - 13:28 Comment #7
Yup, it should work if the nameservers are changed to point to your Virtualmin server.
And if it doesn't, we'd be glad to work with you to determine what the problem is.
Remember that DNS can be a bit "fickle". It could take a few hours at least, after changing the nameservers, before that sub-domain begins working.
Submitted by vincen on Mon, 11/18/2013 - 02:27 Pro Licensee Comment #8
so dns have been updated 12 hours ago to use virtualmin one but it still doesn’t work :(
Submitted by vincen on Mon, 11/18/2013 - 11:00 Pro Licensee Comment #9
Have you been able to check what is the issue ?
Thanks
Submitted by andreychek on Mon, 11/18/2013 - 11:09 Comment #10
It appears that there are two nameservers setup for your domain --
PRO.SKIVR.COM.
NSSEC.ONLINE.NET
The first one is working properly, and has an IP address for "foo.commentsapp.co".
The second one does not have any information on "foo.commentsapp.co" though.
What is that second nameserver? Is that a server that you control, or is that a third party DNS service?
Submitted by vincen on Mon, 11/18/2013 - 13:31 Pro Licensee Comment #11
the second nameserver is secondary dns server firnished by the datacenter where my server is ! I have to add manually on it domains so it’s painful if I have to add manually each subdomain ! Isn’t it possible that virtualmin uses only one zone file for each domain including all subdomains ?
Thanks
Submitted by vincen on Tue, 11/19/2013 - 03:13 Pro Licensee Comment #12
oki so it looks to work as I expected and wanted for subservers so it’s fine ;) just something strange: if I check DNS records for main domain commentsapp.co it doesn’t display all records, I have to go in manual editing to see everything !
Thanks
Submitted by andreychek on Tue, 11/19/2013 - 10:35 Comment #13
Sorry for the delay, as I had to do a little research first in order to verify that this would work for you.
Although it sounds like this is somewhat working for you now, I'll still offer the info --
In System Settings -> Server Templates -> Default -> BIND DNS Domain, there's an option named "Add sub-domain DNS records to parent domain".
Note that this would only work for newly created Virtual Servers.
Also, the domain and sub-domain would each need to belong to the same account owner in Virtualmin in order for that to work.
Submitted by vincen on Tue, 11/19/2013 - 10:55 Pro Licensee Comment #14
Thanks Andy, it’s perfect solution :)
Best, cheers