I have some public hosted zone records defined in Route 53. They work normally accessed from any computer, but when accessed from an instance in my production vpc (or any other vpc of my account), it's impossible to reach them. But any other site outside the vpc, works normally.
Can somebody help me?
EDIT: To clarify, I can't reach with wget for example. I get:
wget http://XXX.YYY.com
--2018-05-25 15:22:43-- http://XXX.YYY.com
Resolving XXX.YYY.com (XXX.YYY.com)... failed: Name or service not known.
wget: unable to resolve host address 'XXX.YYY.com'
With dig I get:
dig YYY.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> YYY.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41991
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;YYY.com. IN A
;; AUTHORITY SECTION:
YYY.com. 60 IN SOA ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
;; Query time: 2 msec
;; SERVER: 10.150.0.2#53(10.150.0.2)
;; WHEN: Fri May 25 16:30:28 UTC 2018
;; MSG SIZE rcvd: 124