manish-yadav / pdns-gui

Automatically exported from code.google.com/p/pdns-gui
0 stars 0 forks source link

Admin doesn't allow asterisk in the name for a record #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Admin doesn't allow asterisk in the name for a record

"invalid name (only letters, digits, underscore and hyphen allowed)."

Asterisk should surely be allowed so you can make wildcard records.

Original issue reported on code.google.com by exob...@gmail.com on 23 Jun 2011 at 2:17

GoogleCodeExporter commented 8 years ago
this was broken in http://code.google.com/p/pdns-gui/source/detail?r=97

The used regex to prevent whitespace is not correct as it doenst allow * and @ 
and only allows lowercase [a-z] as first char/last char.

Original comment by henk...@agteresch.nl on 31 Aug 2011 at 9:51

GoogleCodeExporter commented 8 years ago
I've downloaded trunk version and this still doesn't work.

Original comment by baninow...@gmail.com on 24 Nov 2011 at 10:29

GoogleCodeExporter commented 8 years ago
I'm impressed that this still isn't fixed....

Is there a workaround for this yet?

Original comment by felipefi...@gmail.com on 1 Feb 2012 at 10:16

GoogleCodeExporter commented 8 years ago
yeh - change the regular expression to allow whitespace.for example

/^[a-z]{1}[a-z0-9\.\-]+[a-z0-9]{1}$

to 

/^[a-z\*]{1}[a-z0-9\.\-\]+[a-z0-9]{1}$

would allow it to start with a * for example

however I don't use this product after seeing it wasn't being actively 
developed, and admin was based on part of some forum code which seemed odd and 
not brilliantly structured either (and there is plenty of duplication the patch 
above in question where code is duplicated)

Original comment by exob...@gmail.com on 1 Feb 2012 at 11:01

GoogleCodeExporter commented 8 years ago
This bug has been fixed on my pdns-gui fork at 
https://github.com/odoucet/pdns-gui

Original comment by webmas...@ajeux.com on 2 Nov 2012 at 11:53

GoogleCodeExporter commented 8 years ago
Wildcard DNS record: 
http://en.wikipedia.org/wiki/Wildcard_DNS_record

Original comment by Dicr.Tarasov on 24 Nov 2012 at 4:46