AWS - Route53 how to point static IP of lightsail instance - amazon-web-services

I have purchased a domain (expressXXXX.it) in Route53.
After this, I have created a lightsail instance in AWS, and assigned a static ip address to it.
In "hosted zones", i configured as follow, adding only A and CNAME records:
where 99.xxx.xx.x4 is my static ip address.
The url www.expressxxxxxxx.it does not point to my static ip address.
if i ping expressxxxx.it, i can see that it points to 42.525.xxx.xxxx instead of my static ip address 99.xx.xx.xx.
I waited for several hours, but it doesn't work at all.
Thanks in advance for help.

Related

After rebooting amazon ec2 instance, can't access instance with domain

I have first reboot the instance. After that when I tried to access instance with domain name, it's not accessible.
I can access with elastic ipaddress (whm and cpanel both i can access with ip address) but with domain name, i am not able to access.
Help me to resolve it.
Can you ping the domain to check if it returns the actual IP address of the server?
ping domain.com
Let me know if it returns the correct IP, otherwise there must be something wrong with the DNS. Or most probably your DNS server is down or misconfigured entries. If you're using Cloudflare or any other 3rd party DNS provider, then you need to turn of proxy bypass for the domain in order to access the server directly through domain name.
Later on found that I have increased instance with cpanel with public ip address instead of using elastic ip address...
Basically it issue regarding ip address only.
After that I have created new instance with cpanel Linux and installed cpanel with elastic ip address, in that case after rebooting this issue didn't happen again. Btw it solved.

Configure a server with Ubuntu 18 to access it from internet

First, thanks so much for taking time reading this question. I am new on linux, and I need some guide.
I basically have a Ubuntu 18 server (AWS EC2). I have the static public IP address and the domain name from godaddy.
The thing is that I am not being able to access my server from the internet using the domain I bought on godaddy. The only way I have to access this server is using the IP Address...
Maybe you can help me answering these questions:
I think that nothing should be done on AWS EC2 to accept my new domain. right?
Is it enough to have just a "A" record on DNS configuration on Godaddy?
Finally, what configuration should be done on Ubuntu 18?
When enter "hostname" I get --> "server1"
When enter "hostname --fqdn" I get --> "XXXX.com" (the domain I bought on godaddy)
When enter "dnsdomainname" I get --> "com"
Could you please tell me what I am doing wrong? I just want my webpage to be accessed by everybody on the internet...
Thanks In advice! :)
I am not sure what you mean by static IP address from GoDaddy the domain name makes sense.
Normally you would want to attach an ElasticIP address to your instance as the public IP that it is assigned will change when the instance reboots. Then you configure the A record in the GoDaddy domain to point to the EIP address, the TTL is normally about 10 minutes for the DNS to reflect so be patient. (This should be enough).
If it still not working after some time you make sure you have an IGW (internet gateway) attached to the VPC and your Security groups and NACLs allow inbound and outbound traffic.

AWS EC2 change public DNS hostname so that it works with Reverse DNS lookup

I've already gone through the following links but couldn't find anything useful:
https://forums.aws.amazon.com/thread.jspa?threadID=79119
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html
How to change Public DNS in amazon ec2
EC2 t2.micro instance has no public DNS
I have a ec2 server running ubuntu. I've set up an elastic IP for the instance, and have configured my domain with that IP on Route 53. It's working fine.
Now I'm using the server to send a few (transactional) emails. I still haven't used TLS in the mails, so Gmail correctly shows that I havent encrypted this message in red. But instead of my domain name, it shows ec2---my-server-ip---my-server-location has not encrypted the message.
I ran reverse DNS lookup on https://www.whatismyip.com/reverse-dns-lookup/ and it showed the amazon server details.
How can I change this DNS hostname to my own domain name ?
https://forums.aws.amazon.com/thread.jspa?threadID=79119
Read that one again, because it contains your answer.
Create an A record matching the reverse entry you want, if you don't already have one, then send a request to AWS support to associate the hostname you want with the Elastic IP, using this form:
https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request
That's how you do it. It can only be done with an Elastic IP.
Reverse DNS look up is linked with the PTR record set by the owner of the IP address.
In case of AWS you need to get in touch with AWS support for setting up the PTR record for an Elastic IP address assigned to your account.
They will ask you to create a public zone file of reverse IP address followed by in-addr.arpa
eg. your ipv4 address is - 1.2.3.4
then zone file needs to be created with 4.3.2.1.in-addr.arpa with an PTR record pointing to your ipaddress.
You can refer this link for more information - https://aws.amazon.com/premiumsupport/knowledge-center/route-53-reverse-dns/

Domain is not pointing to my static ip address in aws lightsail

Here are the steps I followed.
I purchased the domain in GoDaddy. I changed the name servers to point to lightsail.
In lightsail, I created a new DNS zone.
Created A record with # pointing to the static ip address.
Created A record with www pointing to the static ip address.
It's been more than 24 hours.
When I access the website with the static ip address, it works fine. But, when I access it from the domain name, I'm getting the below error.
example.com’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN
If for some reason you deleted and recreated the domain under lightsail the NS records will change and you will need to update those with GoDaddy.
In case you're trying to access it over https you need to make sure you have opened port 443 in the Lightsail firewall - it is closed by default.
Find it under the networking tab of your Lightsail instance.

How can I find the IP address of my AWS Route 53 nameserver?

Apparently there is a special requirement of .nl domains that necessitates the disclosure of nameserver IP addresses. I am trying to host a static website out of my AWS bucket on GoDaddy.
I found the answer already!
https://mxtoolbox.com/SuperTool.aspx?action=a%3ans-30.awsdns-03.com&run=toolpage#
the supertool of mxtoolbox reveals the IP addresses of nameserver.