Failed validation of a PTR record

Discussion in 'Developers' Forum' started by kokez, Aug 22, 2010.

  1. kokez

    kokez New Member

    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/

    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

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please update your ISPConfig to the latest stable release ( or the 3.0.3 beta.
  3. kokez

    kokez New Member

    Well, i have tried with 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: Aug 25, 2010
  4. ispcomm

    ispcomm Member

    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 ?

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Just added 142.128/ 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.
  6. kokez

    kokez New Member

    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: Aug 25, 2010
  7. kokez

    kokez New Member

    Ok, i think i have resolved.

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

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

    '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)

Share This Page