summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-02-24 14:15:24 +0100
committerMartin Kosek <mkosek@redhat.com>2012-02-27 16:50:08 +0100
commitcbb3bfae23267270e1310c1c1e23b1aed78fe9c6 (patch)
tree13353c19e0b8b45447f190ef266cc21f3ba1ae3a /ipapython
parent357cb654fa052c0f72d8c05dc396d47131bc254b (diff)
downloadfreeipa-cbb3bfae23267270e1310c1c1e23b1aed78fe9c6.tar.gz
freeipa-cbb3bfae23267270e1310c1c1e23b1aed78fe9c6.tar.xz
freeipa-cbb3bfae23267270e1310c1c1e23b1aed78fe9c6.zip
Add reverse DNS record when forward is created
Adding reverse DNS record may be a time consuming task, especially for IPv6 addresses. Having a way to automatically create a reverse record when a forward record is created could speed up the process. host-add command already has this possibility. This patch takes advantage of the new per-type API and adds new options for A/AAAA record types: --a-create-reverse and --aaaa-create-reverse. These commands can be used to automatically create reverse records for new A/AAAA addresses (both forward and reverse zones need to be managed by FreeIPA server): ipa dnsrecord-add example.com foo --a-rec=10.0.0.1 --a-create-reverse This command would add a new A record to record foo in zone example.com and a PTR record to appropriate reverse zone for IP address 10.0.0.1 (for example PTR record 1 in zone 0.0.10.in-addr.arpa. pointing to foo.example.com.). Few modification were done to new DNS API to support this feature: - Refactor --ip-address option handling from host-add and place it to dns.py to be used by both modules - Add support for "extra" per-type options - Hide DNS record part options in dnsrecord_find command as they have no effect for this command https://fedorahosted.org/freeipa/ticket/2009
Diffstat (limited to 'ipapython')
0 files changed, 0 insertions, 0 deletions