<div dir="ltr"><div dir="ltr">On Thu, Jan 20, 2022 at 4:23 PM Mariano Absatz - el Baby via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com">pdns-users@mailman.powerdns.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi,</p>
<p>I'm using pdns 4.5.2 under Debian 11.<br>
</p>
<p>I configured 2 virtual instances of pdns following the
instructions in
<a href="https://doc.powerdns.com/authoritative/guides/virtual-instances.html" target="_blank">https://doc.powerdns.com/authoritative/guides/virtual-instances.html</a></p>
<p>One is called "EXTERNO" and the other "INTERNO", with
configurations in <font size="+1" face="monospace">/etc/powerdns/pdns-EXTERNO.conf</font>
and <font size="+1" face="monospace">/etc/powerdns/pdns-INTERNO.conf</font></p>
<p>Now I'd like to try <font size="+1" face="monospace">pdns_control</font>
on the same host.</p>
<p>The problem I have is that the socket for the "EXTERNO" instance
is <font size="+1" face="monospace">/var/run/pdns-EXTERNO/pdns<b>-EXTERNO</b>.controlsocket</font>
and the socket for the "INTERNO" instance is <font size="+1" face="monospace">/var/run/pdns-INTERNO/pdns<b>-INTERNO</b>.controlsocket</font></p>
<p>However, if I try to use the <font size="+1" face="monospace">pdns_control</font>
command, it only has a <font size="+1" face="monospace">--socket-dir</font>
option, but no <font size="+1" face="monospace">--socket-name</font>
option, and it assumes the socket name is <i>always</i> <font size="+1" face="monospace">pdns.controlsocket</font>.</p>
<p>I can't find either a socket-name (or equivalent) option for the
configuration file.</p>
<p>Here's an example:</p>
<pre>$ pdns_control --socket-dir=/var/run/pdns-EXTERNO current-config
Fatal error: Unable to connect to remote '/var/run/pdns-EXTERNO/pdns.controlsocket': No such file or directory
$ ls -l /var/run/pdns-EXTERNO
total 0
srwxr-xr-x 1 pdns pdns 0 Jan 20 20:59 pdns-EXTERNO.controlsocket
</pre>
<p></p></div>Try the --config-name option, i.e. --config-name=EXTERNO</blockquote></div></div>