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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:1: - // $Id: DNS.pmod,v 1.86 2005/03/01 16:25:39 grubba Exp $ + // $Id: DNS.pmod,v 1.87 2005/03/01 17:20:44 nilsson Exp $   // Not yet finished -- Fredrik Hubinette      //! Domain Name System   //! RFC 1035      #pike __REAL_VERSION__      constant NOERROR=0;   constant FORMERR=1;   constant SERVFAIL=2;
pike.git/lib/modules/Protocols.pmod/DNS.pmod:902:    //!    //! @note    //! Prior to Pike 7.7 this function only returned IPv4 addresses.    //!    array gethostbyname(string s)    {    mapping a_records = low_gethostbyname(s, T_A);    mapping a6_records = low_gethostbyname(s, T_A6);    mapping aaaa_records = low_gethostbyname(s, T_AAAA);    - #if 1 + #if 0    werror("a_records: %O\n"    "a6_records: %O\n"    "aaaa_records: %O\n",    a_records, a6_records, aaaa_records);   #endif /* 0 */       array(string) names=({});    array(string) ips=({});    if (a_records) {    foreach(a_records->an, mapping x)