I'm writing a client - server application (using sockets) which allows to send binary files from server to the client.

Server has to be automatic detected by client and I have to use DNS/SRV for this.
I found JNDI/DNS Service Provider (JNDI/DNS Service Provider).
If anyone could show me some example or maybe explain more briefly how client can found server using SRV and JNDI/DNS Servie Provider?

Second thing is how can I monitor my application by standard syslog? How it works?

Thanks for your tips