Add warning message when localhos is used
Fix bug where the primary DNS address appears in the IOR twice DNS is enabled.