Fix bug of the ddns recipe.

The recipe should run without error when dhcp server is not running.