<html>
<head>
<meta content="text/html; charset=iso-8859-2"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">--local-port specifies which OUTGOING
PORT will curl use. not the destination port.<br>
<br>
On 03/04/15 16:41, Melvin Mughal wrote:<br>
</div>
<blockquote
cite="mid:CAPa9m5Gn1nRZ6oVL3E7n2mSG_DsX001Wx_rahK=SzZEtaRg2cQ@mail.gmail.com"
type="cite">
<div dir="ltr">Yep, tried it. Put it in the config on 8081 and
also tried 8082. But then we get the '<span
style="font-size:12.8000001907349px">curl: (45) bind failed
with errno 48: Address already in use' response back. So no
luck with that :(</span><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-03-04 16:31 GMT+01:00 AJ McKee <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:aj.mckee@druid-dns.com" target="_blank">aj.mckee@druid-dns.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi Melvin,
<div><br>
</div>
<div>Seems you are talking to your local apache,</div>
<div><br>
</div>
<div>Try hostname:<span
style="color:inherit;font-family:Menlo,Monaco,Consolas,'Courier
New',monospace;font-size:inherit;line-height:1.428571429;white-space:pre-wrap;background-color:transparent">8081
for your request, unless of course you have gone
through the trouble of reverse proxying the pdns
instance.</span></div>
<div><span
style="color:inherit;font-family:Menlo,Monaco,Consolas,'Courier
New',monospace;font-size:inherit;line-height:1.428571429;white-space:pre-wrap;background-color:transparent"><br>
</span></div>
<div><span
style="color:inherit;font-family:Menlo,Monaco,Consolas,'Courier
New',monospace;font-size:inherit;line-height:1.428571429;white-space:pre-wrap;background-color:transparent">AJ</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On 4 March 2015 at 15:17, Melvin
Mughal <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:melvin@mughal.nu" target="_blank">melvin@mughal.nu</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr">Followed the readme (<a
moz-do-not-send="true"
href="https://doc.powerdns.com/md/httpapi/README/"
target="_blank">https://doc.powerdns.com/md/httpapi/README/</a>).
Added those three lines to the pdns.conf, to
get the API working. When we try an API call,
it gives:
<div><br>
</div>
<div>
<p><i><!DOCTYPE HTML PUBLIC "-//IETF//DTD
HTML 2.0//EN"></i></p>
<p><i><html><head></i></p>
<p><i><title>404 Not
Found</title></i></p>
<p><i></head><body></i></p>
<p><i><h1>Not Found</h1></i></p>
<p><i><p>The requested URL
/servers/localhost/zones was not found
on this server.</p></i></p>
<p><i><hr></i></p>
<p><i><address>Apache/2.4.7 (Ubuntu)
Server at <a moz-do-not-send="true"
href="http://ourhostname.com"
target="_blank">ourhostname.com</a> Port
80</address></i></p>
<p><i></body></html></i></p>
<p><i><br>
</i></p>
<p>When we add the lines to specify on which
address the webserver should be found, we
get:</p>
<p><br>
</p>
<p>curl --local-port 8081 -H 'X-API-Key:
NwY>kpVMMuB8ib' <a
moz-do-not-send="true"
href="http://ns3.undev.nl/servers/localhost/zones"
target="_blank">http://ourhostname.com/servers/localhost/zones</a> ruby-2.1.1
[16:05]</p>
<p>
</p>
<p>curl: (45) bind failed with errno 48:
Address already in use</p>
<p><br>
</p>
<p>Anyone knows what's going wrong?</p>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Pdns-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Pdns-users@mailman.powerdns.com"
target="_blank">Pdns-users@mailman.powerdns.com</a><br>
<a moz-do-not-send="true"
href="http://mailman.powerdns.com/mailman/listinfo/pdns-users"
target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
<br>
</blockquote>
</div>
<span class=""><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>AJ McKee<br>
phone: +353 83 1130 545<br>
profile: <a moz-do-not-send="true"
href="http://linkedin.com/in/ajmkee"
target="_blank">http://linkedin.com/in/ajmkee</a><br>
jid: <a moz-do-not-send="true"
href="mailto:aj.mckee@druid-dns.com"
target="_blank">aj.mckee@druid-dns.com</a><br>
blog: <a moz-do-not-send="true"
href="http://aj.mc-kee.com/" target="_blank">http://aj.mc-kee.com/</a><br>
twitter: @ajmckee</div>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pdns-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a>
<a class="moz-txt-link-freetext" href="http://mailman.powerdns.com/mailman/listinfo/pdns-users">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juraj Lutter
URL: <a class="moz-txt-link-freetext" href="http://www.wilbury.sk/">http://www.wilbury.sk/</a>
XMPP: <a class="moz-txt-link-abbreviated" href="mailto:juraj@lutter.sk">juraj@lutter.sk</a>
Pekny, mily a usmievavy webhosting a serverhousing: <a class="moz-txt-link-freetext" href="http://www.nic.sk/">http://www.nic.sk/</a>
</pre>
</body>
</html>