defaultdomain(4) File Formats defaultdomain(4)NAME
defaultdomain - specify host's domain name
SYNOPSIS
/etc/defaultdomain
DESCRIPTION
The file /etc/defaultdomain determines a host's domain name for direct use by the NIS and NIS+ name services. The defaultdomain file is
read at boot time and its contents used by the domainname(1M) command. Because of its use by domainname, defaultdomain is also used by the
LDAP service (see ldap(1)). Under certain, narrow circumstances (see resolv.conf(4)), because domainname uses defaultdomain, a DNS client
can use the contents of defaultdomain.
The contents of defaultdomain consists of a single line containing a host's domain name.
SEE ALSO nis+(1), uname(1), ldapclient(1M), nisclient(1M), ypbind(1M), ypinit(1M), resolv.conf(4)NOTES
The defaultdomain file is created and modified by Solaris installation and configuration scripts. Only users knowledgeable of name service
configuration should edit the file.
SunOS 5.10 22 February 2000 defaultdomain(4)
Check Out this Related Man Page
domainname(1M) 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 name used in RPC exchanges, usually referred to as the NIS or NIS+
domain name. This name typically encompasses a group of hosts or passwd entries under the same administration. The domainname command is
used by various components of Solaris to resolve names for entries such as are found in passwd, hosts and aliases. By default, naming ser-
vices such as NIS and NIS+ use domainname to resolve names.
With appropriate privileges (root or an equivalent role [see rbac(5)]), you can set the name of the domain by specifying the name as an
argument to the domainname command.
The domain name 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 domain name of the machine is usually set during boot time through the domainname command by the svc:/system/iden-
tity:domain service. If the new domain name is not saved in the /etc/defaultdomain file, the machine reverts to the old domain after it
reboots.
FILES
/etc/defaultdomain
/etc/nsswitch.conf
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO nis+(1), nischown(1), nispasswd(1), svcs(1), hostconfig(1M), named(1M), nisaddcred(1M), sendmail(1M), svcadm(1M), ypinit(1M), sys-uncon-
fig(1M), aliases(4), defaultdomain(4), hosts(4), nsswitch.conf(4), passwd(4), attributes(5), rbac(5), smf(5)NOTES
The domainname service is managed by the service management facility, smf(5), under the service identifier:
svc:/system/identity:domain
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser-
vice's status can be queried using the svcs(1) command.
SunOS 5.10 7 Oct 2004 domainname(1M)
I just setup Solaris 2.6 on my Sparc 10 and I cannot figure out how to configure my DNS settings. I am using @home as my ISP and they assigned me two DNS servers to use and a domain. I created a "resolv.conf" file in my etc folder and added the following exactly as shown:
domain... (4 Replies)
I'm kindda confused about domainname and /etc/defaultdomain.
If I type domainname tesT.com, will this be added to /etc/defaultdomain or do I need to add manually on /etc/defaultdomain as well?...second question, if I type domainname tesT.com...is it case sensitive?
Thank you. (1 Reply)
I am hoping someone can help me with this one.
I am writing a ksh script on Solaris. I want to read in host names and some other info from a file, do an "rsh host 'shutdown'" (or any uname for now until I get it working), and then be given some options. The problem is I am using while read... (2 Replies)
I have a requirement to go to particular line in the file and from there read the contents till it meets a particular criteria. For eg if the contents of the file is like
81 abcd ------------------- Line 1
82 cdfe ------------------- Line 2
83 dfj ------------------- Line 3
84 df... (5 Replies)
Hey everyone ...
I wanted to process the contents of a file, as in modify its contents. whats the best way to do it on perl? In more detail I hav to go through the contents of the file, match patterns n then modify the contents of the same file depending on the matching results. Any help is... (2 Replies)
Hi,
Any one of you guys can you help me out to filter all "," (single comma) from the below attached contents in a file.
sportiva:root:/home/users/thayata/test # cat sample2.csv
Heading,Sub Heading,,Detail
Server details,Deployment environment:,,Standard Datacentre DC1
,Chassis... (2 Replies)
Hey all!
I'm working on Solaris10 right now and I was fiddling around with a fresh install and was wondering about the service that uses resolv.conf?
I know prior to Sol10 (SMF) it was /etc/init.d/inetsvc stop and start to reload resolv.conf changes
but I can't seem to find the correct SMF... (5 Replies)
Hi everyone
A quick question during a audit this was determined to be a security issue
In the resolv.conf there is a “.” At the end of the domain name
Like this
domain mydomain.com.
I which to understand the function or significance of the .
thk (3 Replies)
Hi,
I have a file f1 having the contents as below
select (<condn>) from dual
I have another file f2 having the contents as below
1,
2,
3
I want to replace <condn> in f1 with the contents of f2
I tried using sed like this
sed "s:<condn>:`cat f2`:g" f1
The above command resulted in sed:... (3 Replies)
Hi
My requirement is to read the contents of a fixed length file and validate the same.
But am not able to read the contents of the file and when i tried it to print i get <blank> as an output...
I used the below satatements for printing the contents
... (3 Replies)
Hi,
My resolv.conf keeps overwritten. I want to have it to just keep the setting that I put in there. I tried a few solutions I found using google.
like supersede domain-name "xxx", prepend domain-name-servers xxx.xxx.xxx.xxx;
This does'nt work.
I also tried to just chmod the file to... (4 Replies)
Hi
I would like to ask if somehow i missed some files in configuration of joining a domain below is the procedure i take:
modify /etc/nsswitch.conf
host: file dns
modify /etc/resolv.conf
nameserver ipaddress
nameserver ipaddress
domain ft.domain.com
search... (3 Replies)
Hi all, :(
I am facing issue while I have updated in resolv.conf, after nework service restart, it was automatically deleted IP from resolv.conf file.
Could you please let me know what is the reason resolv.conf deleted any IP which I have manually updated, but it store only my router IP... (3 Replies)
Hi Guys,
I want to add the domain name entry to resolv.conf file. when i use the vi editor to do it the changes are gone after DNS client is being restarted. In Solairs 11 I figured out svccfg command will help to retain the cinfguration. but in linux how do we do that. Also for Solaris are there... (2 Replies)
Hi,
I have a domain name that I need to convert to an LDAP base for this example - "my.domain.name"
I know that I could easily see there are 3 fields and split with awk with
awk -F. '{printf "dc=%s,dc=%s,dc=%s", $1, $2, $3}'
However, what if I have 5 fields or 4 fields, is there away... (2 Replies)