On Sat, Apr 15, 2006 at 01:18:16AM +0100, Craig Skinner wrote:
> Hi lads,
> 
> See any probs with this wee idea to auto generate the above?
> 

> Hey Craig,
> Saw your post to openbsd-misc on MARC;
> 
> Is there any particular reason you don't use the SPF records that
gmail
> publish? I added the four CIDRs to my whitelist and everything has
been
> fine ever since:
> 
> athena$ host -t txt gmail.com
> gmail.com descriptive text "v=spf1 ip4:216.239.56.0/23
> ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ?all"
> 
> No need for all that resource intensive scripting.
> 
> 

Thanks, a much better idea.

I'll stick this in a daily cron job:

for domain in gmail.com aol.com
do

  echo \#$domain
  dig $domain TXT +short | tr "\ " "\n" | grep ^ip4: | cut -d: -f2
done


Just generated this:

#gmail.com
216.239.56.0/23
64.233.160.0/19
66.249.80.0/20
72.14.192.0/18
#aol.com
152.163.225.0/24
205.188.139.0/24
205.188.144.0/24
205.188.156.0/23
205.188.159.0/24
64.12.136.0/23
64.12.138.0/24
152.163.225.0/24
205.188.139.0/24
205.188.144.0/24
205.188.156.0/23
205.188.159.0/24
64.12.136.0/23
64.12.138.0/24

Reply via email to