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

Add PTR and NS Records to DNS Resolver possible?

Scheduled Pinned Locked Moved DHCP and DNS
99 Posts 14 Posters 31.6k 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.
  • D
    doktornotor Banned
    last edited by Oct 2, 2017, 10:38 AM

    AFAICT this shit wants/needs mDNS/Zeroconf and messing with Unbound will do zero useful work there. Perhaps look at Avahi instead.

    Junk.

    1 Reply Last reply Reply Quote 0
    • K
      kolpinkb
      last edited by Oct 2, 2017, 11:55 AM

      You can do either DNS records or mDNS.  I tried the mDNS discovery option in PaperCut NG Mobility print and my printer does show up in their Android app but I can an internal server error.  Also, I found the avahi daemon to crash intermittently with default settings.

      Would much prefer to get the DNS PTR records working.

      1 Reply Last reply Reply Quote 0
      • T
        trentuk
        last edited by Oct 5, 2017, 9:25 AM

        Thanks for offering to have a look at this johnpoz, very much appreciated!

        This site is using split DNS, by this I mean they're using the same domain internally as externally, thus you're probably correct that something is missing from the DNS config in pfSense and the Mobility Print client is then looking at the public DNS to find it and then receives NX.

        I've asked the IT Director if I can post the domain name here but they would prefer not to, therefore could we use 'yourdomain.ltd' whilst discussing the configuration?

        pfSense version: 2.3.4-RELEASE-p1

        System - General Setup - Domain: yourdomain.ltd

        DNS Resolver - System Domain Local Zone Type: Transparent

        Client DNS Suffix is: yourdomain.ltd

        Given the above information, would you suggest something along the following lines in DNS Resolver - Custom Options:

        b._dns-sd._udp.yourdomain.ltd. IN PTR pc-printer-discovery.yourdomain.ltd.
        lb._dns-sd._udp.yourdomain.ltd. IN PTR pc-printer-discovery.yourdomain.ltd.
        pc-printer-discovery.yourdomain.ltd. IN NS print-server-host.yourdomain.ltd.
        print-server-host.yourdomain.ltd. IN A XXX.XXX.XXX.XXX

        Many thanks in advance …

        1 Reply Last reply Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Oct 5, 2017, 9:36 AM

          I think OP really wants to configure SRV records for that, not PTR records.

          I would say the confusion knob is turned up to 11.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Oct 5, 2017, 9:47 AM

            I have downloaded the software, and yeah something is not right that is for sure with their instructions.

            Sorry to say I will most likely not get back this for a few days.. I got new internet at home 500/50 and it consuming my interest ;)

            What I noticed was didn't even see the client doing a dns query for the PTR.. I think the current mdns that was on the segment was confusing it, etc.  I will have to turn off the mdns on the printer, etc.  And need to run the mobility client on different machine than the papercut ng, etc.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • T
              trentuk
              last edited by Oct 5, 2017, 9:55 AM

              Hello Derelict,

              @Derelict:

              I think OP really wants to configure SRV records for that, not PTR records.

              I would say the confusion knob is turned up to 11.

              The software vendor specify a requirement for the following records:

              ;–-------------- Mobility Print records --------------

              b._dns-sd._udp      IN PTR pc-printer-discovery
              lb._dns-sd._udp      IN PTR pc-printer-discovery
              pc-printer-discovery IN NS  print-server-host
              print-server-host    IN A  XXX.XXX.XXX.XXX

              ;--------------- End of Mobility Print records ---------

              https://www.papercut.com/products/ng/mobility-print/manual/how-to-setup/step-2-configuration/discover-your-printers-using-dns/

              Which is possibly the cause of the confusion knob being turned past its recommended level  ;)

              1 Reply Last reply Reply Quote 0
              • T
                trentuk
                last edited by Oct 5, 2017, 3:39 PM Oct 5, 2017, 9:58 AM

                Hello johnpoz,

                No problem, glad I'm not the only one struggling with this  ???

                Enjoy the new connection, hopefully see you back here once you've downloaded the entire internet at blisteringly fast speeds ;)

                1 Reply Last reply Reply Quote 0
                • K
                  kolpinkb
                  last edited by Oct 5, 2017, 2:33 PM

                  Thanks again johnpoz,

                  This configuration has many of us perplexed.

                  Have fun with the new 500/50 connection.  I'm sure the increased upload is the best part.

                  1 Reply Last reply Reply Quote 0
                  • D
                    Derelict LAYER 8 Netgate
                    last edited by Oct 5, 2017, 4:38 PM

                    The software vendor specify a requirement for the following records:

                    ;–-------------- Mobility Print records --------------

                    b._dns-sd._udp      IN PTR pc-printer-discovery
                    lb._dns-sd._udp      IN PTR pc-printer-discovery
                    pc-printer-discovery IN NS  print-server-host
                    print-server-host    IN A  XXX.XXX.XXX.XXX

                    ;--------------- End of Mobility Print records ---------

                    The software vendor's confusion knob is turned up to at least 12. That makes no sense at all. PTR records do not have names on both sides. They are used to lookup a name when all you have is an address, like 198.51.100.101.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • L
                      luckman212 LAYER 8
                      last edited by Oct 5, 2017, 4:46 PM

                      They look like SRV records…. at least the left-hand side.... maybe you can "sniff" the correct format from a working setup using some form of dns-sd -Z

                      1 Reply Last reply Reply Quote 0
                      • K
                        kolpinkb
                        last edited by Oct 5, 2017, 5:04 PM

                        I think the software is looking to be a delegation server for a specific subdomain.

                        Base domain: example.com
                        Delegation server: mobility-print-host.example.com
                        subdomains to delegate: xxxxprinter.b._dns-sd._udp.pc-printer-discovery.

                        ???

                        1 Reply Last reply Reply Quote 0
                        • D
                          Derelict LAYER 8 Netgate
                          last edited by Oct 5, 2017, 5:10 PM

                          Unless the LHS of those PTR records is supposed to be replaced with at least part of an IP address, to be completed with .in-addr.arpa., they are nonsense.

                          Or we're going to need a lot more information about what it is they are trying to do.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

                          1 Reply Last reply Reply Quote 0
                          • K
                            kolpinkb
                            last edited by Oct 5, 2017, 5:11 PM

                            The configuration example on their website (that we've all shared here) is specifically for BIND.  Not sure if it translates 1:1 for Unbound.

                            1 Reply Last reply Reply Quote 0
                            • D
                              Derelict LAYER 8 Netgate
                              last edited by Oct 5, 2017, 5:12 PM

                              DNS is DNS is DNS. I have not looked at the document there.

                              Chattanooga, Tennessee, USA
                              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                              Do Not Chat For Help! NO_WAN_EGRESS(TM)

                              1 Reply Last reply Reply Quote 0
                              • K
                                kolpinkb
                                last edited by Oct 5, 2017, 5:15 PM

                                I get that.  But something with the way PTR records are handled internally in the software (BIND vs Unbound) must be different.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  doktornotor Banned
                                  last edited by Oct 5, 2017, 5:31 PM

                                  No it doesn't translate 1:1 for Unbound, plus, instead of copy-paste of nonsensical instructions they are providing, it'd be way more useful to explain what they are trying to implement. Is that shitty product trying to delegate some subdomain to their own nameserver/printserver, or what?

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by Oct 5, 2017, 6:04 PM

                                    Exactly dok from the few minutes I looked at it when I installed the trial is they seem to try and delegate the domain your using to the box running the mobility software.  I can tell you that when you install it does listen on 53.. But doesn't seem to answer queries for its own name or for those PTR even when you directly query it.

                                    I sniffed the papercut ng box when it was running the test to try and see exactly what it was doing a query for so could put in the correct stuff in unbound to what it was looking for.  But I didn't see it do any queries.  It sent out a mdns query that the printer answered directly etc.  Which doesn't seem like a smart thing to do if what your running is a validation of the dns method, etc.

                                    When I get a chance I will turn off the airprint on the printer and move the mobility software to a box running on a different segment and then on my ios put in their software to see if can get it to find the printer and see what dns it actually does query for, etc.  But might take me a bit since my network at home is in a shambles after moving to that clunky usg as my router..

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kolpinkb
                                      last edited by Oct 5, 2017, 7:13 PM

                                      @johnpoz:

                                      I sniffed the papercut ng box when it was running the test to try and see exactly what it was doing a query for so could put in the correct stuff in unbound to what it was looking for.  But I didn't see it do any queries.  It sent out a mdns query that the printer answered directly etc.  Which doesn't seem like a smart thing to do if what your running is a validation of the dns method, etc.

                                      Just a quick check…does the FQDN set in the box itself have to match the A record and NS record?

                                      e.g. When the box is assigned a static IP through the DHCP server and Unbound is set to record static DHCP entries. In the DHCP setting then should the hostname be set to "my-print-server" or can it be say "host1" and the additional custom options be added as well?

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mobility_dev
                                        last edited by Oct 9, 2017, 12:14 AM

                                        Hi,
                                        I am a developer from Mobility Print team at PaperCut Software. Here are some clarification about our documentation on setting up Mobility Print.

                                        • Most of our customers are using Windows DNS server and BIND server. That's why the instructions in our documentation are very specific to those servers.
                                        • Mobility Print act as a DNS server for a delegation to a subzone under your search domain (or DNS suffix).
                                          Here is an example: let say the search domain that your iOS devices, Android or Chromebook get when they join the WIFI network in your organisation/school is myschool.edu
                                          The instruction at https://www.papercut.com/products/ng/mobility-print/manual/how-to-setup/step-2-configuration/discover-your-printers-using-dns/ in the BIND section
                                        ;---------------- Mobility Print records --------------
                                        
                                        b._dns-sd._udp       IN PTR pc-printer-discovery
                                        lb._dns-sd._udp      IN PTR pc-printer-discovery
                                        pc-printer-discovery IN NS  print-server-host
                                        print-server-host    IN A   XXX.XXX.XXX.XXX
                                        
                                        ;--------------- End of Mobility Print records --------- 
                                        

                                        Basically what we want is to set up a delegation to pc-printer-discovery.myschool.edu to the IP of the Mobility Print server. The two PTR records are defined by te DNS-SD RFC just for iOS and macOS devices

                                        Again, the syntax above is very specific to BIND. Here is the equivalent syntax but using FQDN:

                                        b._dns-sd._udp.myschool.edu.       IN PTR pc-printer-discovery.myschool.edu.
                                        lb._dns-sd._udp.myschool.edu.      IN PTR pc-printer-discovery.myschool.edu.
                                        pc-printer-discovery.myschool.edu. IN NS  print-server-host.myschool.edu.
                                        print-server-host.myschool.edu.    IN A   XXX.XXX.XXX.XXX
                                        

                                        I am happy to answer any technical questions about how to setup Mobility Print in your environment.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          trentuk
                                          last edited by Oct 9, 2017, 3:54 PM Oct 9, 2017, 3:48 PM

                                          Hello mobility_dev,

                                          Many thanks for joining the discussion and for clarifying the required records.

                                          I think the issue here is we need to find how best to create the required DNS records in 'Unbound' DNS (or 'DNS Resolver' as it is called in pfSense) so the Mobility Print App can successfully discover published printers.

                                          In order to do this I believe the resident 'DNS Resolver' experts would be interested in gaining a better understanding of how the DNS records are utilised by the client application, I'll ask the following questions in order to get the ball rolling, everyone else feel free to jump in …

                                          • Could you tell us how the client apps (Android, Windows, ChromeBook) search for the Mobility Print Server, do they specifically look for the subzone called 'pc-printer-discovery' with the same DNS suffix of the network the client device is connected to, or are the clients looking for the PTR records 'b._dns-sd._udp' & 'lb._dns-sd._udp' with the same DNS suffix of the network the client is connected to?
                                          1 Reply Last reply Reply Quote 0
                                          37 out of 99
                                          • First post
                                            37/99
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received