mirror of
https://github.com/anope/anope.git
synced 2026-07-04 05:13:13 +02:00
Move DNS handling to a module
This commit is contained in:
@@ -1034,52 +1034,6 @@ mail
|
||||
%t"
|
||||
}
|
||||
|
||||
/*
|
||||
* [OPTIONAL] DNS Config
|
||||
*
|
||||
* This section is used to configure DNS.
|
||||
* At this time DNS is only used by a few modules (m_dnsbl and os_dns)
|
||||
* and is not required by the core to function.
|
||||
*/
|
||||
dns
|
||||
{
|
||||
/*
|
||||
* The nameserver to use for resolving hostnames, must be an IP or a resolver configuration file.
|
||||
* The below should work fine on all unix like systems. Windows users will have to find their nameservers
|
||||
* from ipconfig /all and put the IP here
|
||||
*/
|
||||
nameserver = "/etc/resolv.conf"
|
||||
#nameserver = "127.0.0.1"
|
||||
|
||||
/*
|
||||
* How long to wait in seconds before a DNS query has timed out
|
||||
*/
|
||||
timeout = 5
|
||||
|
||||
/* Only edit below if you are expecting to use os_dns */
|
||||
|
||||
/*
|
||||
* The IP and port services use to listen for DNS queries.
|
||||
* Note that ports less than 1024 are privileged on UNIX/Linux systems, and
|
||||
* require Anope to be started as root. If you do this, it is recommended you
|
||||
* set options:user and options:group so Anope can change users after binding
|
||||
* to this port.
|
||||
*/
|
||||
ip = "0.0.0.0"
|
||||
port = 53
|
||||
|
||||
/*
|
||||
* SOA record information.
|
||||
*/
|
||||
admin = "admin@example.com"
|
||||
/* This should be the names of the public facing nameserver serving the records */
|
||||
nameservers = "ns1.example.com ns2.example.com"
|
||||
/* The time slave servers are allowed to cache. This should be reasonably low
|
||||
* if you want your records to be updated without much delay.
|
||||
*/
|
||||
refresh = 3600
|
||||
}
|
||||
|
||||
/*
|
||||
* [REQUIRED] Database configuration.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user