Sorry about that, yes, this will work locally, meaning the remote responder (my 
script) will run on the same VM than pdns-auth, so pdns-auth will connect using 
a unix socket with the responder using remote backend.

That actually occurs, this is what is shown from the pdns

---
alz@nuc  /opt/pdns-auth-4.8.3/sbin  ./pdns_server
Nov 28 14:52:54 This is a standalone pdns
Nov 28 14:52:54 Listening on controlsocket in '/var/run/pdns/pdns.controlsocket'
Nov 28 14:52:54 UDP server bound to 0.0.0.0:5300
Nov 28 14:52:54 UDP server bound to 0.0.0.0:5300
Nov 28 14:52:54 UDP server bound to 0.0.0.0:5300
Nov 28 14:52:54 UDP server bound to 0.0.0.0:5300
Nov 28 14:52:54 UDP server bound to 0.0.0.0:5300
Nov 28 14:52:54 UDP server bound to 0.0.0.0:5300
Nov 28 14:52:54 TCP server bound to 0.0.0.0:5300
Nov 28 14:52:54 PowerDNS Authoritative Server 4.8.3 (C) 2001-2022 PowerDNS.COM 
BV
Nov 28 14:52:54 Using 64-bits mode. Built using gcc 10.2.1 20210110 on Nov 28 
2023 11:42:16 by a...@nuc.lesi.com.
Nov 28 14:52:54 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free 
software, and you are welcome to redistribute it according to the terms of the 
GPL version 2.
Nov 28 14:52:54 [stub-resolver] Doing stub resolving for 
'auth-4.8.3.security-status.secpoll.powerdns.com.|TXT', using resolvers: 
192.168.86.1
Nov 28 14:52:54 [stub-resolver] Question for 
'auth-4.8.3.security-status.secpoll.powerdns.com.|TXT' got answered by 
192.168.86.1
Nov 28 14:52:54 Polled security status of version 4.8.3 at startup, no known 
issues reported: OK
Nov 28 14:52:54 Reconnecting to backend
Nov 28 14:52:54 PDNSException while filling the zone cache: Exception caught 
when sending: Could not send a message to remote process
—

this is what is showed on the responder when the 

---
2023-11-28T14:52:54.907-0300 DEBUG handlers/handlers.go:65 pdns request 
received: {"method": "initialize", "parameters": {"path": "/tmp/pra.sock"}}
2023-11-28T14:52:54.907-0300 DEBUG handlers/handlers.go:50 Response 
{"result":true}
—


This same responder script, if using http returns exactly the same json, 
getAllDomains comes after the initialize, then the lookups, so the responder 
works ok.


Problem is, when i switch to unix socket, throws the error on the red line 
after the initialize and dies



> On 28 Nov 2023, at 15:10, Walter Parker via Pdns-users 
> <pdns-users@mailman.powerdns.com> wrote:
> 
> Unclear as to what you mean by “remote backend connected using Unix sockets”
> 
> If you mean that you wish to have a process on another system connect using 
> Unix sockets, that will not work. Unix sockets only work locally. TCP sockets 
> (which is what HTTP uses) are what is required for connections between two 
> servers.
> 
> 
> Walter
> 
> 
> On Tue, Nov 28, 2023 at 9:39 AM Alexis Fidalgo via Pdns-users 
> <pdns-users@mailman.powerdns.com <mailto:pdns-users@mailman.powerdns.com>> 
> wrote:
>> Hello all, i have a running remote backend using http with no problems at 
>> all, everything runs smoothly.
>> Now i need to enable unix sockets, so the remote backend is not connected 
>> anymore using http but unix socket.
>> 
>> Nothing has changed beside to listen in the unix socket, meaning im 
>> returning exactly the same JSON i return in the http but when i start pdns 
>> auth i get this
>> 
>> PDNSException while filling the zone cache: Exception caught when sending: 
>> Could not send a message to remote process
>> 
>> right after the initialize call which im answering with {"result":true} as 
>> usual.
>> 
>> Same result for 4.7.4 and 4.8.3 , do i need to change anything else since in 
>> cannot find in the doc any reference to a different response
>> 
>> 
>> thanks in advance
>> 
>> 
>> _______________________________________________
>> Pdns-users mailing list
>> Pdns-users@mailman.powerdns.com <mailto:Pdns-users@mailman.powerdns.com>
>> https://mailman.powerdns.com/mailman/listinfo/pdns-users
> _______________________________________________
> Pdns-users mailing list
> Pdns-users@mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users

_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to