Search code examples
amazon-web-servicesdnssubdomainsftpamazon-route53

Creating a Subdomain for an SFTP site on AWS


I currently have an sftp site setup on AWS where I can connect via Filezilla by providing the long AWS Public DNS name or the Public IP address(hostname) along with my credentials.

I have an existing domain abc.com which is hosted elsewhere(not aws). I want to use a sub domain such as sftp.abc.com to connect to my sftp site instead of the IP address.

Can I create the subdomain(sftp.abc.com) on AWS using Route53? If so, how do I accomplish this?

Would this affect my primary domain site abc.com ?

Anyone who can give me some advice on this would be helpful. Thanks


Solution

  • Create a hosted zone in Route 53 for the subdomain - e.g. sftp.abc.com. Amazon will specify 4 nameservers for the hosted zone. Simply go into your root DNS and create an NS record for the subdomain, specifying those 4 nameservers, and it should delegate authority for the subdomain to Route 53.