Special Offers: Up to 75% OFF on Hostinger & High-RAM Contabo Cloud VPS available this month.Compare Plans

How to Point Cloudflare DNS to Contabo VPS and Hostinger (Fast Anycast Routing)

Marcus Sterling
Marcus SterlingNetwork Security Specialist
October 07, 2026
•
15 min read
•
4.9 / 5.0
Transparency Notice: This article contains affiliate links to hosting providers like Hostinger and Contabo. If you purchase through our links, we may earn a commission at zero extra cost to you. We only recommend products we personally benchmark and test. Read full disclosure.
How to Point Cloudflare DNS to Contabo VPS and Hostinger (Fast Anycast Routing)

Hostinger vs. Contabo: Full Specifications Breakdown

Data verified from our lab benchmarks • Updated for 2026

Feature / Metric
HostingerEditor's Choice UI
ContaboMax RAM Value
Starting Price$2.99 / month (Web) | $4.99 / mo (VPS)$5.50 / month (Cloud VPS S)
vCPU Cores1 to 8 vCPU (Dedicated resources)4 to 12 vCPU (High Core Count)
RAM Memory4 GB to 32 GB6 GB to 64 GB (Gigantic RAM)
Storage Technology50 GB – 400 GB NVMe SSD50 GB NVMe or 300 GB SSD
Traffic / Bandwidth4 TB to 32 TB32 TB Outgoing + Unlimited In
Control Panel & UIhPanel (Ultra Modern & Easy)cPanel, Plesk, Webmin, or CLI
Customer Support24/7 Live Chat & AI Support (Multi-lingual)Email Ticket Support (German Business Hours)
Best ForBloggers, WordPress Sites & Devs wanting easy UIHeavy Database, Docker, Game Servers & SysAdmins
Money-Back Guarantee30-Day Money-Back Guarantee14-Day EU Statutory Cancellation
Official LinksVisit HostingerVisit Contabo

Why Cloudflare DNS is an Essential Layer

Domain registrar DNS servers (such as GoDaddy or Namecheap) are notoriously slow, taking between 50ms and 200ms just to resolve a domain name before a visitor even downloads a single byte. Cloudflare operates the world's fastest Anycast DNS network (1.1.1.1) with global resolution times under 12ms. Furthermore, routing traffic through Cloudflare masks your Contabo VPS or Hostinger server IP, making targeted DDoS attacks virtually impossible.

Step 1: Adding Your Domain to Cloudflare

  1. Create a free account at Cloudflare.com.
  2. Click Add a Site and enter your root apex domain (e.g. example.com).
  3. Select the Free Plan and click Continue.
  4. Cloudflare will automatically scan and import your existing DNS records.

Step 2: Pointing Records to Your Server

Scenario A: Pointing to a Contabo VPS

Create an A Record pointing your root domain and www to your Contabo public IPv4 address:

  • Type: A | Name: @ | IPv4: YOUR_CONTABO_IP | Proxy status: Proxied (Orange Cloud)
  • Type: CNAME | Name: www | Target: example.com | Proxy status: Proxied

Scenario B: Pointing to Hostinger Web Hosting

Find your Hostinger server IP under hPanel -> Hosting -> Details:

  • Type: A | Name: @ | IPv4: YOUR_HOSTINGER_IP | Proxy status: Proxied
  • Type: CNAME | Name: www | Target: @ | Proxy status: Proxied

Step 3: Updating Nameservers at Your Domain Registrar

Cloudflare will assign you two unique nameservers (e.g. eva.ns.cloudflare.com and tom.ns.cloudflare.com):

  1. Log in to your domain registrar (Namecheap, GoDaddy, Porkbun, or Google Domains).
  2. Navigate to DNS Management and change the nameserver mode from "Default" to "Custom DNS".
  3. Paste the two Cloudflare nameservers and save changes.

Step 4: Configuring Cloudflare SSL/TLS Encryption Mode

Crucial Security Step: In the Cloudflare dashboard, navigate to SSL/TLS -> Overview. Ensure encryption mode is set to Full (Strict). Never select "Flexible," as "Flexible" leaves traffic between Cloudflare edge and your Hostinger/Contabo origin unencrypted, triggering infinite redirect loops.

Step 5: Restoring Real Visitor IPs in Nginx

When Cloudflare proxies traffic, your server access logs will show Cloudflare's edge IPs rather than actual visitor IPs. On Ubuntu Nginx, add Cloudflare's IP ranges to /etc/nginx/conf.d/cloudflare.conf so $remote_addr reflects true visitor identities:

sudo nano /etc/nginx/conf.d/cloudflare.conf
# Cloudflare IPv4 ranges
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 131.0.72.0/22;

real_ip_header CF-Connecting-IP;

Reload Nginx: sudo systemctl reload nginx.

Editorial Verdict: Pros & Cons

What We Love (Pros)

  • Fastest DNS resolution in the world with sub-10ms global edge lookup
  • Free unmetered DDoS mitigation shielding your origin server IP from attacks
  • Free Web Application Firewall (WAF) and bot-blocking rules

Drawbacks (Cons)

  • Orange cloud (Proxy mode) masks client IP addresses unless real-IP headers are restored in Nginx/Apache
#Cloudflare#DNS Setup#Contabo#Hostinger#CDN Security
Marcus Sterling

Written by Marcus Sterling

Network Security Specialist

Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.

Recommended Next Reads