Thursday, March 8, 2018

linux - Should you use a private hostname or public hostname as server hostname?

Assume you have a web server and database server, the web server is publicly accessible, while the database is only used by the web server, their DNS is



web.example.com

web-internal.example.com

db-internal.example.com


So obviously the db should only use the internal DNS as the hostname, what about the web server? Should I also use the internal DNS as the hostname for the sake of consistency?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...