Sponsored Content
Operating Systems Solaris List of Hostname under NIS Domain Post 302117220 by mhm4 on Friday 11th of May 2007 10:47:19 AM
Old 05-11-2007
Quote:
Originally Posted by blowtorch
We have a table named hosts under org_dir. Try searching for something like that. Then you can use 'niscat hosts.org_dir'
I think that maybe synonamous with the above getent hosts becasue the command is also looking in the hosts map. NIS clients do not need to be listed in the hosts file to join a domain. Unless the joining of the client to the domain appends the client name to the hosts map.

Can anyone confirm or deny this?

Thanks,
Michael
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

add linux to NIS (unix) domain

I've set up a NIS domain with unix as master-server, slave server and clients. right now i wish to add linux client to the NIS domain. the linux client has got username and password in it. how do i go about it? :confused: (1 Reply)
Discussion started by: legato
1 Replies

2. Solaris

Change hostname, NIS stops

All, I have changed my machine name from A202 to B205. All I modified was /etc/hosts, /etc/nodename, hostname.ce0, /etc/net/<stuff needed to change>. But for some reason now NIS does not work. This is not the NIS server. When I telnet in I get "No directory! Logging in with home=/" when I... (4 Replies)
Discussion started by: kjbaumann
4 Replies

3. Ubuntu

How To Join NIS Domain to an Ubuntu workstation

Hi guys, i am having a problem :confused:actually i never did this before,so please help me to join nis domain to an ubuntu workstation. As i have configured and running NIS Server on RedHat 4.0 in my network and want to set an ubuntu workstation as client. please tell all steps......looking for... (2 Replies)
Discussion started by: daya.pandit
2 Replies

4. UNIX for Dummies Questions & Answers

My domain name as my IRC hostname?

When I connect to any IRC server, it's usually my ISP IP address/hostname. I own a domain, but I'm not using it for anything (no web hosting service or server). Is it possible for me to use my domain as my IRC hostname instead of my regular ISP hostname? (0 Replies)
Discussion started by: guitarscn
0 Replies

5. Shell Programming and Scripting

FQDN into domain name and hostname

I'm working on a rather large script atm (it already takes 9 arguments). As such, I need to obtain both a server name and domain from the FQDN. From this, I want to both populate the hostname of the server, as well as the domain line in the /etc/resolv.conf file. Obviously, this isn't working. I... (10 Replies)
Discussion started by: msarro
10 Replies

6. Shell Programming and Scripting

Trying to extract domain and tld from list of urls.

I have done a fair amount of searching the threads, but I have not been able to cobble together a solution to my challenge. What I am trying to do is to line edit a file that will leave behind only the domain and tld of a long list of urls. The list looks something like this: www.google.com... (3 Replies)
Discussion started by: chamb1
3 Replies

7. UNIX for Dummies Questions & Answers

nLocal sendmail issues when hostname not set in official domain name

Hi, I'm having issues with sendmail when I try to send host to host mail. I've had to change the "my official domain name" line to mycompany.com to get the mails through the external spam filter, when a mail was sent with hostname.mycompany.com it was blocked. I had to change the Dj macro... (0 Replies)
Discussion started by: elcounto
0 Replies

8. UNIX for Dummies Questions & Answers

Postfix Configuration:Hostname/Domain Name Doubts

I have a RHEL server where I want to create a mail server so I can send myself alerts whenever X process have problems. Disclaimer: Im a programmer thats been forced to do IT. So I'm trying my best here. The problem: While configuring Postfix it asks for $myhostname which apparently must be... (2 Replies)
Discussion started by: RedSpyder
2 Replies

9. Red Hat

List domain groups

Hi Need to list all gid for particular domain user. Actually in database getting error like one of the gid that user belongs is invalid. please suggest. thanks Paul (1 Reply)
Discussion started by: Mathew_paul
1 Replies

10. Solaris

How to list physical CPU on primary domain?

How to list physical CPU on primary domain? Sparc SPARC T5-4 psrinfo -p 1 in ILOM I see Processors: 4 / 4 (2 Replies)
Discussion started by: thomasj
2 Replies
ypfiles(4)							   File Formats 							ypfiles(4)

