I'm studying DNS Server. So I try this.
Here is the flow when I request abc.com webpage from My PC.
- My PC (18.104.22.168) send DNS query to Router0. Router0 then forwarding to DNS Nameserver (10.0.0.2).
- DNS Nameserver return abc.com IP address to my PC through Router0.
- My PC send request to abc.com IP address to Router0. Router0 then forwarding to ABC Server (22.214.171.124 - forgot to write in the pic)
- ABC Server return HTTP page for my PC.
Thing works fine. But I want to create more webpage, i.e: def.com, igh.com, so I need to create more server. The problem is Router0 has only 3 ports (interface).
On my understanding, Switch component is use for connecting many device in a same subnet, i.e: ABC Server has many Server component so I can connect all of them to a Switch, then connect that Switch to Router0. So it can't be used to solve my problem, which is connect different subnet.
I have try to search Google: How to connect a router to multiple router/subnet but don't get the result.
I think maybe I haven't had enough Computer Network knowledge yet to think of solutions using other component than just Switch, Router.