The default executor implementation
new BasicExecutor( string $address, int $port = Executor::DEFAULT_PORT, Icicle\Socket\Connector\Connector $connector = null )
Constructs a new DNS executor.
- The IP address of the DNS resolver to use.
int $port = 53
- The port to connect to the DNS server. Defaults to
Executor::DEFAULT_PORTwhich has the value
53, the standard port for the DNS protocol.
Icicle\Socket\Connector\Connector $connector = null
- A socket connector instance to use to connect to the DNS server socket. If left as
null, the default socket connector is used.
Gets the IP address of the DNS server used by this executor.
- The server IP address.
Gets the port of the DNS server used by this executor.
- The server port.