Anope IRC Services
Anope Development => Feature Requests => Topic started by: CuttingEdge on December 14, 2012, 05:52:32 AM
-
Would it be possible to extend the os_dns module that comes with Anope 1.9.x to allow for sub-domains in pools, or at least multiple pools?
Some networks have region-specific pools (that are sometimes managed by some GeoIP service), and allowing Anope to manage these would be awesome.
Examples include:
us.network.net
eu.network.net
af.network.net
-
Maybe, do you have a command syntax in mind for this? Also, what are you using for the actual geoip lookup?
-
I'm using the 'geoip' module that comes with PowerDNS (for a few years), combined with the RBLDNS lists from http://countries.nerd.dk/. It works rather well, and can be adjusted to accommodate custom/existing geo-specific regions, not just countries, but ISP CIDR's.
I'd go with the following syntax:
/operserv DNS ADDZONE zone.name
/operserv DNS DELZONE zone.name
Example:
/operserv DNS ADDZONE us.network.net
And change the POOL and DEPOOL to:
/operserv DNS POOL server.name zone.name
/operserv DNS DEPOOL server.name zone.name
Example:
/operserv DNS POOL server.network.net us.network.net
-
That looks a lot like the famous virtual servers used in Brazilian networks (eg. BrasNet).
Basically you did connect on a physical server eg irc.mynetwork.net and it created a virtual server as you said us.mynetwork.net.
That was interesting because you have allowed virtual ircops and ircadmins (with only local privileges on the virtual server - kill)
-
I'm using the 'geoip' module that comes with PowerDNS (for a few years), combined with the RBLDNS lists from http://countries.nerd.dk/. It works rather well, and can be adjusted to accommodate custom/existing geo-specific regions, not just countries, but ISP CIDR's.
I'd go with the following syntax:
/operserv DNS ADDZONE zone.name
/operserv DNS DELZONE zone.name
Example:
/operserv DNS ADDZONE us.network.net
And change the POOL and DEPOOL to:
/operserv DNS POOL server.name zone.name
/operserv DNS DEPOOL server.name zone.name
Example:
/operserv DNS POOL server.network.net us.network.net
I've just pushed something like this now, but still kept some of the old (simple) functionality.
-
Thank you kindly. ;D
Will give it a test run this week.
-
Found a bit of a problem with the module if you unload and reload it, specifically if you readd the data for servers/zones/ip addresses afterwards. When Anope writes its data to disk (using the flatfile database type), it crashes.
I've created a ticket for the bug here: http://bugs.anope.org/view.php?id=1463