Skip to main content

domain is pointing to server instead of newly created cpanel account

Comments

9 comments

  • Jcats
    If you are using dot.tk's name servers then doing anything DNS related in cPanel is pretty much null. As long as you added the exact domain name into cPanel, and you have an A Record set to the IP of your server, then the site should load. Can you confirm your domain is resolving to the IP showing if you go to WHM > List Accounts If it is, then clear your browser history and try to view your website again.
    0
  • Kailash1
    Also, you will have to make sure that you have to set your server's hostname same as your domain name otherwise it will not work. Server's hostname should not be live website.
    0
  • kapilkd13
    Also, you will have to make sure that you have to set your server's hostname same as your domain name otherwise it will not work. Server's hostname should not be live website.

    Hi Kailash In some tutorials I saw them using different hostname and using new domain to host websites. I will change it to my original domain as you say like host.my-domain.tk. After doing this do I have to change anything in my domain registrar. Also When I look into the list accounts in whm it shows domain column that list my domain and a Ip address column that has a hyperlinked ip address. when I click onto that hyperlinked ip address it takes me to correct address, showing my website. But when I click onto domain name present in domain column, it takes me to my server ip address my-server-ip/cgi-sys/defaultwebpage.cgi is shown. Note that I have created multiple accounts trying to get it right. So I have many rows each having different domain name but same Ip address(my-server-ip). Now surprisingly these ip address look same but when I click on them they take me to their corresponding accounts webpage. I dont want to host multiple accounts and I have no problem deleting all but 1 if it solves anything. Thanks
    0
  • kapilkd13
    Note that I have created multiple accounts trying to get it right. So I have many rows each having different domain name but same Ip address(my-server-ip). Now surprisingly these ip address look same but when I click on them they take me to their corresponding accounts webpage. I dont want to host multiple accounts and I have no problem deleting all but 1 if it solves anything. Thanks
    0
  • Jcats
    When you ping the domain that you are trying to access, does it resolve to the IP that shows in WHM > List Accounts?
    0
  • kapilkd13
    hi Jcats, Yes when I ping the domain through terminal it shows my server ip. This is the same IP that is shown in list accounts. but when I put the domain on google it takes me to defaultwebpage.cgi . It looks like domain is resolving to server IP but from there it is not getting redirected to specific account associated with that account. Again IP present in List accounts and my server IP is same. And in list accounts IP is hyperlinked and takes me to its respective accounts default.html page(where I want to go.)
    0
  • kapilkd13
    hi Jcats, Yes when I ping the domain through terminal it shows my server ip. This is the same IP that is shown in list accounts. but when I put the domain on google it takes me to defaultwebpage.cgi . It looks like domain is resolving to server IP but from there it is not getting redirected to specific account associated with that account. Again IP present in List accounts and my server IP is same. And in list accounts IP is hyperlinked and takes me to its respective accounts default.html page(where I want to go.)

    Also if its possible for you can you suggest me sources where i can get insight of how a server resolves request to there specific account mainpage because each website doesn't have a dedicated ip and user request go to server's ip.
    0
  • Kailash1
    In some tutorials I saw them using different hostname and using new domain to host websites. I will change it to my original domain as you say like host.my-domain.tk. After doing this do I have to change anything in my domain registrar.

    Did you set same hostname as your main domain name? If that was the case, you will have to delete any recreate your domain after changing server's hostname. The hostname which you set for your server should not be live website. You will see this caution on change hostname screen as well.
    0
  • cPanelMichael
    Hello, First, check to see which IP address one of the domain names resolves to, and verify it's the same IP address configured for the account on the cPanel server. Then, let us know the output (without real IP addresses) from the following command:
    /scripts/build_cpnat
    Thank you.
    0

Please sign in to leave a comment.