Commit c38b4ff7 authored by Julian Kornberger's avatar Julian Kornberger

Quotes for TXT records added

parent 8d6fe82e
......@@ -110,8 +110,9 @@ class Zone
def txt(*args)
ttl = extract_ttl! args
text = args.pop
text = args.pop.to_s.strip
name = args.pop || '@'
text = "\"#{text}\"" if text =~ /\s/
push :txt, name, ttl, text: text
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment