From a86e398a03c6181485827a929b329076963e964d Mon Sep 17 00:00:00 2001 From: Mateusz Korniak Date: Tue, 1 May 2007 10:19:44 +0000 Subject: [PATCH] - Release 3. Works as caching dns server for local queries by default. Changed files: pdnsd-query_roots_in_default_conf.patch -> 1.1 pdnsd.spec -> 1.62 --- pdnsd-query_roots_in_default_conf.patch | 43 +++++++++++++++++++++++++ pdnsd.spec | 4 ++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 pdnsd-query_roots_in_default_conf.patch diff --git a/pdnsd-query_roots_in_default_conf.patch b/pdnsd-query_roots_in_default_conf.patch new file mode 100644 index 0000000..fccd546 --- /dev/null +++ b/pdnsd-query_roots_in_default_conf.patch @@ -0,0 +1,43 @@ +--- pdnsd-1.2.5/doc/pdnsd.conf.in.query_roots_in_default_conf.patch 2007-05-01 12:13:57.000000000 +0200 ++++ pdnsd-1.2.5/doc/pdnsd.conf.in 2007-05-01 12:14:36.000000000 +0200 +@@ -10,13 +10,14 @@ + # machines on your network to query pdnsd. + status_ctl = on; + # paranoid=on; +-# query_method=tcp_udp; # pdnsd must be compiled with tcp ++ query_method=tcp_udp; # pdnsd must be compiled with tcp + # query support for this to work. + min_ttl=15m; # Retain cached entries at least 15 minutes. + max_ttl=1w; # One week. + timeout=10; # Global timeout option (10 seconds). + } + ++/* + # The following section is most appropriate for fixed connections to the Internet. + server { + label= "myisp"; +@@ -30,6 +31,7 @@ + purge_cache=off; # Keep stale cache entries in case the ISP's + # DNS servers go offline. + } ++*/ + + /* + # The following section is more appropriate for dial-up connections. +@@ -47,7 +49,6 @@ + } + */ + +-/* + # This section is meant for resolving from root servers. + server { + label = "root-servers"; +@@ -75,7 +76,7 @@ + policy = included; + preset = off; + } +-*/ ++ + + source { + owner=localhost; diff --git a/pdnsd.spec b/pdnsd.spec index 264e2e2..f4e5eb7 100644 --- a/pdnsd.spec +++ b/pdnsd.spec @@ -3,7 +3,7 @@ Summary: A caching dns proxy for small networks or dialin accounts Summary(pl.UTF-8): DNS proxy serwer dla małej sieci lub jednostki z połączeniem dialup Name: pdnsd Version: 1.2.5 -Release: 2 +Release: 3 License: GPL Group: Networking/Daemons Source0: http://www.phys.uu.nl/~rombouts/pdnsd/releases/%{name}-%{version}-%{par}.tar.gz @@ -12,6 +12,7 @@ Source1: %{name}.init Source2: %{name}.sysconfig Patch0: %{name}-threads_signals.patch Patch1: %{name}-ac_am.patch +Patch2: %{name}-query_roots_in_default_conf.patch # Old URL: http://home.t-online.de/home/Moestl/ URL: http://www.phys.uu.nl/~rombouts/pdnsd.html BuildRequires: autoconf @@ -50,6 +51,7 @@ dialup). %setup -q #%patch0 -p0 %patch1 -p1 +%patch2 -p1 %build rm -fr src/rc -- 2.44.0