My new apartment has a network box in one of the closets, and the living room and bedrooms each has an ethernet port in a wall. The installation tech for my internet provider said that the building activates a line to our unit, and in the network box there is a set of ethernet ports, one which is the main line from the internet provider, and others that map to the ethernet ports in the other rooms. He told us that if we wanted to use those other ethernet ports, we could setup a switch in the network box so that all the other ports will be connected to the main line, but I was wondering how the home network/router would work in this case?
Right now the mainline port connects to the living room port, and in the living room a router is connected to the ethernet port on the wall. If we setup a switch in the network box, and say in my bedroom I connect my desktop directly to the wall port, would I be connecting to the network created by the router? Or would the switch direct my traffic directly to the internet provider? My main concern here is I just want all the ethernet ports in the apartment to be active, but also have a router where I can setup custom DNS for PiHole. In this scenario, would the ethernet ports in the other rooms bypass the router's network?