reactphp/socket

[Client] Connector does not honor /etc/resolv.conf

clue opened this issue · 0 comments

clue commented

The Connector is currently hard-coded to default to Google's public DNS server 8.8.8.8. You can explicitly pass a custom DNS server (or Resolver instance) like this:

$connector = new Connector($loop, array(
    'dns' => '127.0.0.1'
));

Opening this ticket as a reminder - this actually depends on reactphp/dns#29