Hide Forgot
Description of problem: running dnsrecord-del on a created record does not seem to destroy the record. Version-Release number of selected component (if applicable): ipa-server-2.0-0.2011011418gita68b2d2.fc14.x86_64 How reproducible: always Steps to Reproduce: 1. Create zone newzone1 1. ipa dnsrecord-add newzone1 as --a-rec 3.4.5.6 2. ipa dnsrecord-del newzone1 as 3. ipa dnsrecord-find newzone1 as 3b. dig as.newzone1 Actual results: [root@ipaqavmh ipa-dns]# ipa dnsrecord-del newzone1 as Record name: as A record: 3.4.5.6 [root@ipaqavmh ipa-dns]# ipa dnsrecord-find newzone1 as Record name: as A record: 3.4.5.6 ---------------------------- Number of entries returned 1 ---------------------------- Expected results: [root@ipaqavmh ipa-dns]# ipa dnsrecord-del newzone1 as Record name: as A record: 3.4.5.6 [root@ipaqavmh ipa-dns]# ipa dnsrecord-find newzone1 as ---------------------------- Number of entries returned 0 ----------------------------
A wild guess but I wonder if it wants the -a-rec 3.4.5.6 included. Can you verify that this works (or doesn't): ipa dnsrecord-del newzone1 as --a-rec 3.4.5.6 I guess the expectation would be that all records for machine 'as' would be removed, regardless of type?
You were right, adding the --a-rec 3.4.5.6 removed the a record. I suppose that this makes sense in that you may want to delete a specific entry within a entry. This may just end up being a doc bug. I'll have to think about what the behavior should be. At the very least, some better examples in the help section would be great.
https://fedorahosted.org/freeipa/ticket/816 Tacking either decision.
master: a641f1f23d40dec7dc596c9d6d2bf7265ea54f97