Choose your language

Choose your login

Support

How can we help?

Lightbulb icon
Lightbulb icon

Hereā€™s your answer

Sources:

Lightbulb icon

Oops!

We currently donā€™t have an answer for this and our teams are working on resolving the issue.Ā If you still need help,
User reading a resource

Popular resources

Conversation bubbles

Contact us

Setting up Mobility DNS records for Infoblox DDI

THE PAGE APPLIES TO:

ā€œHelp, Iā€™m an Infoblox DDI admin and, while I read your introductory BIND DNS and Advanced BIND articles, I still need a hand configuring Mobility DNS-SD records to enable printer discovery.ā€

Intro

Hey, there, and thanks for reaching out! Infoblox DNS and BIND DNS share many elements under-the-hood, but Mobility record configuration is not one of them. Please continue reading to learn about setting up Mobility records for PaperCut Stateā€™s Infoblox DDI.Ā 

Infoblox DDI environmental variables

Everyoneā€™s Infoblox DDI config looks different from the next. The names and addresses we use in this article wonā€™t match yours, but thatā€™s okay. Hopefully, you can make sense of our KB by understanding the assumptions we made:

Our pretend element The elementā€™s value
Default search domain: students.papercutstate.edu
Other search domains: history.papercutstate.edu, engineering.papercutstate.edu, oit.papercutstate.edu
Mobility serverā€™s FQDN: pc-mobility-print.oit.papercutstate.edu
Apple device subnets: 10.1.0.0, 10.2.0.0
Gridmaster: 10.10.10.1

But first, an important note

Because these steps require putting a forwarding zone in your forward-mapping zones, these DNS zones must be part of your deviceā€™s DNS domain search list. In other words, we assume your Infoblox DHCP will set connected devices into their correctĀ subdomains using options 15 or 119.Ā 

Creating the pc-printer-discovery Forwarding Zone

By default, this forwarding zone is all that Windows, Android, and Chrome devices need to discover the Mobility printer advertisements. Apple devices will need this zone along with a PTR record in the appropriate reverse mapping zone, but weā€™ll get to that part in a bit.Ā 

1. Sign in to the Infoblox interface then navigate to Data Management > DNS > then Zones.Ā 

2. From there, click the + icon to add a Forward Zone.

3. Specify ā€œAdd a forward-mapping zoneā€ and click Next.Ā 

4. Name the new Forward Zone ā€œpc-printer-discovery.students.papercutstate.eduā€. Infoblox automatically adds the trailing dot.

5. Enter the Mobility serverā€™s FQDN (pc-mobility-print.oit.papercutstate.edu)Ā and IP:

6. Choose which Grid Members have the responsibility to respond for the new Forward Zone and click next.

7. Save and close. Then, restart Infoblox when prompted for the new settings to apply.Ā Ā 

But what if my DHCP clients donā€™t all get the same DNS search list?

Well, fret not, dear Infoblox admin. The trick to supporting network clients that donā€™t get theĀ students.papercutstate.edu search domain is to add a pc-printer-discovery forwarding zone for the related domains. In other words, please follow the steps in the ā€œCreating the pc-printer-discovery Forwarding Zoneā€ for each DNS zone that DHCP options 15 or 119 deliver as the domain name that clients should use when resolving hostnames via DNS. As an example, you might end up with NS RR data that looks like so:

pc-printer-discovery.students.papercutstate.edu NS pc-mobility-print.oit.papercutstate.edu
pc-printer-discovery.history.papercutstate.edu NS pc-mobility-print.oit.papercutstate.edu
pc-printer-discovery.engineering.papercutstate.edu NS pc-mobility-print.oit.papercutstate.edu
pc-printer-discovery.oit.papercutstate.edu NS pc-mobility-print.oit.papercutstate.edu

Okay, letā€™s confirm we didnā€™t just waste several minutes

It wouldnā€™t help to have this shiny, new forwarding zone on your Infoblox DDI if it didnā€™t resolve to anything, so letā€™s make sure it works. Try running the following commands from a Terminal or command prompt window.Ā 

1. First, flush the DNS cache to make sure weā€™re using only the freshest DNS records:

  • In Windows: ipconfig /flushdns
  • In fancyOS: sudo killall -HUP mDNSResponder
  • In Linux: Well, consult your distributionā€™s documentation since some implementations donā€™t even cache DNS by default.Ā 

2. Letā€™s do a query to find a printer list using the _ipps._tcp service type. You should recognize the printers in the name record data.

nslookup -query=ptr _ipps._tcp.pc-printer-discovery.students.papercutstate.edu.

