1

Recently while trying to grasp some basic networking concepts - I felt subdomain and subnetting are related concepts and wanted this group to confirm and add more insights on this.

I understand that network administrator can define network boundary within an organization by creating sub domains. let say for example : microsoft.com can have two sub domains for India and Seattle like : ind.microsoft.com and sea.microsoft.com

In order to identify above sub domains (small network within organization) network administrator can decide to create subnet mask and need not to have separate public IP's for these two sub networks. Is this understanding correct or there are more nitigrities and deeper concepts behind this ?

Teun Vink
  • 17,233
  • 6
  • 44
  • 70
  • 1
    For an excellent FAQ about subnetting, check out https://networkengineering.stackexchange.com/questions/7106/how-do-you-calculate-the-prefix-network-subnet-and-host-numbers – Zac67 Mar 12 '20 at 09:40
  • No, not at all related. – Ron Maupin Mar 12 '20 at 14:18

1 Answers1

3

DNS and IP are two independent concepts. In an IP network, you take a block of IPs, for example the private range 192.168.0.0/16, and divide it into smaller blocks, for example 192.168.1.0/24, 192.168.2.0/24 and so on. This divides the big network 192.168.0.0/16 into 256 independent networks in my example, and can be individually described with their own network address in a route for example, you can still collectively refer to them as the /16 network for aggregate routes for example. Thus, we have "subnetted" the larger network into subnetworks.

DNS has similar concepts, but it's entirely separate from IP. DNS is essentially a globally distributed hierarchical database, where different servers are authoritative for different zones. Zones can be defined as essentially anything, but commonly it's one subdomain. So in your example sea.microsoft.com. there would be at least 4 zones. First is the root zone, or the trailing . that contains the records over which servers are authoritative for each tld. Next is the .com zone, which contains records for the servers of each domain. Third is .microsoft, forth is sea. Normally, people define the first part of the DNS record that isn't a tld as the domain (in this case microsoft), and anything after that is a subdomain. But, the subdomain can contain anything, not only IP addresses, and DNS records usually contain only host IPs, for example the mail server IP addresses for sea.microsoft.com. As such, while you can define some sort of logic between your IP blocks and subdomains, there's not relation between the two.

The only exception is reverse lookup records for public IP addresses, but that's another topic entirely.

Stuggi
  • 2,269
  • 1
  • 13
  • 33
  • thanks Stuggi !! so i understand correctly than in above example sea DNS server in forth zone will have DNS records with hosts and there public IPs, right ? Now these public IPs are finally subnetted by means of private IP blocks. – rahulaga-msft Mar 13 '20 at 02:26
  • Almost, sea cloud be a fourth zone, or a host record in the third zone microsoft, depends on how it's configured. A zone can span multiple levels of records. The records can contain anything, but usually it's either an IP address or another DNS record. Subnets are just smaller chunks of IP addresses, doesn't matter if they are private or public, which is another discussion. – Stuggi Mar 13 '20 at 06:54