#2306 Problem with space in DNS record
Closed: Fixed None Opened 12 years ago by edewata.

Some DNS record operations fail if the record value contains a space. See the following examples:

Adding a TXT record with a space using --txt-rec doesn't work:

# ipa dnsrecord-del test.com test --txt-rec="Hello World"
ipa: ERROR: invalid 'txt_rec': format must be specified as "DATA"  (see RFC 1035 for details)

Adding a TXT record with a space using --txt-data works:

# ipa dnsrecord-add test.com test --txt-data="Hello World"
  Record name: test
  TXT record: Hello World

Getting the TXT record containing a space without --structured works:

# ipa dnsrecord-show test.com test
  Record name: test
  TXT record: Hello World

Getting the TXT record containing a space with --structured generates an error:

# ipa dnsrecord-show test.com test --structured
ipa: ERROR: an internal error has occurred

Modifying the TXT record that contains a space doesn't work:

# ipa dnsrecord-mod test.com test --txt-rec="Hello World" --txt-data="Test"
ipa: ERROR: invalid 'txt_rec': format must be specified as "DATA"  (see RFC 1035 for details)

Deleting a specific TXT record that contains a space doesn't work:

# ipa dnsrecord-del test.com test --txt-rec="Hello World"
ipa: ERROR: invalid 'txt_rec': format must be specified as "DATA"  (see RFC 1035 for details)

If the value doesn't contain a space all of the above operations will work just fine.


Metadata Update from @edewata:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/02

7 years ago

Login to comment on this ticket.

Metadata