-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add gateway to receive requests with suffix #12
Conversation
lib/dns/server.js
Outdated
const type = req.question[0].type; | ||
let changed; | ||
// If domain in the form *.hsd.zone., query only the hsd.zone. subdomain | ||
if (this.suffix) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we reuse this code?
lib/dns/server.js
Outdated
changed = true; | ||
} | ||
} | ||
return req, changed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not go
lib/dns/server.js
Outdated
if (res.answer.length !== 0) { | ||
res.answer[0].name = name; | ||
} | ||
return req, res; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid
Added configurations to:
Full-node environment variables:
SOA_REWRITE: string; nameserver domain
SUFFIX: string; host zone
DNSSEC: boolean; strip dnssec signatures