• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3948
  • Last Modified:

FQDN for solaris

where is FQDN for Solaris set .I mean in which file is edited for setting the same

0
maheswarr
Asked:
maheswarr
1 Solution
 
neteducationCommented:
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:

domain mydomain.com
nameserver 1.2.3.4
nameserver 5.6.7.8

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

0
 
pshattuckCommented:
From the man pages

man domainame


System Administration Commands                     domainname(1M)

NAME
     domainname - Set or display name of the current domain

SYNOPSIS
     domainname [name-of-domain]

DESCRIPTION
     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/sendmail.cf  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.

FILES
      /etc/defaultdomain

     /etc/init.d/inetinit

     /etc/mail/sendmail.cf

     /etc/nsswitch.conf

     /etc/resolv.conf

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

SunOS 5.9           Last change: 22 Feb 1993                    1
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now