Cheat Sheets

Network - FQDN

Description

Ensure that the server has an FQDN configured.

Check Script: network-hostname-fqdn.sh

#!/bin/bash

if [[ $(/bin/hostname -f) =~ \. ]]; then result_ok else result_failed "'/bin/hostname -f' doesn't return an FQDN!" fi
Comment on Disqus