Branch: Tag:

2000-08-22

2000-08-22 19:08:04 by Johan Schön <js@opera.com>

Support DHCP DNS/Domain registry entries. Fixes [Bug 74 (#74)].

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

484:    string domain;      #if __NT__ -  +     domain=get_tcpip_param("Domain"); -  nameservers = replace(get_tcpip_param("NameServer"),","," ") / " "; -  nameservers-=({""}); -  domains=replace(get_tcpip_param("SearchList"),","," ") / " "; -  domains-=({""}); +  if(!domain || !sizeof(domain)) +  domain=get_tcpip_param("DhcpDomain"); +  +  nameservers = get_tcpip_param("NameServer") / " "; +  nameservers+= get_tcpip_param("DhcpNameServer") / " "; +  nameservers -= ({""}); +  +  domains=get_tcpip_param("SearchList") / " "- ({""});   #else    string resolv_conf;    foreach(({"/etc/resolv.conf", "/amitcp/db/resolv.conf"}), string resolv_loc)