How to setup your domain name without using 000webhost name server? -
03-15-2009, 04:34 AM
NOTE: IP+1 rule is NO LONGER REQUIRED, you can use the IP that you see in your cpanel for your A-record
I finally figure it out!
Admin has been saying this all along but I just did not realize what he is saying until today!
Due to security measure 000webhost admin introduce a security measure where your site ip that you see in your cpanel is not the exact ip that you would use when you use external domain name service or redirecting domain name service.
This is very important to remember when you decide not to use 000webhost name servers.
Note: To avoid confusion please ignore this in your cpanel. "You can also point your domain ("A" DNS record) to IP blah"
It might work also but I never tested!
YOU MUST add 1 to your IP that you get from your cpanel.
on the right hand side under "Account Information"
Server Name server25.000webhost.com
IP Address 220.127.116.11
or under "Account Details Overview"
Website IP address 18.104.22.168
NOTE: the working IP would be: 22.214.171.124 +1
Then you would enter 126.96.36.199 as an IP of your site to your external domain service. Create a A record with this IP.
I tried this technique with several domain name service paid or free and they all work just fine given that you give it enough time to propagate across internet.
Note: This method is using the server IP+1 to calculate the virtual IP for your site on that server which is fixed number and in my opinion is the simplest method.
Any DNS change will take 24-48 hours to propagate!
If you are using 000webhost name servers then it will work just fine but some people for some reason want to keep their existing domain name server and don't want to use 000webhost name server or they want to use their subdomain on 000webhost and only use A record point to 000webhost site and that was where the whole confusion was about and for a long time I did not really understand the issue until I spent a few days track this issue down and finally get it to work to just like the "admin" was describing!
Each server has 32 IPs in order to mitigate DDOS attacks (you can use any of these 32 IPs excecpt the main IP). So if DDOS attack strikes we only nullroute 1, attacked, IP and only ~3% of websites goes down instead of whole server.