title: Java - Get IP address by name DNS (?)
body: <p>My issue is the following: </p>
  
  <p>I have a java program, a server, that is waiting for TCP connections from the clients.
  The thing is, the IP address which the server is using for waiting for connections can change with time...
  So I want the clients to be able to get this address in some way. 
  I think I need to configure some DNS server, but I dont know exactly how. If there is such service for free, etc... </p>
  
  <p>So I think then it would work like this: 
  the server when starting, gets its IP. Then access some DNS (?) service to put this IP available.
  So then clients make something like getByName, and see what is the IP of the server to estabilish connection.<br>
  would it be like this? If so, 
  how is this on the java server code, and what DNS service can I use (and how to configure it?)  </p>