Bug 790003

Summary: Domain name of just numbers are considered as valid.
Product: Red Hat Enterprise Linux 6 Reporter: Gowrishankar Rajaiyan <grajaiya>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED NOTABUG QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-14 14:55:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gowrishankar Rajaiyan 2012-02-13 13:02:55 UTC
Description of problem:

This was detected by Amith as part of IPA Test Day.

While adding a dnsrecord with --kx-exchanger=$$, the shell expands the value to PID of current process and the record is added successfully. Domain name of just numbers should not be considered as valid.

Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120127T0607zgit6863b8f.el6.x86_64

How reproducible:
Always

Steps to Reproduce:

[root@zetaprime ~]# ipa dnsrecord-add lab.eng.pnq.redhat.com @ --kx-exchanger="$$" --kx-preference=99
  Record name: lab.eng.pnq.redhat.com
  KX record: 99 21498
[root@zetaprime ~]# 
  
Actual results:
record gets added successfully when you specify with $$ for --kx-exchanger option. (--kx-exchanger="$$")

Expected results:
Should error out as:
ipa: ERROR: invalid 'kx_exchanger': invalid domain-name: only letters, numbers, and - are allowed. - must not be the last name character

Additional info:

Comment 2 Rob Crittenden 2012-02-13 14:45:52 UTC
There is nothing we can do about this if the shell is messing with characters.

What is the desired outcome, specific documentation on what characters need to be escaped?

I'm tempted to close this as WONTFIX.

Comment 4 Gowrishankar Rajaiyan 2012-02-13 17:48:47 UTC
bind appends the current zone to the dns name. Hence this seems to be valid. Please mark it as NOTABUG.

Comment 5 Martin Kosek 2012-02-14 14:55:19 UTC
As discussed, this is a valid hostname. RFC says, that just the top level domain cannot be numerical. Details can be checked in RFC 1123:

http://tools.ietf.org/html/rfc1123

Closing as NOTABUG.