From 62c6b9de70ba470941a7b1bd7922b61f005a91e5 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 4 May 2010 21:23:35 -0400 Subject: Add a patch package to increase dnsmasq's EDNS size to 4096 if people need it. --- config/dnsmasq-edns/dnsmasq-edns.inc | 18 ++++++++++ config/dnsmasq-edns/dnsmasq-edns.patch | 13 +++++++ config/dnsmasq-edns/dnsmasq-edns.xml | 65 ++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 config/dnsmasq-edns/dnsmasq-edns.inc create mode 100644 config/dnsmasq-edns/dnsmasq-edns.patch create mode 100644 config/dnsmasq-edns/dnsmasq-edns.xml (limited to 'config/dnsmasq-edns') diff --git a/config/dnsmasq-edns/dnsmasq-edns.inc b/config/dnsmasq-edns/dnsmasq-edns.inc new file mode 100644 index 00000000..dd84271f --- /dev/null +++ b/config/dnsmasq-edns/dnsmasq-edns.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/config/dnsmasq-edns/dnsmasq-edns.patch b/config/dnsmasq-edns/dnsmasq-edns.patch new file mode 100644 index 00000000..5ef93d1e --- /dev/null +++ b/config/dnsmasq-edns/dnsmasq-edns.patch @@ -0,0 +1,13 @@ +diff --git a/etc/inc/services.inc b/etc/inc/services.inc +index d014b13..09b1ae8 100644 +--- a/etc/inc/services.inc ++++ b/etc/inc/services.inc +@@ -636,7 +636,7 @@ function services_dnsmasq_configure() { + //} + + /* run dnsmasq */ +- mwexec("/usr/local/sbin/dnsmasq --all-servers {$args}"); ++ mwexec("/usr/local/sbin/dnsmasq --all-servers --edns-packet-max=4096 {$args}"); + + if ($g['booting']) + echo "done.\n"; diff --git a/config/dnsmasq-edns/dnsmasq-edns.xml b/config/dnsmasq-edns/dnsmasq-edns.xml new file mode 100644 index 00000000..9ab9ecb5 --- /dev/null +++ b/config/dnsmasq-edns/dnsmasq-edns.xml @@ -0,0 +1,65 @@ + + + + + + . + All rights reserved. + */ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + + Patch to increase dnsmasq EDNS size. + pfSense 1.2.3 + None + dnsmasq EDNS size increase + 0.1 + dnsmasq EDNS size increase + /usr/local/pkg/dnsmasq-edns.inc + + /usr/local/pkg/ + 077 + http://www.pfsense.com/packages/config/dnsmasq-edns/dnsmasq-edns.inc + + + /usr/local/pkg/ + 077 + http://www.pfsense.com/packages/config/dnsmasq-edns/dnsmasq-edns.patch + + + dnsmasq-edns_install(); + + -- cgit v1.2.3