Here is the situation -
- I have my domain name xyz.com purchased from godaddy which is pointing to the website IP hosted by wix.com. 2 nameservers provided are of wix.com i.e. - ns2.wixdns.net & ns3.wixdns.net.
- I have another website which is hosted in AWS EC2 instance with some IP say XX:XX:XX:XX
I want to create a subdomain sub.xyz.com which should point to the IP(XX:XX:XX:XX) of my AWS EC2 instance without affecting the main domain pointing to the website created through wix.com.
Things I did, but did not work -
- I tried to contact godaddy for this purpose but they said it has to be done through AWS
- Tried to use subdomain option on godaddy and created a subdomain record for sub.xyz.com for the IP address of the EC2 instance
- Checked on internet and got some articles stating use of Route 53 on AWS. I tried to create one hosted zone file with xyz.com domain name but it created 4 new nameservers. Then I created a record set for this using -
name = sub.xyz.com,
record type = A-IPv4 Address,
TTL=300,
Value = XX:XX:XX:XX (IP of EC2 instance),
Routing policy = Simple
Route 53 provided 4 new nameservers which I think if I update on godaddy then it will not point domain name xyz.com to the website hosted by wix.com
I do not have much knowledge about AWS and domain/subdomain routing.