Have a testing server where I have some stacks, a VPC (can get to interent, updates, etc) Now, I'm making a kubernete cluster with terraform and while deploying, couldn't resolve the new bought/registered domain at route 53 (I created the hosted zone and all).
My resolv.conf
cat /etc/resolv.conf
options timeout:2 attempts:5
; generated by /usr/sbin/dhclient-script
search ec2.internal
nameserver 10.0.0.2
nslookup result:
Server: 10.0.0.2
Address: 10.0.0.2#53
** server can't find myrandomdomain: NXDOMAIN
I have dns resolution/hostnames and dhcp options sets at my VPC, as well as private subnet for other servers in the same subnet (10.0.0.0/27) and an IG and public IP on the instace. First time I faced this issue.
Any ideas? Thanks.
error doing DNS lookup for NS records for "testing.mydomain.com": lookup testing.mydomain.com on 10.0.0.2:53: no such host
Tries to resolve it through 10.0.0.2:53 (the hosted zone has aws name servers associateD) Thanks.dig example.com ns
. The domain you registered, if you don't want to tell us the name, then please call it example.com for consistency. If that is what you registered, then the next question is this: are you using--dns-zone=example.com
or--dns-zone=testing.example.com
? If you created a hosted zone fortesting.example.com
and edited its assigned NS records, that is wrong.ns-1877.awsdns-42.co.uk ns-701.awsdns-23.net ns-80.awsdns-10.com ns-1141.awsdns-14.org
Didn't modify records. I'm watching a kubernetes course and they use it this way, setting testing.example.com at kops for --dns-zone but when trying to create the cluster, fails with the previously commented error.;; AUTHORITY SECTION: example.com. 60 IN SOA ns-1289.awsdns-33.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
No "answer section" as while digging at example.com, which returns aws' nameservers. Thank you!