I have a frontend hosted in a digital ocean droplet at 206.189.144.57
The problem is I can access website by IP but cannot route my subdomain to it.
I used route 53 test records feature to simulate an A record pointing to the ip but it gives "Non-Existent Domain" error (but I'm able to access .
CodePudding user response:
Test records in Route53 don't work as you are expecting them to. Read this carefully:
Test records to simulate the values that Route 53 returns in response to DNS queries. This tool displays the standard values that Route 53 provides based on the settings in the hosted zone. The tool doesn’t send actual DNS queries.
Test records are used to test existing Route53 records. For A records you don't add the IP in the "Resolver IP Address" to make a test. The "Resolver IP Address" should normally be left unfilled, when testing a record.
You need to create the A record first, pointing mysubdomain.hostedzone.com to your IP. Then do a test by pasting mysubdomain into 'Record name' in 'Record to test'.
CodePudding user response:
You are using cloudFlare nameservers and are trying to manage DNS records using Route53 which is not correct.
If you want to manage the DNS by Route53, your domain's nameservers should be pointing to Route53's hosted zone records.