Bug 790003 - Domain name of just numbers are considered as valid.
Summary: Domain name of just numbers are considered as valid.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 13:02 UTC by Gowrishankar Rajaiyan
Modified: 2012-02-14 14:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-14 14:55:19 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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