Bind AWS IP with Hostinger Sub-Domain |
To bind an AWS IP address to a Hostinger subdomain, you need to update the DNS records of your Hostinger domain to point to the AWS IP address. Here’s a step-by-step guide to achieve this:
Step1: Find the AWS IP Address
If you have an EC2 instance, you can find the IP address in the AWS Management Console under the "Instances" section. Note the Public IPv4 address.
Step2: Access Hostinger DNS Management
Step3: Create a Subdomain and Point to AWS IP
subdomain.yourdomain.com
).Step4: Save Changes
Save the DNS record. It may take some time (usually up to 24-48 hours) for DNS changes to propagate.
Here’s an example of what the DNS record might look like:
Type | Name | Value | TTL |
---|---|---|---|
A | subdomain | AWS_IP_ADDRESS | 14400 |
Example:
If your subdomain is api.yourdomain.com
and your AWS IP address is 3.123.456.78
, the A record will be:
Type | Name | Value | TTL |
---|---|---|---|
A | api.yourdomain.com | 3.123.456.78 | 14400 |
Additional Configuration
If you also want to use HTTPS for your subdomain, you'll need to set up an SSL certificate. You can use services like Let's Encrypt or AWS Certificate Manager for free SSL certificates.
Testing
Once the DNS changes have propagated, you can test the setup by accessing your subdomain in a web browser. It should point to your AWS server.
Let us know in the comments if you need further assistance!
Comments
Post a Comment