Search code examples
amazon-web-servicesamazon-route53

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


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.


Solution

  • 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.