I'm creating serverless application in nodejs env using aws lambda. I need to add custom domain in API Gateway. Domain (lets say example.com) is registered with domain.com and hosted with other company. Parent domain (example.com) is working fine with other hosting company. Now I want to add its subdomain (api.example.com) in route 53 (aws)
- I've created Hosted Zone in Route 53 with name example.com (Parent domain)
- NS and SOA records are created automatically.
- Cname api.example.com in route 53 points to cloudfront url
- In domain.com i've added cname for api.example.com that point to cloudfront url
I know dns can take upto 48 hours to resolve. I've also seen WHM , cname can also be added there but i didn't touch there.
please help.
Update #1
I've done as deceze described in the answer section. below are the screenshots
screenshot of NS-Record entered in my Parent Domain Registrar
its has been around 20 hours , still not worked. Any Suggestions.