Originally posted by: SystemAdmin
Hi,
I'm writing in to see if anyone had encounter this problem before.
I have 6 AIX servers of oslevel 5.2.0.0. I was recently asked to change the /etc/resolv.conf to reflect the change of domain from DomainA(abc) to DomainB(aaa.bbb.com). Out of the 6 servers, 3 of the servers seemed to be still reflecting the old domain behind the hostname.
Correct domain:-
hostname.aaa.bbb.com
Wrong domain:-
hostname.abc
I schedule a script everyday to auto send email to check on the diskspace util.
However, the 3 servers still reflect the wrong domain in the sender field.
Correct Sender:-
root@hostname.aaa.bbb.com Wrong Sender:-
root@hostname.abc Can anyone please help advise? Any form of help will be appreciated very much.
So far, I had only edited /etc/resolv.conf
Am I missing out some other files?
The script as follows:-
#!/bin/sh
hostname=`hostname`
reciepients='
email@email.com'
df -m > /jobs/mailtxt
mail -s "Disk report - $hostname" "$reciepients" </jobs/mailtxt
#AIX-Forum