AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Some problem with fqdn

    Posted 07/13/07 05:30 AM

    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


  • 2.  Re: Some problem with fqdn

    Posted 07/13/07 07:33 AM

    Originally posted by: SystemAdmin


    By any chance is the email in question being routed to you via a non-AIX MTA, Exchange or something like that? If so, it may be the case that the MTA is inserting or changing the hostname based on DNS as seen from its perspective. I know in my shop I have to fill out a request form the get this done and it insists on a FQDN even though I don't always use them on UNIX systems. The results I get seem to show little or no relationship to the way things are defined on AIX or Solaris.

    HTH

    Jim Lane
    #AIX-Forum