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
nscd(8) System Manager's Manual nscd(8)
NAME
/usr/sbin/nscd - name service cache daemon
DESCRIPTION
Nscd is a daemon that provides a cache for the most common name service requests. The default configuration file, /etc/nscd.conf, deter-
mines the behavior of the cache daemon. See nscd.conf(5).
Nscd provides cacheing for the passwd(5), group(5), and hosts(5) databases through standard libc interfaces, such as getpwnam(3), getp-
wuid(3), getgrnam(3), getgrgid(3), gethostbyname(3), and others. Each cache has a separate TTL (time-to-live) for its data; modifying the
local database (/etc/passwd, and so forth) causes the cache to become invalidated within fifteen seconds. Note that the shadow file is
specifically not cached. getspnam(3) calls remain uncached as a result.
OPTIONS
--help will give you a list with all options and what they do.
NOTES
Nscd doesn't know anything about the underlaying protocols for a service. This also means, that if you change /etc/resolv.conf for DNS
queries, nscd will continue to use the old one if you have configured /etc/nsswitch.conf to use DNS for host lookups. In such a case, you
need to restart nscd.
SEE ALSO
nscd.conf(5), nsswitch.conf(5)
AUTHOR
nscd was written by Thorsten Kukuk and Ulrich Drepper.
GNU C Library 1999-10 nscd(8)