[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pdns-users
Subject:    Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3
From:       Jonathan Hunter <hunterj91 () hotmail ! com>
Date:       2014-06-09 11:27:43
Message-ID: DUB127-W83FF90B243CE09DFB9E270BD290 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
Yes that works great, I have modified slightly so that with the SBC Im using it \
removes the +44 and then inserts the remaining digits into the SIP request;  100 10 \
"U" "E2U+sip" "!^44(.*)$!sip:\\1@10.10.10.10!" .   So if for example query is for \
44123456789, the sip request will be 123456789@10.10.10.10 after  the query thanks to \
the regex above. Many thanks to Aki for the help!
Jon

> Date: Thu, 5 Jun 2014 20:37:22 +0300
> From: cmouse@youzen.ext.b2.fi
> To: hunterj91@hotmail.com
> CC: pdns-users@mailman.powerdns.com
> Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3
> 
> mysql> update records set content = '100 10 "U" "E2U+sip" \
> "!^\\\\+44(.*)$!sip:\\\\1@10.10.10.10!" .' where type = 'NAPTR'; 
> This works.
> 
> Aki Tuomi
> 
> On Thu, Jun 05, 2014 at 06:50:07PM +0300, Aki Tuomi wrote:
> > I need to verify if this is a bug in 3.3 first (or someone else ofc).
> > 
> > Aki
> > 
> > On Thu, Jun 05, 2014 at 03:15:16PM +0000, Jonathan Hunter wrote:
> > > Hi Aki,
> > > In fact on closer inspection its version 3.3-2.
> > > Any comments/help appreciated.
> > > Thanks
> > > Jon
> > > 
> > > From: hunterj91@hotmail.com
> > > To: cmouse@youzen.ext.b2.fi
> > > Date: Thu, 5 Jun 2014 12:14:03 +0000
> > > CC: pdns-users@mailman.powerdns.com
> > > Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3
> > > 
> > > 
> > > 
> > > 
> > > Hi Aki,
> > > Thanks for the response, its version 3.3;
> > > pdns_control version3.3
> > > Thanks
> > > Jon
> > > > Date: Thu, 5 Jun 2014 14:55:51 +0300
> > > > From: cmouse@youzen.ext.b2.fi
> > > > To: hunterj91@hotmail.com
> > > > CC: pdns-users@mailman.powerdns.com
> > > > Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3
> > > > 
> > > > On Thu, Jun 05, 2014 at 11:44:23AM +0000, Jonathan Hunter wrote:
> > > > > Hi Guys, 
> > > > > Sorry to trouble you all, just wondered if anyone can help.
> > > > > I am using Powerdns as an ENUM server, and for single records its working \
> > > > > well, however for wildcard entries I am having issues. Im sure its just \
> > > > > syntax from my point of view, however looking at the associated RFCs and \
> > > > > guides it all looks good. I add a wildcard entry such as below, where query \
> > > > > is something like; 6.6.6.9.9.3.4.3.4.1.4.4.test.domain
> > > > > Now with the query number, I want to store this as a variable, prefix it \
> > > > > then send it out as a SIP URI. So I have added an entry in records such as \
> > > > > below; INSERT INTO records \
> > > > > (id,domain_id,name,type,content,ttl)VALUES('16','3','*.test.domain','NAPTR','100 \
> > > > > 10 "U" "E2U+sip" "!^\\+44(.*)$!sip:\\1@10.10.10.10!" .','120'); With the \
> > > > > idea that the query number will be stored in the back-referenced parameter \
> > > > > \\1 and all will be well and I can use it to generate the request. However \
> > > > > once I add this, then send a query into the DNS server I get; 
> > > > > Exception: Unable to parse DNS TXT "!^\\+44(.*)$!sip:\\1@10.10.10.10!"
> > > > > Does anyone have any working wildcard examples I can reference as its quite \
> > > > > frustrating now! Many thanks
> > > > > Jon
> > > > > 		 	   		  
> > > > 
> > > > Which version are you running?
> > > > 
> > > > > _______________________________________________
> > > > > Pdns-users mailing list
> > > > > Pdns-users@mailman.powerdns.com
> > > > > http://mailman.powerdns.com/mailman/listinfo/pdns-users
> > > > 
> > > 		 	   		  
> > > 
> > > _______________________________________________
> > > Pdns-users mailing list
> > > Pdns-users@mailman.powerdns.com
> > > http://mailman.powerdns.com/mailman/listinfo/pdns-users 		 	   		  
> 
> 
> 
> > _______________________________________________
> > Pdns-users mailing list
> > Pdns-users@mailman.powerdns.com
> > http://mailman.powerdns.com/mailman/listinfo/pdns-users
> 
 		 	   		  


[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>Yes that works great, I \
have modified slightly so that with the SBC Im using it removes the +44 and then \
inserts the remaining digits into the SIP request;</div><div><br></div><div>&nbsp;100 \
10 "U" "E2U+sip" "!^44(.*)$!sip:\\1@10.10.10.10!" . \
&nbsp;</div><div><br></div><div>So if for example query is for 44123456789, the sip \
request will be&nbsp;<span style="font-size: 12pt;">123456789</span><span \
style="font-size: 12pt;">@10.10.10.10 after &nbsp;the query thanks to the regex \
above.</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span \
style="font-size: 12pt;">Many thanks to Aki for the help!</span></div><div><span \
style="font-size: 12pt;"><br></span></div><div><span style="font-size: \
12pt;">Jon</span></div><div><br><br><div>&gt; Date: Thu, 5 Jun 2014 20:37:22 \
+0300<br>&gt; From: cmouse@youzen.ext.b2.fi<br>&gt; To: hunterj91@hotmail.com<br>&gt; \
CC: pdns-users@mailman.powerdns.com<br>&gt; Subject: Re: [Pdns-users] NAPTR wildcard \
records on PDNS version 3.3<br>&gt; <br>&gt; mysql&gt; update records set content = \
'100 10 "U" "E2U+sip" "!^\\\\+44(.*)$!sip:\\\\1@10.10.10.10!" .' where type = \
'NAPTR';<br>&gt; <br>&gt; This works.<br>&gt; <br>&gt; Aki Tuomi<br>&gt; <br>&gt; On \
Thu, Jun 05, 2014 at 06:50:07PM +0300, Aki Tuomi wrote:<br>&gt; &gt; I need to verify \
if this is a bug in 3.3 first (or someone else ofc).<br>&gt; &gt; <br>&gt; &gt; \
Aki<br>&gt; &gt; <br>&gt; &gt; On Thu, Jun 05, 2014 at 03:15:16PM +0000, Jonathan \
Hunter wrote:<br>&gt; &gt; &gt; Hi Aki,<br>&gt; &gt; &gt; In fact on closer \
inspection its version 3.3-2.<br>&gt; &gt; &gt; Any comments/help \
appreciated.<br>&gt; &gt; &gt; Thanks<br>&gt; &gt; &gt; Jon<br>&gt; &gt; &gt; \
<br>&gt; &gt; &gt; From: hunterj91@hotmail.com<br>&gt; &gt; &gt; To: \
cmouse@youzen.ext.b2.fi<br>&gt; &gt; &gt; Date: Thu, 5 Jun 2014 12:14:03 \
+0000<br>&gt; &gt; &gt; CC: pdns-users@mailman.powerdns.com<br>&gt; &gt; &gt; \
Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3<br>&gt; &gt; \
&gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Hi \
Aki,<br>&gt; &gt; &gt; Thanks for the response, its version 3.3;<br>&gt; &gt; &gt; \
pdns_control version3.3<br>&gt; &gt; &gt; Thanks<br>&gt; &gt; &gt; Jon<br>&gt; &gt; \
&gt; &gt; Date: Thu, 5 Jun 2014 14:55:51 +0300<br>&gt; &gt; &gt; &gt; From: \
cmouse@youzen.ext.b2.fi<br>&gt; &gt; &gt; &gt; To: hunterj91@hotmail.com<br>&gt; &gt; \
&gt; &gt; CC: pdns-users@mailman.powerdns.com<br>&gt; &gt; &gt; &gt; Subject: Re: \
[Pdns-users] NAPTR wildcard records on PDNS version 3.3<br>&gt; &gt; &gt; &gt; \
<br>&gt; &gt; &gt; &gt; On Thu, Jun 05, 2014 at 11:44:23AM +0000, Jonathan Hunter \
wrote:<br>&gt; &gt; &gt; &gt; &gt; Hi Guys, <br>&gt; &gt; &gt; &gt; &gt; Sorry to \
trouble you all, just wondered if anyone can help.<br>&gt; &gt; &gt; &gt; &gt; I am \
using Powerdns as an ENUM server, and for single records its working well, however \
for wildcard entries I am having issues.<br>&gt; &gt; &gt; &gt; &gt; Im sure its just \
syntax from my point of view, however looking at the associated RFCs and guides it \
all looks good.<br>&gt; &gt; &gt; &gt; &gt; I add a wildcard entry such as below, \
where query is something like;<br>&gt; &gt; &gt; &gt; &gt; \
6.6.6.9.9.3.4.3.4.1.4.4.test.domain<br>&gt; &gt; &gt; &gt; &gt; Now with the query \
number, I want to store this as a variable, prefix it then send it out as a SIP \
URI.<br>&gt; &gt; &gt; &gt; &gt; So I have added an entry in records such as \
below;<br>&gt; &gt; &gt; &gt; &gt; INSERT INTO records \
(id,domain_id,name,type,content,ttl)VALUES('16','3','*.test.domain','NAPTR','100 10 \
"U" "E2U+sip" "!^\\+44(.*)$!sip:\\1@10.10.10.10!" .','120');<br>&gt; &gt; &gt; &gt; \
&gt; With the idea that the query number will be stored in the back-referenced \
parameter \\1 and all will be well and I can use it to generate the request.<br>&gt; \
&gt; &gt; &gt; &gt; However once I add this, then send a query into the DNS server I \
get;<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt;  Exception: Unable to \
parse DNS TXT "!^\\+44(.*)$!sip:\\1@10.10.10.10!"<br>&gt; &gt; &gt; &gt; &gt; Does \
anyone have any working wildcard examples I can reference as its quite frustrating \
now!<br>&gt; &gt; &gt; &gt; &gt; Many thanks<br>&gt; &gt; &gt; &gt; &gt; Jon<br>&gt; \
&gt; &gt; &gt; &gt;  		 	   		  <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Which \
version are you running?<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; \
_______________________________________________<br>&gt; &gt; &gt; &gt; &gt; \
Pdns-users mailing list<br>&gt; &gt; &gt; &gt; &gt; \
Pdns-users@mailman.powerdns.com<br>&gt; &gt; &gt; &gt; &gt; \
http://mailman.powerdns.com/mailman/listinfo/pdns-users<br>&gt; &gt; &gt; &gt; \
<br>&gt; &gt; &gt;  		 	   		  <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; \
_______________________________________________<br>&gt; &gt; &gt; Pdns-users mailing \
list<br>&gt; &gt; &gt; Pdns-users@mailman.powerdns.com<br>&gt; &gt; &gt; \
http://mailman.powerdns.com/mailman/listinfo/pdns-users 		 	   		  <br>&gt; <br>&gt; \
<br>&gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; \
Pdns-users mailing list<br>&gt; &gt; Pdns-users@mailman.powerdns.com<br>&gt; &gt; \
http://mailman.powerdns.com/mailman/listinfo/pdns-users<br>&gt; <br></div></div> 		 	 \
</div></body> </html>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic