Re: [wendel] adding SPF entry in BIND zone file
Chris Zubrzycki <chris-DnXoQQAfDI0OAuOqZ9xDE9i2O/[email protected]> Mon, 18 Apr 2005 22:11:30 -0400
| Newsgroups | gmane.comp.isp.ispman.user |
|---|---|
| Message-ID | <[email protected]> |
On Apr 18, 2005, at 8:49 PM, wendelmaques wrote:
> This is small hack to add a TXT entry in BIND 8/9
> zone files.
>
> First, open you /opt/ispman/conf/ispman.conf
> and add:
>
> $Config->{'ispmanDNS_bindSPF'} = "v=spf1 mx ptr";
>
> This turn easy to modify SPF record and rebuild
> bind files using:
>
> /opt/ispman/bin/ispman.ldap2named in the future.
>
> Open /usr/local/lib/dns.bind8.lib.pl and
> in near lines 212 or after 'MX RECORDS' block add:
>
> # >>> START OF ENTRY IN dns.bind8.lib.pl
> # print SPF RECORDS
> print ZONE "\n; SPF RECORDS\n";
> print ZONE "$domain. IN TXT \"@{[$ispman->getConf
> ('ispmanDNS_bindSPF')]}\""
> if $ispman->getConf('ispmanDNS_bindSPF');
> # >>> END OF ENTRY IN dns.bind8.lib.pl
>
> Restart you ispman-agent test DNS changes in zones.
>
> Test you SPF in
> http://www.dnsstuff.com/pages/spf.htm
>
> What about a entry in 'DNS Settings' in Configure Menu?
> Change in LDAP? ... ?
>
> :)
This stuff is great, could you maybe add the docs (and code) to cvs
and submit diffs? (cvs -z9 diff -u > feature.diff)
-chris zubrzycki
- --
PGP public key: http://homepage.mac.com/beren/publickey.txt
ID: 0xA2ABC070
Fingerprint: 26B0 BA6B A409 FA83 42B3 1688 FBF9 8232 A2AB C070
========================================================
Security Is A Series Of Well-Defined Steps...
chmod -R 0 / ; and smile :)
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728