2 #include "nameserver.h"
8 int main(int argc, char* argv[])
10 typedef NameServer::Name N;
11 std::ifstream ifs("test_nameserver_zones.txt");
12 /* XXX NameServer ns(ifs);
13 std::cout << ns << "\n";
14 std::cout << ns.resolv_direct(N("tito.mi.super.nombre")) << "\n";
15 std::cout << ns.resolv_direct(N("juan.mi.super.nombre")) << "\n";
16 std::cout << ns.resolv_direct(N("pepe.otro.mi.super.nombre")) << "\n";
17 std::cout << ns.resolv_direct(N("pepe.mas.mi.super.nombre")) << "\n";
18 std::cout << ns.resolv_direct(N("super.nombre")) << "\n";
19 std::cout << ns.resolv_direct(N("nada.que.ver")) << "\n";
20 std::cout << ns.resolv_direct(N("tito.mas.super.nombres")) << "\n";
21 std::cout << ns.resolv_recursive(N("nada.que.ver")) << "\n";*/
25 // vim: set et sw=4 sts=4 :