[wendel] adding SPF entry in BIND zone file
wendelmaques <wendel-e5LGQ1J1bCxwFqzsTH5u/[email protected]> Mon, 18 Apr 2005 21:49:37 -0300
| Newsgroups | gmane.comp.isp.ispman.user |
|---|---|
| Message-ID | <D47851A0A433C868EA623EB8@[192.168.200.201]> |
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? ... ?
:)
--
wendelmaques
http://www.dotpix.com.br/~wendel/site/
-------------------------------------------------------
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