TXT / SPF records with spaces are split into multiple values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Undecided
|
Graham Hayes |
Bug Description
Hi,
Observed that creation of TXT or SPF records that have " " (empty spaces) from CLI or Dashboard produces invalid records. That was already briefly discussed on the last Designate meeting:
1. Create a record like:
[root@openstack ~]# openstack recordset create --records "v=spf1 a mx a:mail.
2e7-fc37a198ccfd testspf9.
+------
| Field | Value |
+------
| action | CREATE |
| created_at | 2018-03-
| description | None |
| id | 16003c9d-
| name | testspf9.
| project_id | b8a1e1371d22406
| records | v=spf1 a mx a:mail.
| status | PENDING |
| ttl | None |
| type | SPF |
| updated_at | None |
| version | 1 |
| zone_id | 50bb30dd-
| zone_name | openstack.tech. |
+------
[root@openstack ~]#
2. And it looks fine if we just check via recordset show:
[root@aio1-
+------
| Field | Value |
+------
| action | NONE |
| created_at | 2018-03-
| description | None |
| id | 16003c9d-
| name | testspf9.
| project_id | b8a1e1371d22406
| records | v=spf1 a mx a:mail.
| status | ACTIVE |
| ttl | None |
| type | SPF |
| updated_at | None |
| version | 1 |
| zone_id | 50bb30dd-
| zone_name | openstack.tech. |
+------
3. But checking it with dig directly gives us:
[root@aio1-
; <<>> DiG 9.9.4-RedHat-
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64319
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;testspf9.
;; ANSWER SECTION:
testspf9.
;; AUTHORITY SECTION:
openstack.tech. 300 IN NS ns1-1.example.tech.
;; Query time: 0 msec
;; SERVER: 127.0.0.
;; WHEN: Mi Mär 14 11:46:03 UTC 2018
;; MSG SIZE rcvd: 175
Notice that reply is many strings instead of one: "v=spf1" "a" "mx" "a:mail.
Tested on stable/pike.
Changed in designate: | |
assignee: | Dmitry Galkin (galkindmitrii) → Dr. Jens Harbott (j-harbott) |
Changed in designate: | |
assignee: | Dr. Jens Harbott (j-harbott) → Graham Hayes (grahamhayes) |
Designate meeting logs:
http:// eavesdrop. openstack. org/meetings/ designate/ 2018/designate. 2018-03- 07-14.13. log.html