Question
IP adress points to my subdomain
Hello there,
I’ve set up a LAMP server on an CentOS VPS, created DNS records in DigitalOcean panel as instructed by the tutorials. Everything works fine on the main domain name and sub domain.
However, if I type my IP to address bar of browser, it serves me my subdomain, not the main domain.
in my ZONE file are these records -
@ IN A 95.85.27.226
asdf IN A 95.85.27.226
www IN CNAME kailo.photography.
thank you
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
You have two A records for the same domain? Am I interpreting your zone file incorrectly, or did you intend ‘asdf’ to be a subdomain using a CNAME instead?
Yes, I do - is it bad? “asdf” is subdomain and I though it’s better to have “A” record instead of CNAME for subdomains.
But maybe I did something different than it actually should be.. ?