Netgate SG-1000 microFirewall

Author Topic: Add PTR and NS Records to DNS Resolver possible?  (Read 2640 times)

0 Members and 1 Guest are viewing this topic.

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8553
  • Karma: +962/-278
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #15 on: October 02, 2017, 05:24:37 am »
@OP: Here's some valid example of PTR:

Code: [Select]
local-data-ptr: "192.0.2.1 foo.example.com"
local-data-ptr: "2001:db8:a:b:c::1 foo.example.com"
Do NOT PM for help!

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 15188
  • Karma: +1414/-206
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #16 on: October 02, 2017, 05:34:08 am »
Nope they want PTR setup for b._dns-sd._udp

I have downloaded the damn product they have a 40 day trial... I have to go out for my morning walk.. And then work.. But will try and get it setup today so I can screen shot exactly how to get it working with the domain your using as your search domain.. And that their papercut ng interface shows it all green, etc.  And you can print from some mobile client..
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.4.2-RELEASE-p1 (work)
1x SG-4860 2.4.2-RELEASE-p1 (home)

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8553
  • Karma: +962/-278
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #17 on: October 02, 2017, 05:38:41 am »
AFAICT this shit wants/needs mDNS/Zeroconf and messing with Unbound will do zero useful work there. Perhaps look at Avahi instead.

Junk.
Do NOT PM for help!

Offline thehammer86

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +1/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #18 on: October 02, 2017, 06:55:03 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.

Offline trentuk

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #19 on: October 05, 2017, 04:25:17 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 ...

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9819
  • Karma: +1107/-311
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #20 on: October 05, 2017, 04:36:56 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.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 15188
  • Karma: +1414/-206
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #21 on: October 05, 2017, 04:47:39 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.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.4.2-RELEASE-p1 (work)
1x SG-4860 2.4.2-RELEASE-p1 (home)

Offline trentuk

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #22 on: October 05, 2017, 04:55:54 am »
Hello 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  ;)

Offline trentuk

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #23 on: October 05, 2017, 04:58:28 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 ;)
« Last Edit: October 05, 2017, 10:39:18 am by trentuk »

Offline thehammer86

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +1/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #24 on: October 05, 2017, 09:33:33 am »
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.

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9819
  • Karma: +1107/-311
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #25 on: October 05, 2017, 11:38:00 am »
Quote
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.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline luckman212

  • Hero Member
  • *****
  • Posts: 727
  • Karma: +60/-0
    • View Profile
    • @luckman212 - github
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #26 on: October 05, 2017, 11:46:09 am »
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

Offline thehammer86

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +1/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #27 on: October 05, 2017, 12:04:22 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.

???

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9819
  • Karma: +1107/-311
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #28 on: October 05, 2017, 12:10:01 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.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline thehammer86

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +1/-0
    • View Profile
Re: Add PTR and NS Records to DNS Resolver possible?
« Reply #29 on: October 05, 2017, 12:11:47 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.