Unable to ping shortname in private hosted zone

0

The message I get is: ping: ec2instance: Name or service not known

I can ping between machines in private subnet using FQDN ec2instance.domain.name

I've updated /etc/resolv.conf with the nameservers from my hosted zone Z05297504EJLQIBOS9VH but no luck.

Thanks,

gefragt vor 5 Jahren1393 Aufrufe
3 Antworten
0

Hi,

Your instance can forward DNS request to the IP address of the Amazon-provided DNS server for your VPC. Amazon DNS server cannot resolve private DNS hostnames if you do not set the following attributes to true:
enableDnsHostnames: Indicate whether instances with public IP get corresponding public DNS hostnames.
enableDnsSupport: If this attribute is false, Amazon provided DNS server that resolves public DNS hostnames to IP addresses is not enabled.

For more information, please refer to this article [1].

To create a private hosted zone using the route 53 console follow this link [2].

[1]- https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-support
[2]- https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-creating.html

Regards
/Bennie

Bennie
beantwortet vor 5 Jahren
0

Those things are set up. I can ping it's full name but not the shortname within the VPC. This is for a private hosted zone

works
ping instancename.domain.name

doesnt work
ping instancename

Edited by: witchkinkofangmar on Oct 18, 2019 9:08 AM

beantwortet vor 5 Jahren
0

I actually just added one line in resolv.conf to get it working.

search ec2.internal
search domain.name
nameserver 10.26.50.2
nameserver ns-1536.awsdns-00.co.uk
nameserver ns-0.awsdns-00.com
nameserver ns-1024.awsdns-00.org
nameserver ns-512.awsdns-00.net

I thought since our VPC options were set to domain-name = ec2.internal; I wouldn't need to add the search base

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen