Git Product home page Git Product logo

Comments (4)

SivaKesava1 avatar SivaKesava1 commented on May 20, 2024

Hi, @jonasbb ,

Thanks for bringing this case to our attention. We are glad that a DNS researcher took an interest in the paper and read through it, including the appendix.

As you said, the formal model currently returns NXDOMAIN instead of NOERROR and no data (i.e., ⟨Ans, βˆ…βŸ©). A way to fix it is to change the Rank definition and add another case for RRLookup.
Rank would have to be a five-tuple where the first entry π“˜ (Match(r, q)) has to be replaced by two entries, π“˜ (ExactMatch(r, q) ) and π“˜ (WildcardMatch(r, q) ∨ ProperPrefix(r, q)).

  • ExactMatch(r, q) would be the case when the query and resource record has exactly the same domain name (dn(r) = dn(q)).
  • WildcardMatch(r, q) would be the case if the query matches the wildcard record (dn(π‘ž) βˆˆβˆ— dn(π‘Ÿ))
  • ProperPrefix(r, q) would be the case if either the domain name of the query is a proper prefix of the domain name of the resource record or the other way too(dn(r) < dn(q) ∨ dn(q) < dn(r))

RRLookup will have another case with ⟨Ans, βˆ…βŸ© if dn(q) < dn(R).

I believe this would fix the issue and does not alter the answer to other combinations of resource records. Please, let us know if you find any other such scenarios. We will be happy to chat if you are looking to expand the model to cover more types or even DNSSEC. We will also appreciate any feedback if you tried the tool.

from groot.

jonasbb avatar jonasbb commented on May 20, 2024

Hi @SivaKesava1,
that seems to work as far as I checked.

Another option could be to forbid ENT in the well-formedness check for zones. This could also help with a DNSSEC extension as NSEC records have trouble with ENTs since there is nothing they can sign.

I know that some authoritative DNS operators went this route. They create a synthetic TXT record with a message like "ENT" or "RFC 8020". This avoids the issue of ENTs completely and makes DNSSEC easier as now there is a record which can be signed and which can have the appropriate negative proofs too.

If you want to ensure that the answers of the model do not change due to this, you could maybe use a type which can only occur in records but cannot be used in a query. This should be enough for the case without DNSSEC.

from groot.

SivaKesava1 avatar SivaKesava1 commented on May 20, 2024

Thanks for checking and for the insights too about DNSSEC.
Using a type that can occur only in records is also a good idea to fix the ENTs case.

from groot.

SivaKesava1 avatar SivaKesava1 commented on May 20, 2024

Hi @jonasbb,

We have updated the paper to handle empty non-terminals as per the RFCs and using a type that can occur only in records. The fix that I suggested earlier will create issues for the glue records one, so we decided to use an extra type. The updated paper is available here.

from groot.

Related Issues (4)

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.