pike.git / lib / modules / Protocols.pmod / DNS.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:1:   // Not yet finished -- Fredrik Hubinette   // RFC 1035      //! module Protocols   //! submodule DNS    - //! $Id: DNS.pmod,v 1.57 2001/04/09 16:51:09 jonasw Exp $ + //! $Id: DNS.pmod,v 1.58 2001/04/09 19:50:04 marcus Exp $      #pike __REAL_VERSION__      constant NOERROR=0;   constant FORMERR=1;   constant SERVFAIL=2;   constant NXDOMAIN=3;   constant NOTIMPL=4;   constant NXRRSET=8;   
pike.git/lib/modules/Protocols.pmod/DNS.pmod:574:    "Can't resolv nameserver \"%s\"\n", host));    break;    }    }    if (sizeof(rest)) {    nameservers += ({ rest });    }    break;    }    } -  } +     if(domain)    domains = ({ domain }) + domains;   #endif    nameservers -= ({ "" });    if (!sizeof(nameservers)) {    /* Try localhost... */    nameservers = ({ "127.0.0.1" });    }    domains -= ({ "" });    domains = Array.map(domains, lambda(string d) {