The switch is not made to handle network services like DHCP or DNS.....
Your computer can handle this when connected to your modem. What most people do is to buy a router. You then plug the modem into the router and your computer into the back of the router. The back area of the router is a switch. The front area of the router is made to get the settings from your modem and pass them to the switch.