Sample DNS Commands


Be sure to run commands with elevated permissions on your DNS server.


Sample Environment:


Presto Server IP Address: 10.0.0.3

Subnet Address: 192.168.11.0

Subnet Address: 192.168.12.0


Reverse:

Address 1: 0.11.168.192

Address 2: 0.12.168.192



____________________________________________________________________


Step 1: Create Conditional Forwarding Record (if record does not already exist). 


C:\> dnscmd . /ZoneAdd presto. /dsforwarder 10.0.0.3


____________________________________________________________________



Step 2: Create Reverse Lookup Zone for 192.168.11.0


C:\> dnscmd . /ZoneAdd 0.11.168.192.in-addr.arpa. /DsPrimary



Step 3: Create DNS-SD Browse Domain PTR records for 192.168.11.0


C:\> dnscmd . /RecordAdd 0.11.168.192.in-addr.arpa b._dns-sd._udp PTR 0.11.168.192.dnssd.presto.


C:\> dnscmd . /RecordAdd 0.11.168.192.in-addr.arpa lb._dns-sd._udp PTR 0.11.168.192.dnssd.presto.



*Repeat Steps 2 and 3 for each subnet address where you wish to see printers on iOS/OS X devices.

*Additionally you can create a batch file.

Feedback and Knowledge Base