Question

I have registered a service using bonjor mdnsresponder

 dns-sd -R SMARTCAM _CAMS._tcp. . 80  "u=test" "path=/pub"

When I tried to reslove by name and type as below

dns-sd -L SMARTCAM _CAMS._tcp.

I got the reply as

Lookup SMARTCAM._CAMS._tcp..local 22:16:31.777 SMARTCAM._CAMS._tcp.local. can be reached at AIR.local.:80 (interface 3) u=test path=/pub

But here I am not getting the IP address of the PC where I registered my service (I have registered the service on IP 192.168.1.123 and hostname AIR ) .

How to get the IP address of the PC now ..? because I am running some service on that IP , I want to access them after resolving

Was it helpful?

Solution

Try to use $dns-sd -R and dns-sd -Q

it will get you the IP address

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top