Do not recommend how to configure DNS in error message

The best way to configure DNS depends on the environment and no general
recommendations should be given by the CLI or Web UI. Especially
forwarders should not be recommended by only be option of last resort.

Fixes https://fedorahosted.org/freeipa/ticket/3261
This commit is contained in:
Sumit Bose
2012-12-03 12:16:56 +01:00
committed by Rob Crittenden
parent a45125f78d
commit a9bac3d600

View File

@@ -354,19 +354,15 @@ sides.
instructions.append(_("Forward policy is defined for it in IPA DNS, " instructions.append(_("Forward policy is defined for it in IPA DNS, "
"perhaps forwarder points to incorrect host?")) "perhaps forwarder points to incorrect host?"))
except (errors.NotFound, KeyError) as e: except (errors.NotFound, KeyError) as e:
instructions.append(_("IPA manages DNS, please configure forwarder to " instructions.append(_("IPA manages DNS, please verify "
"'%(domain)s' domain using following CLI command. " "your DNS configuration and "
"Make sure to replace DNS_SERVER and IP_ADDRESS by " "make sure that service records "
"actual values corresponding to the trusted domain's " "of the '%(domain)s' domain can "
"DNS server:") % dict(domain=keys[-1])) "be resolved. Examples how to "
# tab character at the beginning of a multiline error message will be replaced "configure DNS with CLI commands "
# in the web UI by a colorful hint. Does not affect CLI. "or the Web UI can be found in "
instructions.append(_("\tipa dnszone-add %(domain)s --name-server=[DNS_SERVER] " "the documentation. " ) %
"--admin-email='hostmaster@%(domain)s' " dict(domain=keys[-1]))
"--force --forwarder=[IP_ADDRESS] "
"--forward-policy=only") % dict(domain=keys[-1]))
instructions.append(_("When using Web UI, please create DNS zone for domain '%(domain)s' "
"first and then set forwarder and forward policy.") % dict(domain=keys[-1]))
else: else:
instructions.append(_("Since IPA does not manage DNS records, ensure DNS " instructions.append(_("Since IPA does not manage DNS records, ensure DNS "
"is configured to resolve '%(domain)s' domain from " "is configured to resolve '%(domain)s' domain from "