skip to Main Content

I’m not sure if this question belongs here but because it is a technical question so I’m asking it here. Feel free to move it to any appropriate website of Stack exchange.

My problem is I have created a subdomain successfully on my website through cpanel and also put an index.html file in it to test it. But when I run it in browser it is not showing contents of index.html file. It shows following errors:

DNS address could not be found and ERR_NAME_NOT_RESOLVED errors. Can someone please tell me how to resolve this problem?

4

Answers


  1. Chosen as BEST ANSWER

    Thanks for all the answers. Here is how solved my problem. The problem was that I have purchased a hosting with one domain name. I also have another domain purchase but there is no hostng on it. I had pointed the second domain to first domain which also has hosting support. So what I was doing is I was creating subdomain on second one on the first domain. But it was not recognising it and showing DNS problem. So I made an entry A record entry in the second domain about the subdomain which I wanted to create on it. And then in 5 minutes DNS was updated and issue was resolved.


  2. Please check the DNS servers for your domain. You might be using external DNS servers. When you create a subdomain on cPanel, a DNS entry is created in the DNS zone for that subdomain pointing to your server ip. If your domain uses external DNS servers then those servers will be queried to find the ip address for that subdomain. In this case you should manually edit your DNS zone and add an A record for that subdomain to point to your server’s ip).

    Login or Signup to reply.
  3. You must be missing A record pointing to your sub domain in your domain panel.

    Record     Point to       TTL
    
    A           sub           300
    
    Login or Signup to reply.
  4. After adding the subdomain, go to the DNS editor of the domain and add a CNAME record for the subdomain.

    For example:

    NAME                          TYPE     VALUE
    --------------------------------------------------
    subdomain.example.com.        CNAME    example.com.
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search