Search code examples
bonjourmdnsdns-sd

how to add the text record in the bonjour dns-sd


I am able to register a service using bonjour dns-sd on my linux pc.

$dns-sd -P SMARTCAM _ftp._tcp. .  80 AIR 14.99.8.77 

Now I am unable to add text record with registration. Can some body tell me how to add the text record.


Solution

  • How about:

    $dns-sd -P SMARTCAM _ftp._tcp. . 80 air.local 14.99.8.77 "u=test" "path=/pub"
    

    I'm just not sure about the .local part of the name, compared to the apparently non-local IP address. What are you trying to do, exactly? I'd normally expect to see this registering a local IP address, e.g.:

    $dns-sd -P SMARTCAM _ftp._tcp. . 80 air.local 10.1.1.58 "u=test" "path=/pub"
    

    If you want to register a sub-type, for example, a printer, then you add the sub-type name after the main type name, comma-separated (thanks to this post for showing how to do it):

    $dns-sd -P "Test Print" _http._tcp,_printer . 8080 air.local 10.1.1.58 "path=whatever"