How do the domains work?

August 7, 2018 289 views
Networking Ubuntu

Hi,

I don't understand how the domains work, I mean, if I want to add a domain I just have to introduce the domain name. Then can I add any domain I want? Can I make that google.com redirects to my website?

I suppose that is a silly question but I don't really get it.

Thanks!

2 Answers
lampreyOne August 7, 2018
Accepted Answer

When you register a domain with a company like GoDaddy or Namecheap, they put a list of "Nameservers" in a database for you. Anyone asking where your domain is ultimately hits that authoritative database that then delegates to your own nameservers which report on the domain's IP.

If you want to use Digital Ocean's nameservers, you tell GoDaddy to point your domain at DO's nameservers, and then tell DO what IP each domain resolves to.

You could tell DO that google.com resolves to your IP, but nobody is going to ask Digital Ocean what google.com's IP is.

getting a domain is the easiest part..once it's live, anyone will be able to access it from google..actually i started my essay typing online project i learned that getting direct clicks from google is so challenging..guess you should learn a little bit about seo if you want to draw more views..good luck

Have another answer? Share your knowledge.