Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd August 2010, 17:24
kokez kokez is offline
Junior Member
 
Join Date: Dec 2005
Location: Italy
Posts: 14
Thanks: 6
Thanked 2 Times in 2 Posts
Send a message via Skype™ to kokez
Default Failed validation of a PTR record

Hello all, for an unusual configuration that i need to make in a reverse zone of my DNS configuration, i need to enter the resource records like this:

Name: 142.128/27.12.8.151.in-addr.arpa.

But the control panel say me that the Name is invalid. Can be caused by the slash? Can I modify this behaviour? Is a php's regex that control this?

I use myDNS instead of Bind, with ISPConfig3 on Lenny in an OpenVZ container.

Thanks you for all the good work

kokkez
Reply With Quote
Sponsored Links
  #2  
Old 23rd August 2010, 11:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,411
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Please update your ISPConfig to the latest stable release (3.0.2.2) or the 3.0.3 beta.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th August 2010, 12:36
kokez kokez is offline
Junior Member
 
Join Date: Dec 2005
Location: Italy
Posts: 14
Thanks: 6
Thanked 2 Times in 2 Posts
Send a message via Skype™ to kokez
Default

Well, i have tried with 3.0.2.2 and with 3.0.3 beta. The error on validation, of a PTR record, is the same:

ERROR 1. The zone has the wrong format.

In my first post i have incorrectly stated that was the Name that not validate, but i was wrong, it appear to be the Zone, sorry for that.

But the questions remains, where can i look for a try to edit the validation routine?

Last edited by kokez; 25th August 2010 at 14:08.
Reply With Quote
The Following User Says Thank You to kokez For This Useful Post:
adamassasda291 (29th June 2013)
  #4  
Old 25th August 2010, 15:52
ispcomm ispcomm is offline
Senior Member
 
Join Date: Aug 2010
Posts: 166
Thanks: 19
Thanked 11 Times in 11 Posts
Default

Quote:
Originally Posted by kokez View Post
Hello all, for an unusual configuration that i need to make in a reverse zone of my DNS configuration, i need to enter the resource records like this:

Name: 142.128/27.12.8.151.in-addr.arpa.

But the control panel say me that the Name is invalid. Can be caused by the slash? Can I modify this behaviour? Is a php's regex that control this?

I use myDNS instead of Bind, with ISPConfig3 on Lenny in an OpenVZ container.

Thanks you for all the good work

kokkez
I think you need to have a look at the validation function and tweak it to accept that data, or just open mysql and insert the record by hand (easy if it's a one off update).

I would like to ask why you need this weird syntax to begin with ?

ispcomm
Reply With Quote
  #5  
Old 25th August 2010, 16:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,411
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Quote:
Originally Posted by kokez View Post
Well, i have tried with 3.0.2.2 and with 3.0.3 beta. The error on validation, of a PTR record, is the same:

ERROR 1. The zone has the wrong format.

In my first post i have incorrectly stated that was the Name that not validate, but i was wrong, it appear to be the Zone, sorry for that.

But the questions remains, where can i look for a try to edit the validation routine?
Just added 142.128/27.12.8.151.in-addr.arpa. in 3.0.3 beta as a zone and it works fine for me, no error. You should check that you do not have any whitespaces in front ot after the value.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 25th August 2010, 17:18
kokez kokez is offline
Junior Member
 
Join Date: Dec 2005
Location: Italy
Posts: 14
Thanks: 6
Thanked 2 Times in 2 Posts
Send a message via Skype™ to kokez
Default

Yes the zone validate to me too. Are the PTR records that dont want to validate.

It is my connectivity's provider that has instructed me to do in this way. He let me do the reverse lookup for only the subnet of 32 IP addresses he has assigned to my net. And it work.

The problem arise now because i like to switch to ispconfig3 for my DNS system. I like the idea behind mydns, it seem to be almost complete, it also support the "*" in records.

It remains only this little "problem", but if i can manage the validation rule, i think i'm ready to switch.

Thanks for your support.

Last edited by kokez; 25th August 2010 at 17:20.
Reply With Quote
  #7  
Old 25th August 2010, 23:19
kokez kokez is offline
Junior Member
 
Join Date: Dec 2005
Location: Italy
Posts: 14
Thanks: 6
Thanked 2 Times in 2 Posts
Send a message via Skype™ to kokez
 
Default

Ok, i think i have resolved.

ISPConfig 3.0.2.2 and 3.0.3
Line 81 of /usr/local/ispconfig/interface/web/dns/form/dns_ptr.tform.php

from:
'regex' => '/^[\w\.\-]{1,64}$/',

to:
'regex' => '/^[\w\.\-\/]{1,64}$/',

Probably this is to include in the next stable version. Yes i know, this is a special case, but is a real one.

More, i think i can contribute some more precise italian translations, if this can help. Can i do? How? Some documents or posts to read?
I am totally new to the SVN things (well, never want to learn)
__________________
Luigi Cocconcelli
+393931792932
Reply With Quote
Reply

Bookmarks

Tags
dns, ispconfig 3.0.2.2, lenny, mydns, ptr

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 20:17
Is my postfix is hacked? bzzik Server Operation 21 15th July 2009 14:13
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


All times are GMT +2. The time now is 20:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.