Lightweight DNS caching, forwarder and DHCP server