Feedback

type to search
  • Current version

    Back

    Documentation of uname says it should be the nodename, and this is the usual behavior. You get FQDN through hostname -f and that looks it up through /etc/hosts (something like getent hosts `uname -n` | awk '{print $2}' :)  So having just the nodename in /etc/hostname and the FQDN in /etc/hosts in between the IP address and the nodename is just fine.

    I though do remember that there might be some weirdnesses with virtual servers and that these tools are specificly picky in that area, and I think openvz is one such case here. I could be wrong on that part though and hope someone could followup to that part.

    hosts, not host

    Gerfried Fuchs

    Previous Version summary
  • Version 0

    Current

    Documentation of uname says it should be the nodename, and this is the usual behavior. You get FQDN through hostname -f and that looks it up through /etc/hosts (something like getent host `uname -n` | awk '{print $2}' :)  So having just the nodename in /etc/hostname and the FQDN in /etc/hosts in between the IP address and the nodename is just fine.

    I though do remember that there might be some weirdnesses with virtual servers and that these tools are specificly picky in that area, and I think openvz is one such case here. I could be wrong on that part though and hope someone could followup to that part.

    Gerfried Fuchs

or Back
You need to join Debian to complete this action, click here to do so.