RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 907913 - ipa dnsrecord-add does not allow top level domains with numbers
Summary: ipa dnsrecord-add does not allow top level domains with numbers
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-05 14:19 UTC by Ann Marie Rubin
Modified: 2015-01-21 15:42 UTC (History)
4 users (show)

Fixed In Version: ipa-3.2.1-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 13:17:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ann Marie Rubin 2013-02-05 14:19:21 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3385

The following check is too strict:

{{{
ipa dnsrecord-add idm.lab.bos.redhat.com TBADTEST0 --ns-hostname=TBADTEST.TBADTEST0
ipa: ERROR: invalid 'ns_hostname': invalid domain-name: top level domain label must be alphabetic
}}}

Note:
I hit on this when trying to set up AD trust. TBADTEST0 was configured by AD installer when NETBIOS domain inferred from the domain collided with the NETBIOS computer name. So it can happen without admins trying fancy configuration.

Comment 1 Martin Kosek 2013-03-15 11:54:41 UTC
In the end, we decided to drop this particular check altogether. As Petr Spacek confirmed, zones violating this rule does no harm to bind/bind-dyndb-ldap.

Fixed upstream:

master: https://fedorahosted.org/freeipa/changeset/8de6c3fa90e44ab3a157d5022f532e5604b0bfe2
ipa-3-1: https://fedorahosted.org/freeipa/changeset/a0f853c0895a4e33f6900614f3dc4694327f7714

Comment 4 Scott Poore 2014-01-29 22:11:31 UTC
Verified.

Version ::

ipa-server-3.3.3-15.el7.x86_64

Results ::

[root@rhel7-4 ~]# ipa dnsrecord-add example.com TBADTEST0 --ns-hostname=TBADTEST.TBADTEST0.
ipa: ERROR: Nameserver 'TBADTEST.TBADTEST0.' does not have a corresponding A/AAAA record

[root@rhel7-4 ~]# cat /etc/resolv.conf
search example.com
nameserver 192.168.122.74

[root@rhel7-4 ~]# hostname
rhel7-4.example.com

[root@rhel7-4 ~]# nslookup rhel7-4.example.com
Server:		192.168.122.74
Address:	192.168.122.74#53

Name:	rhel7-4.example.com
Address: 192.168.122.74

[root@rhel7-4 ~]# ipa dnszone-add TBADTEST0. --name-server=rhel7-4.example.com. --admin-email=ipaqar.redhat.com
  Zone name: tbadtest0.
  Authoritative nameserver: rhel7-4.example.com.
  Administrator e-mail address: ipaqar.redhat.com.
  SOA serial: 1391033230
  SOA refresh: 3600
  SOA retry: 900
  SOA expire: 1209600
  SOA minimum: 3600
  BIND update policy: grant EXAMPLE.COM krb5-self * A; grant EXAMPLE.COM krb5-self * AAAA; grant
                      EXAMPLE.COM krb5-self * SSHFP;
  Active zone: TRUE
  Dynamic update: FALSE
  Allow query: any;
  Allow transfer: none;

[root@rhel7-4 ~]# ipa dnsrecord-add TBADTEST0 TBADTEST --a-rec=2.2.2.1
  Record name: TBADTEST
  A record: 2.2.2.1

[root@rhel7-4 ~]# ipa dnsrecord-add example.com TBADTEST0 --ns-hostname=TBADTEST.TBADTEST0.
  Record name: TBADTEST0
  NS record: TBADTEST.TBADTEST0.

Comment 5 Ludek Smid 2014-06-13 13:17:41 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.