Skip to content

How to return an authority response #21

@kstankov

Description

@kstankov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions