Re: [Pdns-users] [EXT] Re: remote backend

2023-11-30 Thread Alexis Fidalgo via Pdns-users
Yes, i wrote it fast in the playground as an example, didn't verified if it was completely ok (sorry about that), it was only to graph the idea. I’ll try what you suggested right now. Thanks! > On 30 Nov 2023, at 07:00, Brian Candler wrote: > > That code is incomplete and not runnable.

Re: [Pdns-users] [EXT] Re: remote backend

2023-11-30 Thread Brian Candler via Pdns-users
That code is incomplete and not runnable. What is "[0:netip]" for example? More importantly, what is "c" when you do c.Write(data) ? However, there is also an unstated question here, which is "how are the requests and responses delimited when PowerDNS using the unixsock remote backend?" 

Re: [Pdns-users] [EXT] Re: remote backend

2023-11-30 Thread Alexis Fidalgo via Pdns-users
Check this, i removed the code from my responder by now but it was something like this func main() { l, err := net.ListenUnix("unix", {Name: "unix",Net :"/tmp/echo.sock",}) if err != nil { panic(err) } for { fd, err := l.Accept() if err != nil {

Re: [Pdns-users] [EXT] Re: remote backend

2023-11-30 Thread Remi Gacogne via Pdns-users
On 29/11/2023 01:07, Alexis Fidalgo wrote: Problem is (and i’ve testing with golang and python) after the answer the “initialize” message, the socket is closed, so, getAllDomains message is being sent using a closed socket and that’s why i don’t see it on the responder side and pdns does not

Re: [Pdns-users] correct answer for lookup in backend

2023-11-30 Thread Remi Gacogne via Pdns-users
Hi, On 29/11/2023 21:23, Alexis Fidalgo via Pdns-users wrote: Quick question, when using JSON/RPC in remote backend with http connector. {"method":"lookup", "parameters":{"qtype":"ANY", "qname":"www.example.com.", "remote":"192.0.2.24", "local":"192.0.2.1", "real-remote":"192.0.2.24",

Re: [Pdns-users] Short Name Resolution

2023-11-30 Thread Brian Candler via Pdns-users
On 29/11/2023 21:32, t...@garayfam.com wrote: So, create my local domain (something.lan) and put all my entries in that then configure the clients to use something.lan as the default search domain? Yes, that's the way. However it would be better to use a subdomain of a real domain that you