Giter Club home page Giter Club logo

rust-decon-spf's Introduction

Hi ๐Ÿ‘‹, I'm Adam

I enjoy working on different projects focused on backend.

  • ๐Ÿ‘จโ€๐Ÿ’ป All of my projects are available at https://github.com/Bas-Man

  • ๐Ÿ“ I occasionally write articles on https://bas-man.dev/

  • โšก Fun fact: Platypuses are one of two mammal species that lay eggs.

Connect with me:

basman

Languages and Tools:

bas-man

bas-man

bas-man

rust-decon-spf's People

Contributors

22ca54d00f05391d6ffee4bc23a5ba60 avatar bas-man avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rust-decon-spf's Issues

Unable to parse long SPF record strings (>255 characters)

Hi,

I'm attempting to parse an SPF record that is longer than 255 characters which results which in a SourceLengthExceeded error.

I'm not sure this error should be triggered here. RFC 7208 section 3.3 says:

   TXT records containing multiple strings are useful in constructing
   records that would exceed the 255-octet maximum length of a
   character-string within a single TXT record.

I'm guessing that the TXT record length limit is where the 255 number comes from, but section 3.4 says:

3.4  Record Size

   The published SPF record for a given domain name SHOULD remain small
   enough that the results of a query for it will fit within 512 octets.
   Otherwise, there is a possibility of exceeding a DNS protocol limit.

It feels like the string length here should be increased to at least 512 characters, even then, it's only a SHOULD and some DNS implementations could be returning more characters.

Does a length check need to exist here at all? Perhaps a warning about the potential record lengths in the documentation is enough, with links to what the RFC has to say on the matter.

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.