-1

I am able to resolve my domain name to IP address but not the other way. i.e., unable to resolve IP address to domain name. When I do a nslookup my IP address is getting resolved to the same IP address instead of domain name

mydomain.in is my purchased domain name, 3.71.149.103 is the IP address of the AWS ubuntu instance Below are the output of nslookup from my PC on internet.

C:\Users\user1>nslookup mydomain.in Server: broadband.actcorp.in Address: 49.205.75.2

Non-authoritative answer: Name: mydomain.in Address: 3.71.149.103

C:\Users\user1>nslookup 3.71.149.103 Server: broadband.actcorp.in Address: 49.205.75.2

Name: ec2-3-7-149-103.ap-south-1.compute.amazonaws.com Address: 3.71.149.103

Can you please guide me how to resolve this issue

Avihs
  • 23
  • 5

1 Answers1

0

I am not much into DNS and stuff, but here, when you try to nslookup , AWS EC2 replies with its DNS host name. Either public DNS hostname or private, based on what IP you have used.

ec2-3-7-149-103.ap-south-1.compute.amazonaws.com is public DNS hostname.

For resolving domain name from IP, you might need to configure PTR records, which are just like A records, but in a reverse way.

Some references for the same if your domain is on Route53:

https://aws.amazon.com/premiumsupport/knowledge-center/route-53-reverse-dns/

saurabh14292
  • 1,281
  • 2
  • 10
  • 12
  • Thanks will go through on it. – Avihs Apr 30 '20 at 16:32
  • PTR record is already added, when i do nslookup ip address, it is getting resolved to my hostname(ec2-3-7-149-103.ap-south-1.compute.amazonaws.com ) not my domain name. Any idea where do i need to change this ec2-3-7-149-103.ap-south-1.compute.amazonaws.com to my domian name mydomain.in – Avihs May 01 '20 at 06:18
  • 1
    This is resolved after writing to AWS team, they need to make changes. – Avihs May 01 '20 at 15:43
  • Thanks for the assistance – Avihs May 01 '20 at 15:43