Is there a way to share a hosts list via NIS? Are there any advantages to this over DNS or /etc/hosts? I'm running NIS, DNS, and home directory shares all off of one server (honker in the examples, 10.30.27.5)
Nathan On 8/12/07, Nathan Moore <[EMAIL PROTECTED]> wrote: > > Thanks for the pointer! This solved the problem, > > [EMAIL PROTECTED] ~]# cat /etc/nsswitch.conf > # > # /etc/nsswitch.conf > # > # An example Name Service Switch config file. This file should be > # sorted with the most-used services at the beginning. > ... > #hosts: db files nisplus nis dns > # hosts: files nis dns this was the original version > hosts: dns files nis > > When I changed the order of the hosts entry, the name lookup worked. I > suppose the other route would be to have a long /etc/hosts file on each > machine that defines the names of all nodes. > > I'm still confused about the contents of /etc/hosts though. Any ideas? > > Nathan > > > > On 8/11/07, Miles O'Neal < [EMAIL PROTECTED]> wrote: > > > > Nathan Moore said... > > > > |[EMAIL PROTECTED] ~]# cat /etc/hosts > > |# Do not remove the following line, or various programs > > |# that require network functionality will fail. > > |127.0.0.1 buff localhost.localdomain localhost > > |::1 localhost6.localdomain6 localhost6 > > | > > |Can someone explain what the "localhost6" does? > > > > I'm guessing from the format and that the line contains three > > sixes (666!) that it's IPV6 stuff. > > > > Which doresn't help with your other problem. > > > > What is your nsswitch.conf entry for hosts? > > Does NIS or LDAP factor in? > > > > > > -- > - - - - - - - - - - - - - - - - - - - - - > Nathan Moore > Assistant Professor, Physics > Winona State University > AIM: nmoorewsu > - - - - - - - - - - - - - - - - - - - - - > -- - - - - - - - - - - - - - - - - - - - - - Nathan Moore Assistant Professor, Physics Winona State University AIM: nmoorewsu - - - - - - - - - - - - - - - - - - - - -
