Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Found a bug with TXT records?

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 792 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nublaii
      last edited by

      I was setting up a mail server and I needed to add a TXT record to the firewall, running pfsense 2.1

      In the 'Services' -> 'DNS forwarder' -> 'Advanced' field I wrote this line:

      txt-record=example,'v=spf1 mx -all'
      

      And when I check from the console this is what I get:

      ;; ANSWER SECTION:
      example.com.		1	IN	TXT	"v=spf1 --mx ---all"
      

      I tried adding it manually using 'Diagnositics' –> 'edit file' and entering filename '/usr/local/etc/dnsmasq.conf'

      txt-record=example.com,v=spf1 mx -all
      

      After restarting the output is as expected:

      ;; ANSWER SECTION:
      example.com.		1	IN	TXT	"v=spf1 mx -all"
      
      1 Reply Last reply Reply Quote 0
      • P Offline
        phil.davis
        last edited by

        The code that parses the text in the Advanced box allows the parameters to be separated by spaces. It puts "–" in front of every space-separated chunk of text. That does not work in your case! The code has to either be smarter and parse the input more (like ignoring space inside of quoted strings) or disallow space-separated parameters - make people put a new-line between every parameter.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.