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
DEFAULTDOMAIN(5) Linux Programmer's Manual DEFAULTDOMAIN(5)NAME
defaultdomain - file which contains the NIS/YP domain name
DESCRIPTION
/etc/defaultdomain is used by the boot scripts to set the NIS/YP domain name for a system as returned by the getdomainname(2) function. The
file contains one line with the name of the domain.
Unlike DNS hostnames and domain names, the NIS domain name is case-sensitive! The NIS domain name must not be the same as the DNS domain
name, but for some services like NIS+ it should be the same.
Even if the domain name is often called NIS/YP domain name, it is also used from other protocols, not only NIS/YP.
FILES
/etc/defaultdomain /etc/init.d/boot.localnet
SEE ALSO domainname(1), init.d(7), init(8), nisdomainname(1), ypdomainname(1), ypbind(8), ypserv(8), ypwhich(1)COPYRIGHT
2002 SuSE Linux AG Nuernberg, Germany.
SuSE Linux 2002-01-16 DEFAULTDOMAIN(5)
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)