freeipa/ipalib
Martin Kosek cbb3bfae23 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
2012-02-27 16:50:08 +01:00
..
plugins Add reverse DNS record when forward is created 2012-02-27 16:50:08 +01:00
__init__.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
aci.py Fix uninitialized attributes. 2011-04-21 10:41:29 +02:00
backend.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
base.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
cli.py Add common helper for interactive prompts 2012-02-19 20:23:20 -05:00
config.py Finalize plugin initialization on demand. 2011-11-22 00:52:24 -05:00
constants.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
crud.py Fix LDAP object parameter encoding 2011-11-15 13:17:44 +01:00
dn.py Fix attempted write to attribute of read-only object. 2012-01-02 11:51:26 +03:00
encoder.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
errors.py Add common helper for interactive prompts 2012-02-19 20:23:20 -05:00
frontend.py Added commands into metadata. 2011-12-06 22:07:35 +00:00
krb_utils.py add session manager and cache krb auth 2012-02-09 13:20:45 -06:00
output.py Internationalization for HBAC and ipalib.output 2012-02-14 19:08:40 +01:00
parameters.py Base64-decode unicode values in Bytes parameters. 2012-02-13 22:21:50 -05:00
pkcs10.py Fix assorted bugs found by pylint 2011-01-25 14:01:36 -05:00
plugable.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
request.py Remove deprecated i18n code from ipalib/request and all references to it. 2011-03-01 10:31:36 -05:00
rpc.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
session.py add session manager and cache krb auth 2012-02-09 13:20:45 -06:00
text.py Fix regressions introduced by pylint false positive fixes. 2011-05-11 16:50:01 +02:00
util.py Ease zonemgr restrictions 2012-02-20 15:34:45 +01:00
x509.py Verify that the external CA certificate files are correct. 2011-08-23 01:23:41 -04:00