From: Bert Hubert Date: Sun, 13 Feb 2011 22:17:56 +0000 (+0000) Subject: widen allow-axfr-ips to IPv6, plus add query-local-address6 for inbound AXFR & outbou... X-Git-Tag: auth-3.0~238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2994f9204a7c3ed164df278a8d21de9d217f767;p=pdns widen allow-axfr-ips to IPv6, plus add query-local-address6 for inbound AXFR & outbound notifications over IPv6 git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2009 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 986c75311..113964649 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -46,7 +46,8 @@ void declareArguments() ::arg().set("smtpredirector","Our smtpredir MX host")="a.misconfigured.powerdns.smtp.server"; ::arg().set("local-address","Local IP addresses to which we bind")="0.0.0.0"; ::arg().set("local-ipv6","Local IP address to which we bind")=""; - ::arg().set("query-local-address","Source IP address for sending queries")=""; + ::arg().set("query-local-address","Source IP address for sending queries")="0.0.0.0"; + ::arg().set("query-local-address6","Source IPv6 address for sending queries")="::"; ::arg().set("max-queue-length","Maximum queuelength before considering situation lost")="5000"; ::arg().set("soa-serial-offset","Make sure that no SOA serial is less than this number")="0"; @@ -82,7 +83,7 @@ void declareArguments() ::arg().set("load-modules","Load this module - supply absolute or relative path")=""; ::arg().set("launch","Which backends to launch and order to query them in")=""; ::arg().setSwitch("disable-axfr","Disable zonetransfers but do allow TCP queries")="no"; - ::arg().set("allow-axfr-ips","Allow zonetransfers only to these subnets")="0.0.0.0/0"; + ::arg().set("allow-axfr-ips","Allow zonetransfers only to these subnets")="0.0.0.0/0,::/0"; ::arg().set("slave-cycle-interval","Reschedule failed SOA serial checks once every .. seconds")="60"; ::arg().set("tcp-control-address","If set, PowerDNS can be controlled over TCP on this address")=""; diff --git a/pdns/iputils.hh b/pdns/iputils.hh index a8a44c7de..b7e5e5f44 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -1,6 +1,6 @@ /* PowerDNS Versatile Database Driven Nameserver - Copyright (C) 2002 - 2008 PowerDNS.COM BV + Copyright (C) 2002 - 2011 PowerDNS.COM BV This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2