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

How to return an authority response #21

Open
kstankov opened this issue Jul 16, 2018 · 2 comments
Open

How to return an authority response #21

kstankov opened this issue Jul 16, 2018 · 2 comments

Comments

@kstankov
Copy link

Hello,
I am trying to use dnsd to return authority (SOA) record, based on the host in the question.
For example, if, the query is for host in *.sub.domain.com, and local dnsd serves domain.com, I want to redirect the client to another dnsd instance, which serves sub.domain.com.
Tried several ways, like:
type: "SOA",
data:{ 'mname': "ns1.sub.domain.com"
, 'rname': "info.domain.com"
, 'serial': 2018021005
, 'refresh': 10000
, 'retry' : 100
, 'expire' : 100
, 'ttl' : 300
},
or
res.authority.push(["ns1.sub.domain.com","info.domain.com", 2018021005 ,10000, 100, 100, 300]);

In the first case I got a valid response, but the Authority section is empty, in the second I get an error:
Error processing request:TypeError: Cannot read property 'replace' of undefined

Any help will be highly appreciated.
Best,
Kiril.

@artur99
Copy link

artur99 commented Aug 14, 2018

Getting the same error. Any updates on this?

@jhs
Copy link
Member

jhs commented Aug 15, 2018 via email

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

3 participants