At this point, printer discovery should work from Windows, Android, and Chrome clients that get theĀ students.papercutstate.eduĀ search domain, but not iOS and macOS. Try running the respective clients to confirm. And now, a question: do you - now, or will you at any point in the future - have a requirement to share printer advertisements with iOS devices like iPads or iPhones, or macOS devices like MacBooks, iMacs, Mac Minis, and Mac Pros? If you answered yes, congratulations! Please fast-forward to ā€œInfoblox Mobility printer discovery for Apple devices.ā€ However, if you answered, ā€œNo, I have no plans to support Mobility printer discovery for Apple devices now or at any point in the future,ā€ then I congratulate you too because I just saved you several minutes, at least. Youā€™re all done. Get a hot or cold beverage of your choice, because you deserve it.Ā 

Infoblox DNS Mobility printer discovery for Apple devices

macOS and iOS devices require an Apple-specific lb PTR record to find Mobility printer advertisements in the reverse-mapping zones correspondent to their current subnets. This section assumes that reverse-mapping zones for theĀ 10.1.0.0 and 10.2.0.0 subnets already exist.Ā Create these PTR records using the nsupdate command-line utility. The tool is native to macOS and Linux. To install nsupdate on Windows, see here: http://wiki.inisec.com/index.php/Nsupdate _for_windows.Ā 

1. Navigate to Grid Manager > DNS > Services and check the box next to the Grid Master. Click the edit button and select Updates. From there, add the IP address of the system sending the nsupdate commands, AKA source system.

2. From the source system, enter the following commands to add the lb PTR record in the existing wireless subnet reverse mapping zone. This example assumes DHCP hands the Apple devices our default search domain,Ā students.papercutstate.edu.Ā 

FANCYOS:~ coolkid$ nsupdate -d
> server 10.10.10.1
> add lb._dns-sd._udp.0.0.1.10.in-addr.arpa 14400 IN PTR 0.0.1.10.pc-printer-discovery.students.papercutstate.edu
> send

> serverĀ 10.10.10.1 >Ā add lb._dns-sd._udp.0.0.2.10.in-addr.arpa 14400 IN PTRĀ 0.0.2.10.pc-printer-discovery.students.papercutstate.edu > send

Note: To accommodate Apple devices with a different domain search list, supplement your nsupdate command with the correct forwarding zone. For example:

> add lb._dns-sd._udp.0.0.1.10.in-addr.arpa 14400 IN PTR 0.0.1.10.pc-printer-discovery.history.papercutstate.edu

3. Verify that the records show up in the zones 0.0.1.10.in-addr.arpa and 0.0.2.10.in-addr.arpa. Flush your DNS cache, and try the following nslookup chain:

FANCYOS:~ coolkid$ nslookup -type=ptr lb._dns-sd._udp.0.0.1.10.in-addr.arpa && nslookup -type=ptr lb._dns-sd._udp.0.0.2.10.in-addr.arpa

The results should look like so:

Server: 10.10.10.1
Address: 10.10.10.1#53

lb._dns-sd._udp.0.0.1.10.in-addr.arpa name = 0.0.1.10.pc-printer-discovery.students.papercutstate.edu

Server: 10.10.10.1 Address: 10.10.10.1#53

lb._dns-sd._udp.0.0.2.10.in-addr.arpa name = 0.0.2.10.pc-printer-discovery.students.papercutstate.edu

4. Ensure the records replicate across all DNS servers.Ā 

And thatā€™s it. Now, Apple devices in the 10.1.0.0 and 10.2.0.0 subnets can use the lb PTR record, in conjunction with the pc-printer-discovery forwarding zones, to discover Mobility printer advertisements.Ā 

Executive summary, or TL;DR

  • We set up pc-printer-discovery forwarding zones for each DNS zone corresponding to a domain name the client should use when resolving hostnames via DNS.
    • Remember: This forwarding zone is all that Windows, Android, and Chrome devices need to discover the Mobility printer advertisements.
  • We set up lb PTR records for the subnets hosting Apple devices.Ā 
    • Remember: macOS and iOS require an Apple-specific lb PTR record in the reverse-mapping zones correspondent to their current subnets.
  • We used a couple of NSLOOKUPS to check our work.Ā 

Stop, collaborate, and listen

This article was a team effort, and being able to publish it sooner rather than later is due in large part to Rod Eldridge, Network Engineering Team, Iowa State University. His charitable behavior extends beyond helping the humble author of this article as he is also willing to offer limited help to other universities with their PaperCut Mobility Print implementation, with regards to DNS and DHCP, and as time permits. Reach him at its-dns-admins@iastate.edu .

Do you still have questions?

Let us know! We love chatting about DNS, Mobility, and whatā€™s going on under the hood. Talk nerdy to us. Feel free to leave a comment below or visit ourĀ Support Portal for more help.


Categories: How-to Articles , Mobility Print


Keywords: Secret squirrel , Mobility Print , DNS Records , DNS-SD , Linux , BIND , NAMED , Cool Kids , Delegated Subzone , Conditional Forwarder , Infoblox

Comments

Last updated June 13, 2024