F.2.3. rascal_set_nameserver

void rascal_set_nameserver(
	const sock_t *list,
	unsigned int count


list, count

The array of addresses of name servers to be used.


This function opens connections to a number of name servers. When more than one server is specified; each query is sent to all servers, the first response is used. This is usually used as a measure against DNS server failure. Currently, the library supports up to 16 name servers.

The library connects to all name servers defined in the system configuration during start-up; you don't need to use this function unless you want to access non-default name servers. (For example, when you want to use OpenNIC on systems that you can not reconfigure.)