[agent] Allow registry IP address when user data has dns settings.

Change-Id: I5031deb69e06ad58f865df82e624415eb562c0a9
Merge "[agent] Allow registry IP address when user data has dns settings."