We had an upgrade today morning and since then mailx command is not working.
I have been told to change the DNS to use host name as smtp.companyname.com instead of the IP address.
Can someone please help me out to know where can I change this on a Unix Server.
I think I should summarise on information required here.
1) Which OS are you using - uname -a
2) Which MTA are you using - i.e. sendmail/postfix
3) What does your nsswitch.conf look like - grep '^hosts' /etc/nsswitch.conf
4) What does your resolv.conf look like - cat /etc/resolv.conf (please obscure the IPs and domain name, etc.)
We cannot assist without accurate and thorough information on what your current setup is.
Thanks everyone for your help.
The problem is resolved as we went to etc/inet/hosts file and changed the ip address to the new ip address after the upgrade.
This has solved our problem temporarily but I am sure it will pop up again whenever someone changes the ip address of the smtp server.