728686f0e6
- Enable connection sharing - Respect VPN-provided routes
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
diff -up NetworkManager-0.7.0/src/named-manager/nm-named-manager.c.explain-dns1-dns2 NetworkManager-0.7.0/src/named-manager/nm-named-manager.c
|
|
--- NetworkManager-0.7.0/src/named-manager/nm-named-manager.c.explain-dns1-dns2 2008-05-30 14:39:45.000000000 -0400
|
|
+++ NetworkManager-0.7.0/src/named-manager/nm-named-manager.c 2008-06-11 08:54:34.000000000 -0400
|
|
@@ -268,6 +268,18 @@ rewrite_resolv_conf (NMNamedManager *mgr
|
|
|
|
/* Using glibc resolver */
|
|
nameservers = compute_nameservers (composite);
|
|
+
|
|
+ if (!nameservers || !strlen (nameservers)) {
|
|
+ g_free (nameservers);
|
|
+ nameservers = g_strdup_printf ("\n\n%s%s%s%s%s%s",
|
|
+ "# No nameservers found; try putting DNS servers into your\n",
|
|
+ "# ifcfg files in /etc/sysconfig/network-scripts like so:\n",
|
|
+ "#\n",
|
|
+ "# DNS1=xxx.xxx.xxx.xxx\n",
|
|
+ "# DNS2=xxx.xxx.xxx.xxx\n",
|
|
+ "# SEARCH=lab.foo.com bar.foo.com\n");
|
|
+ }
|
|
+
|
|
if (fprintf (f, "%s%s%s\n",
|
|
domain ? domain : "",
|
|
searches ? searches : "",
|