Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Extend os_dns (1.9.x) to allow for subdomain pools  (Read 9148 times)

0 Members and 1 Guest are viewing this topic.

CuttingEdge

  • Guest
Extend os_dns (1.9.x) to allow for subdomain pools
« 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
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: Extend os_dns (1.9.x) to allow for subdomain pools
« Reply #1 on: December 14, 2012, 05:58:38 AM »

Maybe, do you have a command syntax in mind for this? Also, what are you using for the actual geoip lookup?
Logged

CuttingEdge

  • Guest
Re: Extend os_dns (1.9.x) to allow for subdomain pools
« Reply #2 on: December 16, 2012, 08:50:10 AM »

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
Logged

cirinho

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • vIRCio.org
    • vIRCio.org
Re: Extend os_dns (1.9.x) to allow for subdomain pools
« Reply #3 on: December 16, 2012, 12:51:49 PM »

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)
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: Extend os_dns (1.9.x) to allow for subdomain pools
« Reply #4 on: December 23, 2012, 08:39:38 PM »

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.
Logged

CuttingEdge

  • Guest
Re: Extend os_dns (1.9.x) to allow for subdomain pools
« Reply #5 on: December 24, 2012, 05:59:47 AM »

Thank you kindly. ;D

Will give it a test run this week.
Logged

CuttingEdge

  • Guest
Re: Extend os_dns (1.9.x) to allow for subdomain pools
« Reply #6 on: December 25, 2012, 04:15:43 PM »

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
Logged
Pages: [1]   Go Up