Giter Site home page Giter Site logo

Comments (3)

jsarenik avatar jsarenik commented on June 1, 2024

Thanks for this! I will have a look.

from spf-tools.

jsarenik avatar jsarenik commented on June 1, 2024

@itxpress please have a look at the patch and try to reproduce now. Thanks!

from spf-tools.

itxpress avatar itxpress commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.