Re: Regexp to match RR's

2009-04-08 Thread Chris Buxton
On Apr 8, 2009, at 5:59 PM, Jonathan Petersson wrote: On Apr 8, 2009, at 3:21 PM, Kevin Darcy wrote: I'm not a big fan of allowing users to enter Resource Records verbatim. Most users aren't that sophisticated, or, if they are, they can do their nsupdates directly, if they have been given acc

Re: Regexp to match RR's

2009-04-08 Thread Kevin Darcy
Chris Buxton wrote: On Apr 8, 2009, at 3:09 PM, Kevin Darcy wrote: Jonathan Petersson wrote: Hi all, I got some time over so I decide to hack a bit on a DNS management tool for my home-server. I'm curious as to wether someone knows of a list of regexps that can be used to match RR's. I'm not

Re: Regexp to match RR's

2009-04-08 Thread Jonathan Petersson
> On Apr 8, 2009, at 3:21 PM, Kevin Darcy wrote: >> >> I'm not a big fan of allowing users to enter Resource Records verbatim. >> Most users aren't that sophisticated, or, if they are, they can do their >> nsupdates directly, if they have been given access to the relevant TSIG key >> (how's that fo

Re: Regexp to match RR's

2009-04-08 Thread Chris Buxton
On Apr 8, 2009, at 3:09 PM, Kevin Darcy wrote: Jonathan Petersson wrote: Hi all, I got some time over so I decide to hack a bit on a DNS management tool for my home-server. I'm curious as to wether someone knows of a list of regexps that can be used to match RR's. I'm not sure why a DNS manag

Re: Regexp to match RR's

2009-04-08 Thread Kevin Darcy
True, input validation should be done as early as possible, in fact, I'd say it's best to validate the data before it's even assembled into a form that I would even call a "Resource Record". The Resource Records should probably be an (sanity-checked and validated) extract of some other sort of

Re: Regexp to match RR's

2009-04-08 Thread Jonathan Petersson
I think you've valid points in this, the stuff I'm coding on is using dynamic updates, right now I'm mainly looking at the regexp stuff to validate user input via a web-ui. Surely when using dynamic updates you will have an error thrown at you if you give incorrect input but I believe it would be a

Re: Regexp to match RR's

2009-04-08 Thread Kevin Darcy
Jonathan Petersson wrote: Hi all, I got some time over so I decide to hack a bit on a DNS management tool for my home-server. I'm curious as to wether someone knows of a list of regexps that can be used to match RR's. I'm not sure why a DNS management tool would be in the business of "match