#!/usr/bin/ruby

require 'uuid'

fqdn = ARGV.shift || `hostname -f`.chomp

puts UUID.create_sha1(fqdn, UUID::NameSpace_DNS)