Hide Forgot
Description of problem: After install ipa-client and then uninstalling, then deleting the host record. The forward dns record was removed, but the reverse dns record was not and it can not be deleted manually. And can not add the host again. ldap server entry: <snip> # 34, 62.16.10.in-addr.arpa., dns, testrelm dn: idnsname=34,idnsname=62.16.10.in-addr.arpa.,cn=dns,dc=testrelm objectClass: top objectClass: idnsrecord pTRRecord: f14-client.testrelm. idnsName: 34 </snip> ipa host-add: # ipa host-add --ip-address=10.16.62.34 f14-client.testrelm ipa: ERROR: This IP address is already assigned. ipa dnsrecord-del: # ipa host-add --ip-address=10.16.62.34 f14-client.testrelm ipa: ERROR: This IP address is already assigned. [root@f14-server ~]# ipa dnsrecord-del Zone name: 62.16.10.in-addr.arpa. Record name: 34 ipa: ERROR: Neither --del-all nor options to delete a specific record provided. Version-Release number of selected component (if applicable): freeipa-server-2.0-0.20110222T1825Zgit397da3f.fc14.x86_64 freeipa-admintools-2.0-0.20110222T1825Zgit397da3f.fc14.x86_64 How reproducible: Steps to Reproduce: 1. see description 2. 3. Actual results: Expected results: Additional info: The errror message: "ipa: ERROR: Neither --del-all nor options to delete a specific record provided." is incorrect and not helpful.
Please use the --del-all switch as ipa asks you to.
reopening bug as interactive mode does not use --del-all ... or prompt for record type, maybe it should assume --del-all ?
I guess it should either prompt to ask if you really want to delete all, or prompt to ask for the record type to delete.
(In reply to comment #3) > I guess it should either prompt to ask if you really want to delete all, or > prompt to ask for the record type to delete. By this I mean it could present a list of records and "all" would be an option. HTH
https://fedorahosted.org/freeipa/ticket/1018
Upstream commit: master: 585083c1d7a0069579d45b17adb39ad8f522c3f6
Verified # ipa dnsrecord-del Zone name: 64.16.10.in-addr.arpa. Record name: 99 No option to delete specific record provided. Delete all? Yes/No (default No): Yes ------------------- Deleted record "99" ------------------- ipa-server-2.1.1-4.el6.x86_64
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: DNS forward and reverse entries are stored discretely. Removing one does not remove the other unless specifically requested and it was unclear how one would do that. Consequence: The user would not know how to proceed to remove the required entries in order to re-add a host. Fix: A new interactive mode was added to the CLI to walk the user through removing the required entries. Result: It is now more straightforward and understandable to remove all DNS entries for a host.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1533.html