dns_setup()


Configruring for DNS query

Description

void dns_setup(int $udp_id [, string $server_addr = ""[, bool $ip6 = false]])

Parameters

Return Value

none

Example

<?php
include "/lib/sn_dns.php";
dns_setup(0, "192.168.0.1");  // UDP ID 0, DNS server address is 192.168.0.1
dns_setup(1);                 // UDP ID 1, system DNS address will be used for the DNS server IP address
dns_setup(0, "", true);       // enable IPv6
?>

See also