How to find the IP address of your account
If you want more in-depth control over your DNS records, the nameservers of InfinityFree are probably not enough for you. You want to use your own nameservers, but you need to know the IP address of your website to do that. But how do you find it?
To add your domain name to your account, you MUST point it to the nameservers! Simply pointing the domain to your account IP will not allow you to add the domain name to your account! You can only do this after the domain name has been added to your account.
Using ALIAS records
Some DNS providers (but not all) support DNS records of type ALIAS, sometimes also called CNAME Flattening. Using that is the easiest and safest way to use your own nameservers.
To use CNAME flattening, you first need to lookup your account’s main domain. You can find the main domain in the sidebar of your control panel. It should look something like this:
Then, create an ALIAS record (or CNAME flattening record) for your domain name in your own nameservers, pointing to your account’s main domain.
For subdomains, create a regular CNAME record pointing to the main domain.
Using A records
Warning: the IP address of your account may change without warning or notification. Using our nameservers is recommended, and using CNAME records is preferred over using A records.
The IP address associated with a hosting account cannot be found in the control panel, but you can find it yourself. To do so, you will need to look up the IP address associated with your account’s main domain.
You can find the IP address using the
dig utility installed on macOS or Linux, or use a web-based tool, like Google’s Dig tool. In the web tool, enter your account’s main domain (see screenshot above) and click the button saying “A”. You can find the IP address in the resulting output.
For subdomains, you can create a CNAME record pointing your subdomain to the main domain of your account.