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.65 2002/11/27 01:10:35 grendel Exp $ + //! $Id: DNS.pmod,v 1.66 2002/11/27 01:59:13 grendel 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:807:    //!    //! @array    //! @elem string hostip    //! The host IP.    //! @elem array(string) ip    //! IP number(s).    //! @elem array(string) aliases    //! DNS name(s).    //! @endarray    //! -  array gethostbyaddr(string hostip) +  array gethostbyaddr(string s)    {    mapping m=do_sync_query(mkquery(arpa_from_ip(s), C_IN, T_PTR));    if (m) {    array(string) names=({});    array(string) ips=({});       foreach(m->an, mapping x)    {    if(x->ptr)    names+=({x->ptr});