Set Hostname and PTR

Set Hostname and PTR

Set hostname

vzctl set 31956 --hostname mail.example.com --save

Check hostname from container

vzlist -a | grep 31956

Check hostname from VPS

vzctl enter 31956
hostname

Set the ptr record in comodo
Check PTR record

dig -x 127.0.0.1 @ns +short