r/cpp • • 5d ago

What's the difference between cppreference .com and .net?

My duckduckgo googling started giving me both, I don't understand the difference and don't remember which one is the original

They both look exactly the same
.com has en. at the beginning
.net doesn't have accounts

.net has the picture, .com doesn't


Is it a typosquash, is one of them fake, what's going on?

11 Upvotes

12 comments sorted by

20

u/jedwardsol const & 5d ago

.com is the original

.net is a mirror. Maybe set up when .com was having issues? I seem to remember the .com was down a lot last year.

29

u/afforix 5d ago

It is explained on the About page: https://cppreference.net/about.html.

13

u/TheThiefMaster C++latest fanatic (and game dev) 5d ago

Though it for some reason links back to itself when it tries to link to the original.

2

u/SirClueless 3d ago

Maybe someone added something to rewrite all .com links to .net and it accidentally runs after adding that about page instead of before?

7

u/meetingcpp Meeting C++ | C++ Evangelist 5d ago

cppreference.net is registered in China, when you lookup the domain with whois. the .com seems to be hosted in the US.

So maybe within Chinas Internet this acts as a mirror.

4

u/rileyrgham 5d ago

2s Google : "cppreference.com is the official, original community-maintained wiki for C and C++ documentation, while cppreference.net is an unofficial mirror site.".

1

u/BookkeeperThese5564 DNKpp 20h ago

Whichever the original one may be; am I the only one who has trouble finding anything via the embedded search field? It mostly does not find anything recently, but I remember that it was working for the last couple of years...

-5

u/thisismyfavoritename 5d ago

they resolve to the same IP for me

9

u/guepier Bioinformatican 5d ago

They definitely don’t, unless you are running a custom DNS server.

2

u/thisismyfavoritename 5d ago

was from work so possible!

1

u/khedoros 5d ago

I see them on different IPs, but both in a block of IPs owned by Cloudflare.