Compare commits

...

4 Commits

Author SHA1 Message Date
semantic-release-bot 0c593b66be chore(release): 0.1.0-develop.7 [skip ci]
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-handshake-node/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-08-04)

### Bug Fixes

* we need flag ad and rd on the dns query. rd is to request recursive lookup and ad is to ensure we only get DNSSEC responses ([67025f0](67025f0f68))
* we need to override the tcp client on the NS icann resolver to pipe connections properly ([1a80319](1a803193e6))
2023-08-04 15:37:14 +00:00
Derrick Hammer f716f325e5
Merge remote-tracking branch 'origin/develop' into develop 2023-08-04 11:34:53 -04:00
Derrick Hammer 67025f0f68
fix: we need flag ad and rd on the dns query. rd is to request recursive lookup and ad is to ensure we only get DNSSEC responses 2023-08-04 11:34:42 -04:00
Derrick Hammer 1a803193e6
fix: we need to override the tcp client on the NS icann resolver to pipe connections properly 2023-08-04 11:33:40 -04:00
4 changed files with 21 additions and 4 deletions

View File

@ -1,3 +1,11 @@
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-handshake-node/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-08-04)
### Bug Fixes
* we need flag ad and rd on the dns query. rd is to request recursive lookup and ad is to ensure we only get DNSSEC responses ([67025f0](https://git.lumeweb.com/LumeWeb/kernel-handshake-node/commit/67025f0f687fe566a3751e52d3cd11441dcd93a9))
* we need to override the tcp client on the NS icann resolver to pipe connections properly ([1a80319](https://git.lumeweb.com/LumeWeb/kernel-handshake-node/commit/1a803193e6b6b18b1433360c2e26118ef8011094))
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel-handshake-node/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-08-03)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/kernel-handshake-node",
"version": "0.1.0-develop.6",
"version": "0.1.0-develop.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/kernel-handshake-node",
"version": "0.1.0-develop.6",
"version": "0.1.0-develop.7",
"hasInstallScript": true,
"dependencies": {
"@i2labs/dns": "^1.0.1",

View File

@ -10,7 +10,7 @@
"email": "contact@lumeweb.com"
},
"type": "module",
"version": "0.1.0-develop.6",
"version": "0.1.0-develop.7",
"readme": "ERROR: No README data found!",
"scripts": {
"prepare": "presetter bootstrap",

View File

@ -145,9 +145,14 @@ async function handlePresentKey(aq: ActiveQuery) {
node.http.http.listen = (port: number, host: string, cb: Function) => cb();
}
const tcpClient = new TCPClient({ node, swarm });
node.rs.hns.forceTCP = true;
node.rs.hns.socket = new TCPClient({ node, swarm });
node.rs.hns.socket = tcpClient;
node.ns.icann.forceTCP = true;
node.ns.icann.socket = tcpClient;
node.rs.hns.init();
node.ns.icann.init();
proxy = new MultiSocketProxy({
protocol: PROTOCOL,
@ -220,8 +225,12 @@ async function handleDnsQuery(aq: ActiveQuery) {
const msg = new wire.Message();
const q = new wire.Question(aq.callerInput.fqdn, aq.callerInput.type);
msg.question.push(q);
msg.rd = true;
msg.ad = true;
const ret = await node.rs.answer(msg);
if (!ret.ad) {