Using custom DNS name to point to my EC2 machine using route 53 A record?

Viewed 114

I have a custom domain: develop.yp-uae.waveaxis.co.in

i have created a record set with a record of A name type that points to my elastic ip for my ubuntu machine.

Questions :

  1. Is being added to the domain name develop.yp-uae.waveaxis.co.in.

  2. I have a app running on my server. When i used my elastic ip on address bar all work good i am landing on its index page. But when i used my domain name I am getting develop.yp-uae.waveaxis.co.in server IP address could not be found.

2 Answers

You don't have a record setup for that domain, just the root level domain.

I ran a DIG command and here's what it returns

id 40482
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
waveaxis.co.in. IN ANY
;ANSWER
waveaxis.co.in. 14399 IN MX 10 aspmx3.googlemail.com.
waveaxis.co.in. 14399 IN MX 1 aspmx.l.google.com.
waveaxis.co.in. 14399 IN MX 5 alt1.aspmx.l.google.com.
waveaxis.co.in. 14399 IN MX 5 alt2.aspmx.l.google.com.
waveaxis.co.in. 14399 IN MX 10 aspmx2.googlemail.com.
waveaxis.co.in. 14399 IN TXT "v=spf1 a mx include:websitewelcome.com ~all"
waveaxis.co.in. 21599 IN SOA ns8351.hostgator.com. root.gator4176.hostgator.com. 2020061700 86400 7200 3600000 86400
waveaxis.co.in. 21599 IN NS ns8351.hostgator.com.
waveaxis.co.in. 21599 IN NS ns8352.hostgator.com.
waveaxis.co.in. 14399 IN A 108.167.143.137
;AUTHORITY
;ADDITIONAL

Either add a wildcard of *.waveaxis.co.in or add the absolute domain name.

Most reason your host is not resolved due to this you are getting error.

Try in your machine :

sudo /etc/host/ and temporary added

for macOs and ubuntu is same path. Window will have different path.

https://devnet.kentico.com/articles/what-is-the-hosts-file-and-how-to-use-it-#:~:text=The%20hosts%20file%20is%20a,and%20is%20traditionally%20named%20hosts.&text=Windows%20operating%20systems%20contain%20a,resolution%20of%20your%20domain%20name.

xx.xx.xxx.xxx develop.yp-uae.waveaxis.co.in

and save it check whether you are getting website or not.

If this working then your DNS resolve takes times.

ping develop.yp-uae.waveaxis.co.in in your terminal once you got ping reply then DNS is resolve for this.

Related