Movim doesn't resolve hosts by SRV record
Bug #1462999 reported by
fr34kyn01535
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Movim |
Confirmed
|
High
|
Unassigned |
Bug Description
Movim does only resolve the domain A record to an IP using Googles DNS 8.8.8.8.
Movim should:
Check the SRV records from the specifications to find the servers IP and Port (See http://
Use the local host file to determin if the IP is overidden there (https:/
Not use the Google DNS, atleast not hardcoded
summary: |
- Movim doesn't resolve hosts to SRV record + Movim doesn't resolve hosts by SRV record |
To post a comment you must log in.
Technical aspect:
The following code resolves the ip & creates the connection:
$dnsResolverFactory = new React\Dns\ Resolver\ Factory( ); tory->createCac hed('8. 8.8.8', $loop); ent\Connector( $loop, $dns);
$dns = $dnsResolverFac
$connector = new React\SocketCli
...
$connector- >create( $domain, 5222)-> then($xmpp_ behaviour) ;
While React DNS is able to lookup SRV records (https:/ /github. com/reactphp/ dns/blob/ master/ src/Resolver/ Resolver. php), /github. com/reactphp/ socket- client/ blob/master/ src/Connector. php)
socket-client uses only the A record (https:/