How can you check who hosts a website?
Look up the website's DNS. Run nslookup -type=ns on Windows or dig ns on macOS and Linux to see its nameservers, then find its IP address and run a WHOIS lookup on that IP: the organisation that holds the IP range is usually the host, or its data center. HTTP headers and MX records add clues. If the IP belongs to a CDN such as Cloudflare, the real host stays hidden.
Online web hosting checkers run the same lookups for you. Doing this web hosting lookup yourself takes two minutes and shows where the answer comes from. Below, replace example.com with the site and 203.0.113.10 with the IP you find.
1. Check the nameservers
Open Command Prompt or PowerShell on Windows, or Terminal on macOS and Linux:
nslookup -type=ns example.com
dig ns example.com +short
nslookup works on all three systems; dig is for macOS and Linux. Names like ns1.somehost.com often point to the hosting company. But nameservers show who runs the DNS, which can be the registrar, Cloudflare or a DNS service while the site lives elsewhere, so treat them as a first clue. New to the terms? Read DNS kya hai.
2. Find the IP address and who owns it
Get the server's IP address from the domain's A record:
nslookup example.com
dig a example.com +short
Check www.example.com too. If it is a CNAME, Windows lists it under Aliases and dig +short prints the target name before the IP; that name often belongs to the hosting platform.
Then ask who holds that IP range. On macOS and Linux:
whois 203.0.113.10
If dig or whois is missing on Ubuntu or Debian, run sudo apt install bind9-dnsutils whois. Windows has no built-in whois command, so use a web-based IP WHOIS lookup or the whois search on a registry's website.
Regional registries hand out IP addresses: APNIC for Asia-Pacific, including India (some Indian networks go through IRINN, India's registry under APNIC), ARIN for North America and RIPE NCC for Europe. In the result, look for:
| Field | What it tells you |
|---|---|
netname, descr, org-name (APNIC, RIPE) or OrgName (ARIN) | Who the range is assigned to: usually the host, its data center or its network provider |
country | The country on the registration, not proof of where the server sits |
| Abuse contact | Where to report spam, phishing or hacking from that IP |
A reverse lookup can add a clue, as many hosts name servers after themselves: nslookup 203.0.113.10 on Windows, or dig -x 203.0.113.10 +short on macOS and Linux. One catch: the IP owner may be a data center or network provider, not the brand you pay, since many hosts rent their servers.
3. Read the HTTP response headers
The server's response headers can name its software and sometimes the platform:
curl -I https://example.com
curl is built into macOS, most Linux systems and current Windows 10 and 11. In Windows PowerShell 5.1, curl is an alias for a different command, so type curl.exe -I https://example.com; plain curl works in Command Prompt. Look at:
server: the web server software, such asLiteSpeed,nginx,ApacheorMicrosoft-IIS, orcloudflarewhen Cloudflare is in front.x-powered-by: the language or app, such as a PHP version or ASP.NET.cf-ray,viaorx-cache: a CDN or cache sits in between.- Any header naming a hosting platform or website builder: the strongest clue here.
Treat headers as hints: thousands of hosts run the same software, and owners can remove or change any header.
4. Check the MX records for email
Email is often hosted apart from the website. MX records show which servers receive the domain's mail:
nslookup -type=mx example.com
dig mx example.com +short
Names ending in google.com mean Google Workspace, outlook.com Microsoft 365, and zoho.com or zoho.in Zoho Mail. A name like mail.example.com usually means email runs on the web host's server, as with cPanel hosting; look up its IP and run whois to confirm. Planning a move? Note the MX records first so email keeps working.
Why Cloudflare and other CDNs hide the real host
A CDN or website firewall sits in front of the server. With Cloudflare's proxy on, the A record points to Cloudflare's IP addresses, the IP WHOIS says Cloudflare and the server header says cloudflare. Visitors never reach the real server, the origin, so its IP is not published.
Cloudflare nameservers alone hide nothing: a record set to DNS only still shows the real IP. The proxy does the hiding. If the site is yours, the DNS page in your Cloudflare account shows the origin IP. To report abuse, use the CDN's abuse process, which can pass the report to the host.
Domain registrar vs web host
One website can involve four providers, and the registrar is often not the host:
| Role | What it does | How to find it |
|---|---|---|
| Domain registrar | Registers and renews the domain | WHOIS on the domain: the Registrar line |
| DNS provider | Runs the nameservers | NS records |
| Web host | Runs the server with the site's files | A record, then WHOIS on the IP |
| Email host | Receives the domain's email | MX records |
Run whois example.com on macOS or Linux, or use a domain WHOIS lookup. Owner details are usually hidden for privacy, but the registrar, dates and nameservers show. RapidServer does not sell domains: you keep yours at any registrar and point its nameservers to us.
How to tell if a website is hosted in India
There is no exact test. country: IN in an IP WHOIS record means the range is registered to an organisation in India, not that the server is here. IP geolocation is only approximate, sometimes wrong even about the country, and a CDN answers from many cities at once.
Response time is a better hint. Run ping example.com on Windows or ping -c 4 example.com on macOS and Linux from an Indian connection. From our Mumbai data center, Indian cities are about 1 to 30 ms away and Singapore about 55 ms, so quick replies suggest the server, or a CDN node, is in India. Some servers ignore ping, so silence proves nothing. The surest answer is a host that names its city: our web hosting runs in Mumbai (BOM1). See our data centers.
What to do with the answer
- It is your own site. You now know where to log in and who bills you. Download a full backup first.
- You want to move hosts. Copy and test the site on the new host before switching DNS; see website migration without downtime. RapidServer web hosting includes free migration (one site on the entry plan): send us your old host's cPanel backup or login and we move files, databases and email.
- You are reporting abuse. Email the abuse contact from the IP WHOIS with the full URL and what you saw.
- You are choosing a host. Compare on the points in how to choose web hosting in India.
cPanel web hosting on LiteSpeed and NVMe in Mumbai from ₹49/mo on a 3-year term plus 18% GST, with free SSL, business email and free migration. Your domain stays with your registrar.
See web hosting plansQuestions
Who is hosting this website, and can I check for free?+
nslookup example.com or dig a example.com +short, then run a WHOIS lookup on that IP. The organisation holding the range is usually the host or its data center.Is an online website hosting checker accurate?+
Can I find the host of a website behind Cloudflare?+
Is the domain registrar the same as the hosting provider?+
Website kis company par hosted hai, kaise pata karein?+
nslookup example.com likhiye, IP address mil jaayega. Phir us IP ka WHOIS lookup kariye; jis company ke naam IP range hai, wahi aksar hosting company ya uska data center hota hai. IP Cloudflare ka nikle to asli host chhupa hai.