DNS server in scala