Return a CNAME for A request #7151
Unanswered
nicolasbeusen
asked this question in
Q&A
Replies: 1 comment · 1 reply
-
you should not change the question name in response, it should be the same as in query |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to return a CNAME with value sinkhole.domain.xx if the A request is made on not allowed domain.
Basically, if my plugin receives a A request for baddomain.xyz, I would like to return a CNAME to sinkhole.abc
This is what I tried:
`
state := request.Request{W: w, Req: r}
Unfortunatly, I see a response in the console:
[INFO] 127.0.0.1:43986 - 49064 "A IN 0-1x.8632152.xyz. udp 34 false 512" NOERROR qr,aa,rd 112 0.000613969s
`
But nothing on the network... and so my nslookup returns:
`
`
Do you have an idea what I'm doing wrong ?
THanks for your feedback.
Beta Was this translation helpful? Give feedback.
All reactions