Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpanded ALIAS in outgoing AXFR compresses target #6028

Closed
jpmens opened this issue Nov 30, 2017 · 1 comment · Fixed by #6029
Closed

Unexpanded ALIAS in outgoing AXFR compresses target #6028

jpmens opened this issue Nov 30, 2017 · 1 comment · Fixed by #6029

Comments

@jpmens
Copy link
Contributor

jpmens commented Nov 30, 2017

  • Program: Authoritative
  • Issue type: Bug

PowerDNS Authoritative Server 0.0.1994ge904bcb

I created the following record via the API:

{
   "comments": [],
   "name": "%s" % zone,
   "records": [{ "content": "ibm.com.", "disabled":False }],
   "ttl": 120,
   "type": "ALIAS"
},

The record correctly shows up in sqlite3:

sqlite> select * from records where domain_id = (select id from domains where name = 'blurb.com');
137|16|blurb.com|TXT|"ceci n'est pas une pipe"|120|0||0||1
138|16|blurb.com|ALIAS|ibm.com|120|0||0||1
139|16|blurb.com|NS|pdns.int|3600|0||0||1
140|16|blurb.com|SOA|pdns.pdns.int hostmaster.blurb.com 2 10800 3600 604800 3600|3600|0||0||1
141|16|www.blurb.com|A|1.1.1.1|60|0||0||1
142|16|blurb.com|A|127.0.0.1|60|0||0||1
sqlite> 

PowerDNS is configured to not expand aliases.

The outgoing AXFR

blurb.com.		3600	IN	SOA	pdns.pdns.int. hostmaster.blurb.com. 2 10800 3600 604800 3600
blurb.com.		60	IN	A	127.0.0.1
blurb.com.		3600	IN	NS	pdns.int.
blurb.com.		120	IN	TXT	"ceci n'est pas une pipe"
blurb.com.		120	IN	TYPE65401 \# 6 0369626DC012
www.blurb.com.		60	IN	A	1.1.1.1
blurb.com.		3600	IN	SOA	pdns.pdns.int. hostmaster.blurb.com. 2 10800 3600 604800 3600
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Nov 30 17:29:54 UTC 2017
;; XFR size: 7 records (messages 3, bytes 346)

The ALIAS's value is incorrect: it has a compressed label in it.

18:51 < ahu> so this is 3IBM and then a label pointer
18:51 < ahu> no this should not ever be in a record
18:51 < ahu> and it should not be compressed
18:51 < jpmens> that's what I thought
@Habbie
Copy link
Member

Habbie commented Nov 30, 2017

Confirmed on master.

Habbie added a commit to Habbie/pdns that referenced this issue Nov 30, 2017
Habbie added a commit to Habbie/pdns that referenced this issue Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants