If we have an issue when trying to determine a resolver from resolv.conf
don't halt the process. Print out a message and let the user handle it.
Thanks to Steinar Haug for the suggestion.
[ISC-Bugs #36033]
+- Modify the handling of the resolv.conf file to allow the DHCP
+ process to start up even if the resolv.conf file has problems.
+ [ISC-Bugs #35989]
+
Changes since 4.3.0rc1
- None
if (result != ISC_R_SUCCESS)
goto cleanup;
+ /*
+ * If we can't set up the servers we may not be able to
+ * do DDNS but we should continue to try and perform
+ * our basic functions and let the user sort it out.
+ */
result = dhcp_dns_client_setservers();
- if (result != ISC_R_SUCCESS)
- goto cleanup;
+ if (result != ISC_R_SUCCESS) {
+ log_error("Unable to set resolver from resolv.conf; "
+ "startup continuing but DDNS support "
+ "may be affected");
+ }
}
#endif