This is an old revision of the document!


GeoScaling DNS2

Greetings gentle network admins and web programmers. GeoScaling DNS2 is a managed DNS server which you can control from a web browser.

Basic Features

Advanced Features

Apart from the usual features you get from other similar services, the advanced version of GeoScaling DNS2 also has some unique features:

  • You can redirect your users to different IP addresses based on their:
    • country of origin
    • network names - AS (Autonomous System) numbers
    • server uptimes
    • server loads or other information you send us via our XML-RPC API.
  • These special redirections are achieved through scripts that run each time your visitor requests an IP address of a smart subdomain. A smart subdomain has a script attached to it. So you can extend GeoScaling in ways we haven't even imagined yet.
  • You can import records from BIND files
  • You can edit records very quickly without refreshing the page for each modification, as GeoScaling uses some ajax magic

Let me give you a simple example of what kind of redirection you can achieve with DNS2.

/*
as30890 - evolva ilink
as8708 - RDS
as34304 - teen telecom
as24745 - Romtelecom
*/
 
if($country=="ro")
{
  if( in_array( $as, array("as30890", "as24745") ) )
  {
    $output[] = array("A", "86.55.16.126"); // fisierulmeu.ro - evolva ilink
  }
  else if( in_array( $as, array("as34304", "as8708") ) )
  {
    $output[] = array("A", "193.138.195.114"); // teen telecom
  }
  else // another network, just send both ips
  {
    $output[] = array("A", "86.55.16.126"); // fisierulmeu.ro
    $output[] = array("A", "193.138.195.114"); // teen telecom
  }
}
else
{
  $output[] = array("A", "91.121.158.100", "400"); // ovh international, ttl set to 400
}

The above code redirects the user only based on country and AS numbers. If an user comes from Romania and is in certain networks, he/she gets one set of ip addresses, otherwise another. If the user is an international visitor, he/she gets the address of the international mirror in France. This effectively lets you build a Content Delivery Network in a few lines of code, where each user can be redirected to the best/closest mirror. The above code actually runs on a limited version of PHP.

The advanced features of DNS2 are geared towards medium and large websites.

 
what_is_geoscaling_dns2.1422135508.txt.gz · Last modified: 2015/01/30 00:32 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki