How to Connect a Hostinger Domain to Firebase

DevBlog

Feb 23, 2026 · 4 min read · 41 views

How to Connect a Hostinger Domain to Firebase

Building a website is an exciting project. After you deploy your app or site on Firebase, you want it to have a professional look. Using a custom domain from Hostinger is the best way to do this. This guide shows you how to link your Hostinger domain to your Firebase project. The process is simple and does not require advanced technical skills. Follow these steps to get your site live on your own URL.

Domain name: https://hostinger.in?REFERRALCODE=1HVAMAANPWLU

Getting Started in the Firebase Console

First, you must log into your Firebase account. Navigate to the project you want to connect. On the left side of the screen, find the Build menu. Click on it and then select Hosting.

Once you are in the Hosting section, you will see your default Firebase domains. These usually look like your-project.web.app. Look for a button that says Add custom domain. Click this button to start the connection process.

Entering Your Domain Information

Firebase will ask for your domain name. Open a new tab and log into your Hostinger account. Go to the Domains section to find the exact name of the domain you bought. For example, it might be learningforliving.com.

Copy your domain name and go back to Firebase. Paste it into the box. Make sure there are no extra spaces at the beginning or end. At this stage, do not check the box for a redirect. Just enter the root domain without the www part. Click continue to move to the next step.

Updating DNS Records in Hostinger

Firebase will now show you specific records you need to add to your Hostinger account. It will also tell you if you need to remove any old records. This step verifies that you own the domain.

To manage these records, follow these steps in Hostinger:

  1. Click on Manage next to your domain.

  2. Select DNS / Name Servers on the left menu.

  3. If you have used this domain for a different project before, click Reset DNS records. This gives you a clean slate.

Adding the A Record

Firebase provides an IP address for an A record. Copy this value. In your Hostinger DNS settings, look at the "Manage DNS records" section.

  • Set the Type to A.

  • Set the Name to @ (this represents your root domain).

  • Paste the IP address into the Points to field.

  • Click Add Record.

If Hostinger says there is a conflict, look at the list of existing records below. Firebase usually wants you to delete an old A record that points to a different IP. Find that old record, click delete, and then try adding the new Firebase A record again.

Adding the TXT Record

Next, you need to add a TXT record for verification. Firebase will provide a long string of letters and numbers.

  • Change the Type to TXT.

  • Keep the Name as @.

  • Paste the long string into the TXT value box.

  • Click Add Record.

Record TypeNameValuePurposeA@Provided IP AddressPoints domain to Firebase serversTXT@Unique Firebase StringVerifies domain ownership

Verifying the Connection

After you add the records, go back to the Firebase console. Click the Verify button. Do not worry if it does not work right away. DNS changes need time to spread across the internet. This is called propagation.

Propagation can take up to 24 hours. However, it often finishes in 20 minutes to an hour. If Firebase shows an error, wait a little while and refresh the page. Once it sees the new records, the status will change to Connected.

Connecting the WWW Version of Your Site

Now your root domain works, but people often type www.yourdomain.com. You need to add this version separately. Click Add custom domain again in Firebase. This time, type your domain with the www at the front.

Firebase will ask you to add a CNAME record for this version.

  1. Copy the value Firebase provides.

  2. Go back to Hostinger DNS settings.

  3. Set the Type to CNAME.

  4. Set the Name to www.

  5. Paste the value into the Target box.

  6. Click Add Record.

If there is already a CNAME record for www, delete the old one first. Just like before, you will need to wait for this to propagate. Once it finishes, both your root domain and the www version will lead to your Firebase site.

reference:https://youtu.be/9FArEx-JgfU?si=TysvJvFJf3mvEs_3

Conclusion

Connecting Hostinger to Firebase is a vital step for your website. By adding the A, TXT, and CNAME records, you ensure your visitors can find your site easily. Always remember to delete conflicting records to avoid errors during the setup.

If you follow these steps, your custom domain should be fully active within a few hours. This makes your project look professional and helps with your brand. If the records do not verify immediately, stay patient and check back later. Your site will be up and running soon.