DEV Community 👩‍💻👨‍💻

Discussion on: What's DNS?

Collapse
sanwal_chaudhry profile image
Sanwal Chaudhry

Thanks a lot. Could you please explain the last line of the article "this won't always work because you can have multiple websites running on the same server at the same IP address". If you can please explain this I would be very grateful to you.

Collapse
gabeguz profile image
Gabriel Guzman Author

Sure, I can have multiple CNAMES pointing to the same IP address, for example:

mysite.com -> 192.168.1.30
othersite.com -> 192.168.1.30
thirdsite.org -> 192.168.1.30

When I type 192.168.1.30 into my browser, the server won't know which website I'm asking for, so it will return either the default website for that server, or an error.