-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow TXT records #142
Allow TXT records #142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be reasonably DRY.
@@ -23,3 +23,8 @@ net: | |||
protocol: tcp | |||
port: 5269 | |||
target: xmpp2 | |||
txt: | |||
- label: example.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeating the domain FQDN as label is not DRY, i think we should use explicit YAML ~
or leave the label unspecified to specify a "null" label.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A ~
shows up as an empty string (which is probably yet another part of #135), but leaving the label unspecified works.
tools/lib/palletjack2zones.rb
Outdated
if domain['net.dns.txt'] | ||
domain['net.dns.txt'].each do |record| | ||
txt = DNS::Zone::RR::TXT.new | ||
txt.label = record['label'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| absolute_domain_name
Update
palletjack2zones
to allow TXT records to be specified in the warehouse and output to the zone.Closes #130.