Bug#250021: netcfg: Doesn't create resolv.conf if no domain name set by DHCP server
make_resolv_conf in netcfg's dhclient-script is surrounded by
if [ -n "$new_domain_name" -a -n "$new_domain_name_servers" ]
so no resolv.conf is created unless the DHCP server specifies a domain name.
My ISP doesn't give a domain name, but I still need a resolv.conf to contain
the DNS servers.
The line to add a domain name to resolv.conf has its own
if [ -n "$new_domain_name" ]
so perhaps the first line of the function should be
if [ -n "$new_domain_name" -o -n "$new_domain_name_servers" ]
(dhcp-client's dhclient-script has no such check at all)
Methodist College Belfast