From: Bert Hubert Date: Sun, 1 Apr 2012 15:59:57 +0000 (+0000) Subject: implement suggestion of ticket 442, export-etc-hosts-suffix X-Git-Tag: auth-3.1-rc2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac0b4eb3c9a60e259f0490c91ba7ba4bafe89b8a;p=pdns implement suggestion of ticket 442, export-etc-hosts-suffix git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2544 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 346da3999..43928239b 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2009,7 +2009,7 @@ int main(int argc, char **argv) ::arg().set("forward-zones-recurse", "Zones for which we forward queries with recursion bit, comma separated domain=ip pairs")=""; ::arg().set("forward-zones-file", "File with (+)domain=ip pairs for forwarding")=""; ::arg().set("export-etc-hosts", "If we should serve up contents from /etc/hosts")="off"; - // ::arg().set("export-etc-hosts-search-suffix", "Also serve up the contents of /etc/hosts with this suffix")=""; + ::arg().set("export-etc-hosts-search-suffix", "Also serve up the contents of /etc/hosts with this suffix")=""; ::arg().set("etc-hosts-file", "Path to 'hosts' file")="/etc/hosts"; ::arg().set("serve-rfc1918", "If we should be authoritative for RFC 1918 private IP space")=""; ::arg().set("auth-can-lower-ttl", "If we follow RFC 2181 to the letter, an authoritative server can lower the TTL of NS records")="off"; diff --git a/pdns/reczones.cc b/pdns/reczones.cc index 549bef43d..3ab2312dc 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -389,6 +389,7 @@ SyncRes::domainmap_t* parseAuthAndForwards() L<