PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  DNServer  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: DNServer
Implement a DNS server in pure PHP
Author: By
Last change: * Fixed Bind error
Date: 15 years ago
Size: 1,000 bytes


Class file image Download
** DNServer (Public Domain)
** Cesar Rodas <>
** The Idea is to give a simple way to handle DNS querys and retrives an IP.
** This project could be used as a DNS Trafic Balancer to mirrow sites with a
** close geografic position, of course with a IP2Country Module.
** La idea es dar una manera de manejar las peticiones de DNS y retornar un IP.
** El proyecto puede ser usado como un Balanceador de Trafico hacia sitios espejos
** con una posicion geografica cercana, desde luego que con un modulo de IP2Country.
include "DNServer.php";

    ** Every query will be answer as
return "";

$dns = new DNServer("dnshandler" /* callback function */, "" /* needs the IP to listen in UnixLike OS in windows just need NULL*/);


For more information send a message to info at phpclasses dot org.