Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
Ensures that the hostname is set using best practices.
Configures `/etc/hostname` and the current hostname.
Configures `/etc/mailname` with the domain part of the hostname.
`/etc/hosts` is also configured, with an entry for 127.0.1.1, which is standard at least on Debian to set the FDQN.
Also, the `/etc/hosts` 127.0.0.1 line is set to localhost. Putting any other hostnames there is not best practices and can lead to annoying messages from eg, apache.
searchDomain :: Property Source
Makes `/etc/resolv.conf` contain search and domain lines for the domain that the hostname is in.