From #218 Found a small bug making the API choke on hostnames containing a dash: lib/vmpooler/api/helpers.rb:120 reads: if domain && hostname =~ /^\w+\.#{domain}$/ but should be: if domain && hostname =~ /^[a-zA-Z0-9-]+\.#{domain}$/