Does each domain have unique IP addresses?

I want to know if each domain address has a unique IP address? Also, where are these IP addresses located? and how does this redirect system work? When we try to access a website by writing a domain name, how many redirects does it have?

Thanks...

+6
dns ip
source share
4 answers

No: each domain does not have its own IP address.

Multiple domains can be hosted on the same server - and on the same IP address.
What is the idea of ​​Apache VirtualHosts, for example.


And one domain name can correspond to several different IP addresses.

For example, using the dig command in the google.fr domain, you will get (I just copied the output part):

 $ dig google.fr ;; ANSWER SECTION: google.fr. 71 IN A 74.125.230.81 google.fr. 71 IN A 74.125.230.82 google.fr. 71 IN A 74.125.230.83 google.fr. 71 IN A 74.125.230.84 google.fr. 71 IN A 74.125.230.80 


For more information, you should probably read the following Wikipedia entry: Domain Name System .

+10
source share

I want to know if each domain address has a unique IP address?

Not. There are domains with multiple IP addresses and IP addresses with multiple domains.

Also, where are these IPs located?

They are not located anywhere, they are the abstract address of any computer (s)

and how does this redirect system work? When we try to access a website by writing a domain name, how many redirects does it have?

What call forwarding system do you mean?

+3
source share

Not every domain address has a unique IP address. A single IP address can have more than one domain. Each domain has a DNS, and these DNSs point to a server that redirects different domains (with virtual hosts) for example.

+1
source share

No, each domain does not require its own dedicated IP address. IP addresses can be physically located anywhere. Redirection is usually done through user agents following the HTTP instructions.

Cm.

http://en.wikipedia.org/wiki/Domain_Name_System

http://en.wikipedia.org/wiki/HTTP

+1
source share

All Articles