Branch: Tag:

1998-11-13

1998-11-13 17:29:39 by Marcus Comstedt <marcus@mc.pp.se>

Now searches a list of possible locations for resolv.conf.

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.28

285: Inside #if __NT__
   nameservers = ({ get_tcpip_param("NameServer") });    domains=get_tcpip_param("SearchList") / " "- ({""});   #else -  string resolv_conf = Stdio.read_file("/etc/resolv.conf"); +  string resolv_conf; +  foreach(({"/etc/resolv.conf", "/amitcp/db/resolv.conf"}), string resolv_loc) +  if ((resolv_conf = Stdio.read_file(resolv_loc))) +  break;       if (!resolv_conf) {    throw(({ "Protocols.DNS.client(): No /etc/resolv.conf!\n",