grml-hostname: reject invalid hostnames mika/validate_hostname
authorMichael Prokop <mika@grml.org>
Mon, 3 Sep 2012 10:43:44 +0000 (12:43 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 3 Sep 2012 11:59:06 +0000 (13:59 +0200)
commit8217d08fc0a3b65d2fa920eb6a753b217a561e77
tree0e73d64eec0bfcb7ce586299cd60633f37505726
parent73f6a7e59654b9cc0480728d74e3743936a294c0
grml-hostname: reject invalid hostnames

The check doesn't fully verify RFC 952, but it catches some
known-problematic situations and it's better than nothing.

Closes: gf-issue127

Thanks: Evgeni Golov for review
usr_sbin/grml-hostname