EC2 could not resolve private DNS host name

0 votes

I am new to Amazon Web Service (AWS)

I just created a VPC and and a subnet, which is inside it. However, I could not resolve any hostnames in this subnet (when I stay in any hosts in this subnet)

[ec2-user@ip-192-168-1-86 ~]$ nslookup
> ip-192-168-1-86.ec2.internal
Server:     192.168.1.2
Address:    192.168.1.2#53

** server can't find ip-192-168-1-86.ec2.internal: NXDOMAIN
Feb 14, 2022 in AWS by Rahul
• 2,120 points
3,623 views

1 answer to this question.

0 votes
Try and check private dns hostnames supported by each region. The private hostnames resolves to the IPv4 address of the instance.

 DNS hostname takes the form ip-private-ipv4-address.ec2.internal for the us-east-1 Region, and ip-private-ipv4-address.region.compute.internal
answered Feb 14, 2022 by Rahul
• 2,120 points

Related Questions In AWS

0 votes
1 answer

Amazon EC2 instance unable to resolve host.

Here is my checklist of things you ...READ MORE

answered Aug 23, 2018 in AWS by Archana
• 4,170 points
5,967 views
0 votes
1 answer
0 votes
1 answer

Host not allowed

Go to your project directory cd project cd project ALLOWED_HOSTS ...READ MORE

answered Aug 9, 2018 in AWS by Priyaj
• 58,020 points
1,744 views
+1 vote
1 answer

Can we use AWS Public DNS as Domian name to enable https on our instance

I don't believe you can get a ...READ MORE

answered Aug 23, 2018 in AWS by Priyaj
• 58,020 points
969 views
0 votes
1 answer

Why I get AWS repository ARN could not be added to restrict access?

heh... answer my own question: I must ...READ MORE

answered Sep 21, 2018 in AWS by Priyaj
• 58,020 points
833 views
0 votes
2 answers

How to recover lost private key of an EC2 instance?

I'm afraid it's not possible When you launch ...READ MORE

answered Sep 25, 2018 in AWS by Archana
• 4,170 points
22,333 views
0 votes
1 answer

Getting ORA-01882: timezone region not found with Oracle UCP, on aws ec2 instance?

You can pass command line argument -Duser.timezone=<Database Time ...READ MORE

answered Oct 3, 2018 in AWS by Priyaj
• 58,020 points
4,249 views
0 votes
1 answer

Pricing for aws ec2 instance volume

This is the pricing for EBS AWS ...READ MORE

answered Feb 14, 2022 in AWS by Rahul
• 2,120 points
503 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP