Fix NS lookups with DNS Server and DNS API

* Fix the DNS server so it resolves subdomains correctly and uses new API for map lookups
* implement getNS command
* remove old map lookup code
* add NS lookups to getIp4 and getIp6 commands