diff options
| author | Michael Biebl <biebl@debian.org> | 2012-03-24 01:37:02 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2012-03-24 01:37:02 +0100 |
| commit | de06e5715e780baade318f3490ac7a4c9ce84e32 (patch) | |
| tree | 23fbc3fafc12072476eff98bee60100eb54c29db /src/dns-manager | |
| parent | b436a68a20ff3114ded32a7a3d70cdd4954039f9 (diff) | |
Imported Upstream version 0.9.4.0 upstream/0.9.4.0
Diffstat (limited to 'src/dns-manager')
| -rw-r--r-- | src/dns-manager/Makefile.am | 4 | ||||
| -rw-r--r-- | src/dns-manager/Makefile.in | 13 | ||||
| -rw-r--r-- | src/dns-manager/nm-dns-bind.c | 2 | ||||
| -rw-r--r-- | src/dns-manager/nm-dns-dnsmasq.c | 7 | ||||
| -rw-r--r-- | src/dns-manager/nm-dns-manager.c | 4 |
5 files changed, 22 insertions, 8 deletions
diff --git a/src/dns-manager/Makefile.am b/src/dns-manager/Makefile.am index b51f667b..331f85c4 100644 --- a/src/dns-manager/Makefile.am +++ b/src/dns-manager/Makefile.am @@ -1,8 +1,10 @@ INCLUDES = \ -I${top_srcdir}/src/logging \ -I${top_srcdir}/libnm-util \ + -I${top_builddir}/libnm-util \ -I${top_srcdir}/src \ - -I${top_srcdir}/include + -I${top_srcdir}/include \ + -I${top_builddir}/include noinst_LTLIBRARIES = libdns-manager.la diff --git a/src/dns-manager/Makefile.in b/src/dns-manager/Makefile.in index 571f585b..c9b8b0b3 100644 --- a/src/dns-manager/Makefile.in +++ b/src/dns-manager/Makefile.in @@ -145,6 +145,8 @@ GIO_LIBS = @GIO_LIBS@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ +GLIB_MAKEFILE = @GLIB_MAKEFILE@ +GLIB_MKENUMS = @GLIB_MKENUMS@ GMODULE_CFLAGS = @GMODULE_CFLAGS@ GMODULE_LIBS = @GMODULE_LIBS@ GMSGFMT = @GMSGFMT@ @@ -199,11 +201,15 @@ LIBNL2_LIBS = @LIBNL2_LIBS@ LIBNL3_CFLAGS = @LIBNL3_CFLAGS@ LIBNL3_LIBS = @LIBNL3_LIBS@ LIBNL_CFLAGS = @LIBNL_CFLAGS@ +LIBNL_GENL3_CFLAGS = @LIBNL_GENL3_CFLAGS@ +LIBNL_GENL3_LIBS = @LIBNL_GENL3_LIBS@ LIBNL_LIBS = @LIBNL_LIBS@ LIBNL_ROUTE3_CFLAGS = @LIBNL_ROUTE3_CFLAGS@ LIBNL_ROUTE3_LIBS = @LIBNL_ROUTE3_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ +LIBSOUP_CFLAGS = @LIBSOUP_CFLAGS@ +LIBSOUP_LIBS = @LIBSOUP_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ @@ -214,6 +220,7 @@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ +MOC = @MOC@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ @@ -253,6 +260,8 @@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ +SYSTEMD_CFLAGS = @SYSTEMD_CFLAGS@ +SYSTEMD_LIBS = @SYSTEMD_LIBS@ SYSTEM_CA_PATH = @SYSTEM_CA_PATH@ UDEV_BASE_DIR = @UDEV_BASE_DIR@ USE_NLS = @USE_NLS@ @@ -319,8 +328,10 @@ top_srcdir = @top_srcdir@ INCLUDES = \ -I${top_srcdir}/src/logging \ -I${top_srcdir}/libnm-util \ + -I${top_builddir}/libnm-util \ -I${top_srcdir}/src \ - -I${top_srcdir}/include + -I${top_srcdir}/include \ + -I${top_builddir}/include noinst_LTLIBRARIES = libdns-manager.la libdns_manager_la_SOURCES = \ diff --git a/src/dns-manager/nm-dns-bind.c b/src/dns-manager/nm-dns-bind.c index 55fce030..1a3243be 100644 --- a/src/dns-manager/nm-dns-bind.c +++ b/src/dns-manager/nm-dns-bind.c @@ -413,7 +413,7 @@ update (NMDnsPlugin *plugin, g_clear_error (&error); goto out; } - ignored = chmod (CONFFILE, 0600); + ignored = chmod (CONFFILE, 0644); nm_log_dbg (LOGD_DNS, "BIND local caching DNS configuration:"); nm_log_dbg (LOGD_DNS, "%s", conf->str); diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c index a602c54f..8e216f4d 100644 --- a/src/dns-manager/nm-dns-dnsmasq.c +++ b/src/dns-manager/nm-dns-dnsmasq.c @@ -294,7 +294,7 @@ update (NMDnsPlugin *plugin, g_clear_error (&error); goto out; } - ignored = chmod (CONFFILE, 0600); + ignored = chmod (CONFFILE, 0644); nm_log_dbg (LOGD_DNS, "dnsmasq local caching DNS configuration:"); nm_log_dbg (LOGD_DNS, "%s", conf->str); @@ -302,13 +302,14 @@ update (NMDnsPlugin *plugin, argv[0] = find_dnsmasq (); argv[1] = "--no-resolv"; /* Use only commandline */ argv[2] = "--keep-in-foreground"; - argv[3] = "--strict-order"; + argv[3] = "--no-hosts"; /* don't use /etc/hosts to resolve */ argv[4] = "--bind-interfaces"; argv[5] = "--pid-file=" PIDFILE; argv[6] = "--listen-address=127.0.0.1"; /* Should work for both 4 and 6 */ argv[7] = "--conf-file=" CONFFILE; argv[8] = "--cache-size=400"; - argv[9] = NULL; + argv[9] = "--proxy-dnssec"; /* Allow DNSSEC to pass through */ + argv[10] = NULL; /* And finally spawn dnsmasq */ pid = nm_dns_plugin_child_spawn (NM_DNS_PLUGIN (self), argv, PIDFILE, "bin/dnsmasq"); diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c index ddfd47c8..6272e374 100644 --- a/src/dns-manager/nm-dns-manager.c +++ b/src/dns-manager/nm-dns-manager.c @@ -40,7 +40,7 @@ #include "nm-ip4-config.h" #include "nm-ip6-config.h" #include "nm-logging.h" -#include "nm-system.h" +#include "backends/nm-backend.h" #include "NetworkManagerUtils.h" #include "nm-dns-plugin.h" @@ -752,7 +752,7 @@ update_dns (NMDnsManager *self, success = update_resolv_conf (domain, searches, nameservers, iface, error); if (success) - nm_system_update_dns (); + nm_backend_update_dns (); if (searches) g_strfreev (searches); |