Use lookup() with NAS datacenter

Fixes #336