This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Error access to Subdomains
#1
Error access to Subdomains
Hi guys, I really need your help.
So, the problem is I cannot access Subdomains. I have installed it successfully but when accessing subdomains, it failed. Subdomain included sentora.[domain].dev., on DNS: sentora, record A, TLL 1H.

Could anyone help me? Thanks in advance!
Reply
Thanks given by:
#2
RE: Error access to Subdomains
You can not access the subdomain of your server, or you can't access subdomains hosted from your Sentora installation?

Can you either post your domain name, or send it to me in a PM so I can check the DNS routing?
Brad J Trammell
Director of Operations
SparkRack.com

Send me a message on Discord:
bradjtrammell#8210
Reply
Thanks given by:
#3
RE: Error access to Subdomains
(09-14-2021, 01:32 AM)christnicolas Wrote: Hi guys, I really need your help.
So, the problem is I cannot access Subdomains. I have installed it successfully but when accessing subdomains, it failed. Subdomain included sentora.[domain].dev., on DNS: sentora, record A, TLL 1H.

Could anyone help me? Thanks in advance!

sub-domains are a CNAME record not A records.
Please supply a screenshot of the DNS Manager for the domain on the Sentora hosting panel.

What is a CNAME Record?
A CNAME, or Canonical Name record, is a record that points to another domain address rather than an IP address.
For example, say you have several subdomains, like www.mydomain.com, ftp.mydomain.com, mail.mydomain.com etc and you want these sub domains to point to your main domain name mydomain.com.

Instead of creating A records for each sub-domain and binding it to the IP address of your domain you can create CNAME records.

As you can see in the table below, in the case where the IP address of your server changes, you only need to update one A record and all the subdomains follow automatically because all the CNAMES point to the main domain with the A record:

(sub)Domain / Hostname | TTL | Record Type| Target / Destination
mydomain.com                  3600         A              111.222.333.444
www                                   3600     CNAME                   @
ftp                                       3600     CNAME                    @
mail                                    3600     CNAME                   @
test                                     3600     CNAME                   @


After you add the CNAME Wait on daemon update or run it manually and restart apache.

Code:
php -q /etc/sentora/panel/bin/daemon.php


Ubuntu
Code:
service apache2 restart

CentOS
Code:
service httpd restart


NOTE ! DNS propagation can take up to can take up to 72 hours to propagate worldwide
"Nothing is true; everything is permitted"

Reply
Thanks given by:
#4
RE: Error access to Subdomains
That's not at all accurate. Sub domain or sub-hosts can be an A record, or a CNAME, there is no required standard for it. As long as it points to the correct place it will work fine.

A CNAME can be used if the record shares the IP address of the main server by using the @ symbol, but again, there is no requirement to use either or.
Reply
Thanks given by:
#5
RE: Error access to Subdomains
(11-02-2021, 03:20 AM)bradjtrammell Wrote: That's not at all accurate. Sub domain or sub-hosts can be an A record, or a CNAME, there is no required standard for it. As long as it points to the correct place it will work fine.

A CNAME can be used if the record shares the IP address of the main server by using the @ symbol, but again, there is no requirement to use either or.

Unfortunately i work for a domain registrar and web-hosting company.
What you are saying is a common mistake with DNS mapping.
The DNS A record is specified by RFC 1035.
Restrictions
    A CNAME record must always point to another domain name and never directly to an IP address.
    A CNAME record cannot co-exist with another record for the same name. It’s not possible to have both a CNAME and TXT record for www.example.com.
    A CNAME can point to another CNAME, although this configuration is generally not recommended for performance reasons. When applicable, the CNAME should point as closely as possible to the target name in order to avoid unnecessary performance overheads.

The structure of an A record follows the standard top-level format definition defined RFC 1035.

CNAME records can be used to alias one name to another. CNAME stands for Canonical Name.

A common example is when you have both example.com and www.example.com pointing to the same application and hosted by the same server. To avoid maintaining two different records, it’s common to create:

    An A record for example.com pointing to the server IP address
    A CNAME record for www.example.com pointing to example.com

As a result, example.com points to the server IP address, and www.example.com points to the same address via example.com. If the IP address changes, you only need to update it in one place: just edit the A record for example.com, and www.example.com automatically inherits the changes.

Now to put a SUB-domain in Sentora hosting panel properly is to use a CNAME.
"Nothing is true; everything is permitted"

Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
DNS Manager Error? rafaht 10 32 ,720 02-23-2018, 10:47 PM
Last Post: CMs222
editing dns error dancristian 5 11 ,790 11-01-2016, 09:24 PM
Last Post: dancristian
DNS error coitam 1 5 ,069 01-08-2016, 09:12 PM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 1 Guest(s)