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    - //! $Id: DNS.pmod,v 1.59 2001/04/27 13:38:40 grubba Exp $ + //! $Id: DNS.pmod,v 1.60 2001/09/17 21:36:45 grubba 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:505:    break;       if (!resolv_conf) {    if (system->get_netinfo_property) {    // Mac OS X / Darwin (and possibly other systems) that use    // NetInfo may have these values in the database.    if (nameservers =    system->get_netinfo_property(".",    "/locations/resolver",    "nameserver")) { -  nameservers = sizeof(nameservers) && map(nameservers, `-, "\n"); +  nameservers = map(nameservers, `-, "\n");    }       if (domains = system->get_netinfo_property(".",    "/locations/resolver",    "domain")) { -  domains = sizeof(domains) && map(domains, `-, "\n"); +  domains = map(domains, `-, "\n");    }    } else {    /* FIXME: Is this a good idea?    * Why not just try the fallback?    * /grubba 1999-04-14    *    * Now uses 127.0.0.1 as fallback.    * /grubba 2000-10-17    */    resolv_conf = "nameserver 127.0.0.1";