NAME
ypfiles - Network Information Service Version 2, formerly knows as YP DESCRIPTION
The NIS network information service uses a distributed, replicated database of dbm files , in ASCII form, that are contained in the /var/yp directory hierarchy on each NIS server. A dbm database served by the NIS server is called a NIS map. A NIS domain is a subdirectory of /var/yp that contains a set of NIS maps on each NIS server. Standard nicknames are defined in the file /var/yp/nicknames. These names can be used in place of the full map name in the ypmatch and ypcat commands. Use the command ypwhich -x to display the current set of nicknames. Use the command ypwhich -m to display all the avail- able maps. Each line of the nickname file contains two fields separated by white space. The first field is the nickname, and the second field is the name of the map that it expands to. The nickname cannot contain a ".". NIS to LDAP (N2L) If the /var/yp/NISLDAPmapping configuration file is present, the NIS server operates in NIS to LDAP (N2L) mode. In this mode, NIS maps are stored in a new set of DBM files, prepended by the LDAP_ prefix, at /var/yp/domainename. These files are used as a cache backed by infor- mation from an LDAP server. Additional DBM files are created in the same directory to hold the cache's TTL values. N2L mode enables NIS clients to be supported in an LDAP environment. In N2L mode, the old style DBM files, NIS source files, and the ypmake(1M) utility have to role. They are retained to enable easy conver- sion back to the traditional mode, if required. Converting from N2L to Traditional NIS When NIS is operating in N2L mode, it uses a new set of NIS maps with an LDAP_ prefix, based on the contents of the LDAP DIT. The NIS source files are unused and become out of date. If you wish to convert back to the traditional NIS mode, the N2L configuration file should be deleted. The system will then return to using the standard map files. Optionally, the N2L mode map files, /var/yp/*/LDAP_* can also be deleted. If you want to run the system in traditional mode with information based on the DIT, then the NIS source files must be regenerated based on the N2L maps. To regenerate the NIS source files based on the N2L maps, run ypmap2src(1M). NIS+ NIS+ also provides a NIS service when it runs in YP-compatibility mode. See nis+(1) and rpc.nisd(1M). NIS+, in any mode, cannot be run on the same system as ypserv, whether ypserv is in traditional or N2L mode. FILES
/var/yp Directory containing NIS configuration files. /var/yp/binding Stores the information required to bind the NIS client to the NIS server. /var/yp/binding/ypdomain/ypservers Contains the servers to which the NIS client is allowed to bind. /var/yp/Makefile Builds the NIS ndbm databases. /var/yp/nicknames Nicknames file. /var/yp/securenets Defines the hosts and networks that are granted access to information in the served domain. This file is read at startup time by ypserv and ypxfrd. /var/yp/ypdomain Directory containing ndbm databases. /var/yp/NISLDAPmapping NIS to LDAP configuration file /var/yp/*/LDAP_* NIS to LDAP mode map files SEE ALSO
ldap(1), nis+(1), makedbm(1M), nisaddent(1M), nissetup(1M), rpc.nisd(1M), ypbind(1M), ypinit(1M), ypmake(1M), ypmap2src(1M), ypserv(1M), ypxfrd(1M), ndbm(3C), ypclnt(3NSL) NOTES
The NIS+ server, rpc.nisd, when run in "YP-compatibility mode", can support NIS clients only for the standard NIS maps listed below, pro- vided that it has been set up to serve the corresponding NIS+ tables using nissetup(1M) and nisaddent(1M). The NIS+ server should serve the directory with the same name (case sensitive) as the domainname of the NIS client. NIS+ servers use secure RPC to verify client creden- tials but the NIS clients do not authenticate their requests using secure RPC. Therefore, NIS clients can look up the information stored by the NIS+ server only if the information has "read" access for an unauthenticated client, that is, one with nobody NIS+ credentials. NIS maps NIS+ tables passwd.byname passwd.org_dir passwd.byuid passwd.org_dir group.byname group.org_dir group.bygid group.org_dir publickey.byname cred.org_dir hosts.byaddr hosts.org_dir hosts.byname hosts.org_dir mail.byaddr mail_aliases.org_dir mail.aliases mail_aliases.org_dir services.byname services.org_dir services.byservicename services.org_dir rpc.bynumber rpc.org_dir rpc.byname rpc.org_dir protocols.bynumber protocols.org_dir protocols.byname protocols.org_dir networks.byaddr networks.org_dir networks.byname networks.org_dir netmasks.byaddr netmasks.org_dir ethers.byname ethers.org_dir ethers.byaddr ethers.byname bootparams bootparams auto.master auto_master.org_dir auto.home auto_home.org_dir auto.direct auto_direct.org_dir auto.src auto_src.org_dir SunOS 5.10 24 Nov 2003 ypfiles(4)
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy