FQDN for solaris

Posted on 2005-05-11
Last Modified: 2013-12-21
where is FQDN for Solaris set .I mean in which file is edited for setting the same

Question by:maheswarr
    LVL 10

    Accepted Solution

    It depends on whatfor you use the FQDN... if you are talking about LDAP or NISPLUS then the file is called /etc/defaultdomain. Simply put the domainname in there.

    If you are talking about DNS then the file is called /etc/resolv.conf and it looks like this:


    (where mydomain.dom is your domainname, along with the /etc/nodename you get the FQDN)

    LVL 7

    Expert Comment

    From the man pages

    man domainame

    System Administration Commands                     domainname(1M)

         domainname - Set or display name of the current domain

         domainname [name-of-domain]

         Without an argument, domainname displays  the  name  of  the
         current domain, which typically encompasses a group of hosts
         or passwd entries under the same administration.The  domain-
         name  command  is  used  by various components of Solaris to
         resolve names for types such as passwd, hosts  and  aliases.
         By  default,  various naming services such as NIS, NIS+, the
         Internet Domain Name Service (DNS) and sendmail(1M) use this
         domainname  to  resolve  names. The domainname is normally a
         valid Internet domain name.

         The domainname for various naming services can also  be  set
         by  other means.  For example, ypinit can be used to specify
         a  different  domain  for   all   NIS   calls.    The   file
         /etc/resolv.conf  can  be used to specify a different domain
         for DNS lookups.  For sendmail, the domainname can be speci-
         fied    through    the    sendmail_vars    entry    in   the
         /etc/nsswitch.conf      file,      or      through       the
         /etc/mail/  file.  Only the superuser can set the
         name of the domain by specifying the new  domainname  as  an
         argument. The domain name of the machine is usually set dur-
         ing  boot-time  through  the  domainname  command   in   the
         /etc/init.d/inetinit  file.  If  the  new domain name is not
         saved in  the  /etc/defaultdomain  file,  the  machine  will
         revert back to the old domain after rebooting.






         See attributes(5) for descriptions of the  following  attri-

    SunOS 5.9           Last change: 22 Feb 1993                    1

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now