updated script to allow unified dns lookup