#1145 DNS reverse zone check is failing
Closed: Duplicate None Opened 14 years ago by jhrozek.

ipa dnszone-add 4.4.4.in-addr.arpa
Authoritative nameserver: ipaqavmf.testrelm.
Administrator e-mail address [root.4.4.4.in-addr.arpa.]: 
  Zone name: 4.4.4.in-addr.arpa
  Authoritative nameserver: ipaqavmf.testrelm.
  Administrator e-mail address: root.4.4.4.in-addr.arpa.
  SOA serial: 2011310301
  SOA refresh: 3600
  SOA retry: 900
  SOA expire: 1209600
  SOA minimum: 3600
  Active zone: TRUE
  Dynamic update: FALSE
[root@ipaqavmf ~]# service named restart
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
[root@ipaqavmf ~]# ipa dnsrecord-add 4.4.4.in-addr.arpa 8 --ptr-rec=in.awesome.domain.
ipa: ERROR: invalid 'cn': IP address must have exactly 4 components

This is probably caused by:

666         else:
667             zone = zone.replace('.in-addr.arpa.','')
668             zone_len = 4
669 
670         if len(addr.split('.'))+len(zone.split('.')) != zone_len:
671             raise errors.ValidationError(name='cn', error=unicode('IP address must have exactly '+str(zone_len)+' components'))

We should either make the check smarter or enforce that reverse domains are fully qualified.


Closing as a duplicate to #1129.

Moving to the right milestone.

Metadata Update from @jhrozek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.1 - 2011/08 (Final)

8 years ago

Log in to comment on this ticket.

Metadata