Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with stub resolver and dnssec #43

Open
romovs opened this issue Oct 19, 2021 · 0 comments
Open

Issue with stub resolver and dnssec #43

romovs opened this issue Oct 19, 2021 · 0 comments

Comments

@romovs
Copy link

romovs commented Oct 19, 2021

We seem to be having an issue getting RRSIG records when using stub resolver.
Command line utilities getdns_query and dig return the expected RRSIG records. When doing the same through getdns-node we are receiving:
(I have edited out the DNS IP and domain names due to our corporate policy)

  "answer_type": 800,
  "canonical_name": "XXXXX",
  "just_address_answers": [],
  "replies_full": [],
  "replies_tree": [],
  "status": 901
}

Executing the following two utilities returns proper results:
./getdns_query +dnssec_return_status @xxx.xxx.xxx.xxx XXXXX A

dig @xxx.xxx.xxx.xxx XXXXX +dnssec A

Nodejs code:

var getdns = require("getdns");

var options = {
   resolution_type: getdns.RESOLUTION_STUB,
    upstream_recursive_servers: [
        ["XXX.XXX.XXX.XXX", 53],
    ],
    timeout: 7000,
    return_dnssec_status: true,
    follow_redirects: getdns.REDIRECTS_FOLLOW,
};

var context = getdns.createContext(options);

var callback = function(err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(JSON.stringify(result, null, 2));
    }
    context.destroy();
};

var extensions = {};

var transactionId = context.general("XXXX", getdns.RRTYPE_A, extensions, callback)

Are we missing something in the configuration or is DNSSEC+stub resolver just not supported in getdns-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant