Hide Forgot
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:
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.
bind appends the current zone to the dns name. Hence this seems to be valid. Please mark it as NOTABUG.
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.