Cannot access my website with the custom domain name when using VPN
I developed a website and deployed it using EC2 on AWS and redirected the domain name which I bought from domain.com to the EC2 IP address with Route 53. The site is accessible when I'm not using VPN. However, when I start using the VPN, I cannot access the website and redirect to a page that shows the site is under development. How can I fix this problem? Many thanks!!
The picture is the records of my R53 hosted zone
I also have added the values which generate by the AWS to the nameservers of domain.com. The domain name was bought last year and started using it from June.
Information of ip and nslookup:
(1) website ip: 18.222.135.126
(2) domain name: weiyipeng.com
(3) nslookup with VPN off: 18.222.135.126
(4) nslookup with VPN on: 240.0.0.6
Solution 1:
The domain.com set two extra nameservers in default, which are serve in Europe and Asia. When I use the VPN based in Europe it will map to the domain.com nameserver which nslookup is start with 66.*. After I delete these two nameservers, everythings work fine. Thanks to Tim for the hints.