Re: determine domain name



Shawn Bierman wrote:
Is there an "AIX" way to determine the domain name of a node?

hostname only reveals the hostname and there are no options to that
command to give the FQDN.

I don't want to use /etc/resolv.conf, I suppose I want the ODM to tell
me.

I can find the hostname with "lsattr -El inet0 -a hostname -F value"
but there isn't anything I can find similar to get the domain name.

Perhaps I'm missing the obvious...but if you have not configured an FQDN, you will have no means of retrieving it.


If "hostname" does not reveal an fqdn, you most likely do not have one configured. I don't recall of a "uname -n" will show the complete FQDN or not (don't have access to an AIX box at this moment).

"smitty hostname" to configure.



Relevant Pages

  • Re: server change for mindprod.com
    ... install and not have lost any of my data. ... For networking, few people know the secret of Red Had networking. ... DHCP) and add your FQDN here. ... get a hostname later; both hostname and hostname -f will return the same ...
    (comp.lang.java.programmer)
  • Re: Fixed but no idea why.
    ... Our topology is that the IIS SMTP server box is outside our firewall ... Do I not need to set the FQDN? ... itself as (EHLO/HELO hostname). ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: determine domain name
    ... FQDN via the TCP configuration, you will not be able to derive it from ... The domain that is appended to the hostname and added to smit is stored ... > hostname only reveals the hostname and there are no options to that ...
    (AIX-L)
  • Re: Please participate in the Ubuntu Popularity Contest !
    ... Create a correct entry for your machine with IP address, FQDN, and hostname. ... Use the HELO command, this should return either your FQDN or your IP ... The danger in the Ubuntu setup is that it can land your ...
    (Ubuntu)
  • Re: FQDN, hostname and telnet
    ... FQDN, followed by the hostname. ... However, that connection is wireless/wi-fi. ... The adapter is an Asus WL-330g which connects into the RJ-45 type ethernet adapter. ...
    (Fedora)