I registered a domain name from godaddy to host my website. I have added dns settings to point my domain to my host and everything is working fine. Now I want to add dns settings for my subdomain, and have no clue how to go about that. The dns for my subdomain is different than my actual domain dns. I can find no option to add dns to the subdomain separately. So suppose dns for www.mydomain.com is 27.156.62.3 Then I want the dns for www.sub.mydomain.com to be 27.162.57.3 Please help how to go about it. Can it be done by some php code or an .htaaccess file? If yes how!! Plsss help!! Please avoid third party solutions like freedns.afraid.org!!! Thanks in advance.....
if you are using godaddy's dns servers as authoritative ones for your domain, then you need to use their dns manager to achieve this. the following information may be useful to you. just set-up your subdomain as an A record and map it to 27.162.57.3 these things are done in the dns level, not by using php or some htaccess code. if you were running your own dns server, mapping a subdomain to a different ip is as simple as adding the following dns records to your zone file: sub.mydomain.com. 14400 IN A 27.162.57.3 www.sub.mydomain.com. 14400 IN A 27.162.57.3 Code (markup):
Thankss RoseHosting........ Now ill better start my own dns server Just one more question, is therir any legit free dns service. I mean does freedns etc delete your account once you start getting high traffic? If not then I find no problem in using their services!! Or is their any other free sevrce that can be trusted upon?
Thankss RoseHosting........ Now ill better start my own dns server Just one more question, is therir any legit free dns service. I mean does freedns etc delete your account once you start getting high traffic? If not then I find no problem in using their services!! Or is their any other free sevrce that can be trusted upon?
If you choose godaddy as your host, be advised that you may need to upgrade to do this. You must have the zoneedit feature to take this action. You currently only have the simplezoneedit feature. will likely pop up if you don“t have the complete package.
If your hosting provider provides you control panel you can do it from the Control panel or you can use the DNS server on your webserver to add add the A records of your subdomain