Re: [Pdns-users] Short Name Resolution

2023-11-29 Thread Tim Garay via Pdns-users
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? From: Brian Candler Sent: Wednesday, November 29, 2023 4:24 PM To: All about using and deploying powerdns Cc: t...@garayfam.com Subject:

Re: [Pdns-users] Short Name Resolution

2023-11-29 Thread Brian Candler via Pdns-users
On 29/11/2023 20:27, Tim Garay via Pdns-users wrote: How can I setup PDNS to resolve short names? I would like to be able to resolve something like “testserver” to 192.168.1.1.  No domain. Generally this is the job of the stub resolver on the client, to expand "testserver" to "testserver.so

[Pdns-users] Short Name Resolution

2023-11-29 Thread Tim Garay via Pdns-users
How can I setup PDNS to resolve short names? I would like to be able to resolve something like "testserver" to 192.168.1.1. No domain. Right now, I have it import the local /etc/hosts file and that lets me resolve all the short names in that. Is there a way to configure PDNS so that I

[Pdns-users] correct answer for lookup in backend

2023-11-29 Thread Alexis Fidalgo via Pdns-users
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", "zone-id":-1}} must be answered with {"result":[{"qtype":"A", "qname"

Re: [Pdns-users] remote backend

2023-11-29 Thread Alexis Fidalgo via Pdns-users
Yes, I’m on it right now. Changes are very often, mongo is in ssd and I’m querying by the _id that is indexed, plus I’m using a mongo replica (it’s supposed to be a benefit for reading) But yes, I’m right now doing exactly what you told, writing an http test unit in golang to heavily charge th

Re: [Pdns-users] remote backend

2023-11-29 Thread Brian Candler via Pdns-users
On 29/11/2023 14:04, Alexis Fidalgo wrote: So, by now, i dont know what is making for a query to be answered and another not (timeout) and in a retry is answered ok. (this is why i thought on speed and considered the unix socket but now i know it’s not that) Put logging in your remote backend

Re: [Pdns-users] remote backend

2023-11-29 Thread Brian Candler via Pdns-users
On 29/11/2023 10:19, Alexis Fidalgo wrote: by the responder, what im not understanding is, why in 2 different languages (golang and python) i get the same behavior. Well, you haven't shown the code from either. It would be extremely inefficient for PowerDNS to open a new connection for eve

Re: [Pdns-users] remote backend

2023-11-29 Thread Alexis Fidalgo via Pdns-users
> On 29 Nov 2023, at 05:00, Brian Candler wrote: > > On 29/11/2023 00:07, Alexis Fidalgo via Pdns-users wrote: >> I think i found why this is not working, as you can see below, socket is >> connected and first message is sent (the initialize message), which is >> answered and the response is

Re: [Pdns-users] remote backend

2023-11-29 Thread Brian Candler via Pdns-users
On 29/11/2023 00:07, Alexis Fidalgo via Pdns-users wrote: I think i found why this is not working, as you can see below, socket is connected and first message is sent (the initialize message), which is answered and the response is read ({“result”: true}). Problem is (and i’ve testing with gola