Better, more robust and universal method of getting DNS A record.