04-27-2008
What to change
Solaris provides extensive control over the means of looking up various name services including DNS. If DNS resolution of hostnames has not been setup, the nsswitch.conf file must be configured in addition to resolv.conf.
Once you have configured the DNS client settings in Solaris, you need to alter the /etc/nsswitch.conf file. This name services configuration file controls a variety of lookup types with several services including NIS/NIS+ and LDAP.
To configure your host to perform hostname lookups with DNS, modify the line that starts with hosts: to include the keyword dns. For example, if your /etc/nsswitch.conf file hosts line looks like:
hosts: files
change it to read:
hosts: files dns
The order of keywords on this line indicates the order in which Solaris references the name services. The keyword files represents the /etc/hosts file.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I change domain name from shell?
I know how to change hostname but not domain.
Please help me.
Thank you, (3 Replies)
Discussion started by: lucas
3 Replies
2. IP Networking
How do I change domain name from shell?
And
How do I check the domain name from shell?
I know how to change hostname but not domain.
Please help me.
Thank you, (2 Replies)
Discussion started by: lucas
2 Replies
3. IP Networking
Hello,
I'm using CentOS 5.3, and I connect to a VPN in order to work. The problem is that I'm constantly accessing things on the local network and the remote network. But once I'm connected to the VPN I can't access local addresses by name, I have to use the ip-address.
What I'd like is to... (4 Replies)
Discussion started by: martincastell
4 Replies
4. Linux
Hi everybody,
for revolving local host name of my network, I set up an dns server to solve my problem, but til now, nothing happen when I ping a hostname, but work on IP. Can you help me to correct the configuration. Here is all my settings:
Voici mes fichiers de configuration:
-... (2 Replies)
Discussion started by: beloge2002
2 Replies
5. UNIX for Advanced & Expert Users
Good morning every body
When I add a new user the domain is my hostname
I want to change it to my local domain
EXample
my computer hostname is X when I create a new user Y and he logged I see X@Y and me I want to have Y@localdomain
Think (1 Reply)
Discussion started by: gone
1 Replies
6. Shell Programming and Scripting
Hello to all,
May you help saying me how to flush a specific domain in Linux SunOS5
I know the command rndc is to flush DNS cache, but I would like to know:
1- How to do a flush only on specific domain
2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies
7. Linux
I have read many tutorials on bind and i understand the A,MX, CNAME records.
Internally, on a LAN we can install bind and create all these records and we can tell all PC and servers to use this bind as DNS server.that's fine.
On the Internet, when we have purchased a valid domain like... (5 Replies)
Discussion started by: coolatt
5 Replies
8. UNIX for Advanced & Expert Users
Hello,
Our organization is planning to move one domain from Dreamhost to Hubspot. Lets say, it is gem.xyxyxyxyx.com. Please note, website is not being migrated from one server to another, it is just hosting company.
Here is from our internal DNS master server -
# cat... (6 Replies)
Discussion started by: solaris_1977
6 Replies
9. UNIX for Beginners Questions & Answers
In my /etc/resolv.conf file there is domain name defined. But when I do nslookup the domain name is not appended. Why? (18 Replies)
Discussion started by: broy32000
18 Replies
LEARN ABOUT SUSE
alter_domain
ALTER
DOMAIN(7) SQL Commands ALTER DOMAIN(7)
NAME
ALTER DOMAIN - change the definition of a domain
SYNOPSIS
ALTER DOMAIN name
{ SET DEFAULT expression | DROP DEFAULT }
ALTER DOMAIN name
{ SET | DROP } NOT NULL
ALTER DOMAIN name
ADD domain_constraint
ALTER DOMAIN name
DROP CONSTRAINT constraint_name [ RESTRICT | CASCADE ]
ALTER DOMAIN name
OWNER TO new_owner
ALTER DOMAIN name
SET SCHEMA new_schema
DESCRIPTION
ALTER DOMAIN changes the definition of an existing domain. There are several sub-forms:
SET/DROP DEFAULT
These forms set or remove the default value for a domain. Note that defaults only apply to subsequent INSERT commands; they do not
affect rows already in a table using the domain.
SET/DROP NOT NULL
These forms change whether a domain is marked to allow NULL values or to reject NULL values. You can only SET NOT NULL when the col-
umns using the domain contain no null values.
ADD domain_constraint
This form adds a new constraint to a domain using the same syntax as CREATE DOMAIN [create_domain(7)]. This will only succeed if
all columns using the domain satisfy the new constraint.
DROP CONSTRAINT
This form drops constraints on a domain.
OWNER This form changes the owner of the domain to the specified user.
SET SCHEMA
This form changes the schema of the domain. Any constraints associated with the domain are moved into the new schema as well.
You must own the domain to use ALTER DOMAIN. To change the schema of a domain, you must also have CREATE privilege on the new schema. To
alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have CREATE privilege on the
domain's schema. (These restrictions enforce that altering the owner doesn't do anything you couldn't do by dropping and recreating the
domain. However, a superuser can alter ownership of any domain anyway.)
PARAMETERS
name The name (possibly schema-qualified) of an existing domain to alter.
domain_constraint
New domain constraint for the domain.
constraint_name
Name of an existing constraint to drop.
CASCADE
Automatically drop objects that depend on the constraint.
RESTRICT
Refuse to drop the constraint if there are any dependent objects. This is the default behavior.
new_owner
The user name of the new owner of the domain.
new_schema
The new schema for the domain.
NOTES
Currently, ALTER DOMAIN ADD CONSTRAINT and ALTER DOMAIN SET NOT NULL will fail if the named domain or any derived domain is used within a
composite-type column of any table in the database. They should eventually be improved to be able to verify the new constraint for such
nested columns.
EXAMPLES
To add a NOT NULL constraint to a domain:
ALTER DOMAIN zipcode SET NOT NULL;
To remove a NOT NULL constraint from a domain:
ALTER DOMAIN zipcode DROP NOT NULL;
To add a check constraint to a domain:
ALTER DOMAIN zipcode ADD CONSTRAINT zipchk CHECK (char_length(VALUE) = 5);
To remove a check constraint from a domain:
ALTER DOMAIN zipcode DROP CONSTRAINT zipchk;
To move the domain into a different schema:
ALTER DOMAIN zipcode SET SCHEMA customers;
COMPATIBILITY
ALTER DOMAIN conforms to the SQL standard, except for the OWNER and SET SCHEMA variants, which are PostgreSQL extensions.
SEE ALSO
CREATE DOMAIN [create_domain(7)], DROP DOMAIN [drop_domain(7)]
SQL - Language Statements 2010-05-14 ALTER DOMAIN(7)