Add privileges for accessing DNS Resolver
Various cleanups and shuffle of fields
Ensure if port is configured it is then used