phpipam icon indicating copy to clipboard operation
phpipam copied to clipboard

Hostname validation

Open resposit opened this issue 8 years ago • 1 comments

Hi, when adding/editing an IP address I need the Hostname field to be required and validated. At the moment I fixed this with:

if( $Addresses->validate_hostname($address['dns_name']) === false ) $Result->show("danger", _("Hostname is not valid"), true);

in app/subnets/addresses/address-modify-submit.php

It would be nice to have this available as an option.

Thanks.

resposit avatar Dec 06 '17 11:12 resposit

6 years and our users can still add underscores to hostnames.

Can we expect this to be fixed?

vquie avatar Feb 02 '24 08:02 vquie