LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-07-2013, 12:52 PM   #1
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
Why does NIS produce duplicate results when I query from a client?


I'm just curious why I get two results:
Code:
[root@pandora ~]# ypcat hosts | grep dione
192.168.56.22    dione.localnet dione
192.168.56.22    dione.localnet dione
Yet on the NIS server:
Code:
[root@oceanus ~]# grep dione /etc/hosts
192.168.56.22    dione.localnet dione
Is this normal?
What can I look at to find out more?

Any help much appreciated.
 
Old 06-10-2013, 02:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you could start by showing us the actual config, we're not psychic.
 
Old 06-10-2013, 07:40 AM   #3
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Original Poster
Rep: Reputation: 15
Hi Chris,

I appreciate you picking up on this. Please don't interpret the following as a dig at you personally - I just wanted a chance to explain my initial question a little more clearly given the negative tone of your comment.

You're correct - I could have shown you the config. There's two reasons I did not do this:

1) Whether or not there's a configuration problem, it's not relevant to my question "Is this normal?".
2) I already demonstrated that I don't have a duplicate entry in /etc/hosts on oceanus (which was used to generate /var/yp/localnet/hosts.byname). This seems, to me, to be the most obvious legitimate explanation.

NIS seems to work regardless, so I don't know if I've done something wrong - or if this behaviour is correct. If I have done something wrong I'd rather someone tell me "this is wrong", so that I can figure out what the problem is for myself. Of course if this were the case I fully intend to provide an update to explain what I got wrong.

I did think of something else I could include though - If I go on the master and run strings against /var/yp/localnet/hosts.byname I get this entry at the end for dione:
Code:
......dione.localnet192.168.56.22    dione.localnet dionedione192.168.56.22    dione.localnet dione
Best regards,

James
 
Old 06-10-2013, 08:15 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
If you wanted a one word answer if it's normal or not then... no.
 
  


Reply

Tags
nis duplicates



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing to shared HP Office Jet 5610 doesn't produce results PerfectReign Linux - Hardware 6 03-13-2011 08:00 PM
NIS failed for one user on one NIS client - strange problem resolved catbird Linux - Networking 1 10-05-2009 11:00 AM
Nis Client On Centos not working with Suse Server . But works with Suse Nis Client jibinforu Linux - Server 2 07-23-2009 08:44 PM
Nis Client On Centos not working with Suse Server . But works with Suse Nis Client jibinforu Linux - Networking 1 07-13-2009 05:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration