Correct generating dns name