I install Prosody IM sucessfull and work with it in localhost. Now, I have two computers connected by a crossover cable with fix IP address (I check it, sent a ping). In one of this computers are installed Jabber server and in both, the client based on xmpp.
But, this clients cannot resolve the name of my server even if it are in the same host. For example, if I have a virtual host 'lti.loc', my client (based on aioxmpp) when trying to connect show this error:
ioxmpp.errors.MultiOSError: failed to connect to XMPP domain 'lti.loc': multiple errors: [Errno -2] Name or service not known
Have one tool or manner to set this service in SRV records only for local network?
UPDATE: I found a tool called dnsmasq, and now I working in configurate this properly. If someone know more about this configuration, please answer.
I found a solution:
First, it's need to install dnsmasq.
After, it's important to disable the resolution of names of the system. In Ubuntu based systems the commands are:
Let's configurate the dnsmasq config file to locate the Prosody server. The command to open the file is:
The configuration example is:
Finally, start the dnsmasq with the command:
Some applications require SSL to connect to Prosody. Prosody have commands to generate this automatically. The final Prosody config file /etc/prosody/prosody.cfg.lua seems like this:
Finally, it's important correct setup the hosts in /etc/host/!