Comments (3)
Thanks for this! I will have a look.
from spf-tools.
@itxpress please have a look at the patch and try to reproduce now. Thanks!
from spf-tools.
That avoids the bogus DNS record attempt, but the scripts still continue on, referencing an spf10 DNS record that will never exist. Maybe a NULL test on the first jq execution would be a good place to break out...
Tested with ./despf.sh spforig.itxpress.biz | ./simplify.sh | ./mkblocks.sh itxpress.biz | ./mkzoneent.sh | ./cloudflare.sh
spforig.itxpress.biz record:
v=spf1 a:itxpress.biz/20 include:_spf.google.com include:servers.mcsv.net include:mail.zendesk.com include:secureserver.net ~all
[Removed all the IP lookup info - no errors to this point]
Too many DNS lookups!
jq: error (at :0): Cannot iterate over null (null)
Changing spf9.itxpress.biz with id ... OK
Changing spf8.itxpress.biz with id ... OK
Changing spf7.itxpress.biz with id ... OK
Changing spf6.itxpress.biz with id ... OK
Changing spf5.itxpress.biz with id ... OK
Changing spf4.itxpress.biz with id ... OK
Changing spf3.itxpress.biz with id ... OK
Changing spf2.itxpress.biz with id ... OK
Changing spf1.itxpress.biz with id ... OK
Changing itxpress.biz with id ... OK
Looking at the cloudflare tmp files:
spf9 will reference spf10
spf9.itxpress.biz. 1 IN TXT "v=spf1 ip4:65.55.88.0/24 ip4:66.102.0.0/20 ip4:66.246.252.57 ip4:66.249.80.0/20 ip4:66.98.158.77 ip4:68.178.213.0/24 ip4:68.178.232.0/24 ip4:68.178.252.0/24 ip4:68.232.128.0/19 ip4:68.233.77.16 ip4:69.64.33.132 include:spf10.itxpress.biz ~all"
My reason for bringing this up is if you have this setup to run via cron, your SPF could break if an ISP (cough GoDaddy cough) adds even MORE IPs to their SPF and you not realize it if you didn't catch the Too Many DNS Lookups error in a cron log email.
Ideally cloudflare.sh should quit with an error and no cloudflare update if you end up with > 10 SPF records, which would fail.
from spf-tools.
Related Issues (20)
- Support more DNS providers HOT 4
- Any way to eliminate "exists:" from results? HOT 5
- Missing CIDR Notation, no Recursion HOT 8
- No record for sportssystems.com HOT 3
- despf does not consolidate cidrs HOT 7
- How to make a test for iprange ? HOT 2
- Tests are failing on energystan.com HOT 2
- Handle macros in spf entries HOT 3
- SFP Qualifiers are removed HOT 9
- Any way to handle ptr: results, like with Yahoo? HOT 6
- allow the possibility to keep untouched includes in the first SPF HOT 9
- .spf-toolsrc ignored? HOT 31
- mkblocks.sh -l creates TXT record longer than 255 characters. It COULD split them HOT 20
- Simplify download install and setup instructions HOT 4
- Prevent overwrite of other TXT records HOT 10
- jq error HOT 15
- Use shellcheck
- Allow custom prefix from config file HOT 1
- Not sure where to post this HOT 1
- despf.sh google.com gives no output HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spf-tools.