diff --git a/lib/App/Netdisco/DB/ResultSet/NodeIp.pm b/lib/App/Netdisco/DB/ResultSet/NodeIp.pm index 037a5cdfa..d56660fca 100644 --- a/lib/App/Netdisco/DB/ResultSet/NodeIp.pm +++ b/lib/App/Netdisco/DB/ResultSet/NodeIp.pm @@ -99,7 +99,11 @@ sub search_by_ip { =head1 search_by_dns( \%cond, \%attrs? ) - my $set = $rs->search_by_dns({dns => 'foo.example.com', active => 1}); + my $set = $rs->search_by_dns({ + dns => 'foo.example.com', + suffix => qr/(?:\.example\..com|\.local)$/, + active => 1 + }); Like C, this returns a ResultSet of matching rows from the NodeIp table. @@ -118,8 +122,8 @@ to search for. The value may optionally include SQL wildcard characters. =item * -The C parameter may optionally have a suffix parameter which is a -regular expression of domain names that must also match the results. +The C parameter may optionally have a C parameter which is a +regular expression of domain names - one of which must match the results. =item * diff --git a/share/config.yml b/share/config.yml index 48a1fc6c7..136645ac0 100644 --- a/share/config.yml +++ b/share/config.yml @@ -22,7 +22,7 @@ external_databases: [] # WEB FRONTEND # ------------ -domain_suffix: "" +domain_suffix: [] no_auth: false suggest_guest: false navbar_autocomplete: true diff --git a/share/environments/deployment.yml b/share/environments/deployment.yml index fcde82448..5a8c81f91 100644 --- a/share/environments/deployment.yml +++ b/share/environments/deployment.yml @@ -36,7 +36,7 @@ device_auth: # will be stripped from fqdn when displayed in the web UI # also, do not forget the leading dot. # ``````````````````````````````````````````````````````` -#domain_suffix: '.example.com' +#domain_suffix: ['.example.com'] # ¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