Solved

Can't get Ubuntu NIS client to work with RHEL 6.2 NIS server

Posted on 2013-05-15
5
611 Views
Last Modified: 2013-05-17
I'm setting up a server and a client machine for the first time. I ran the "dig" and "nslookup" commands on the server and I get good results (see attached). I get the following results on the client machine:

root@ubuntu:/home/mark# dig 137.244.226.231

; <<>> DiG 9.8.1-P1 <<>> 137.244.226.231
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26540
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;137.244.226.231.            IN      A

;; Query time: 3 msec
;; SERVER: 137.244.226.231#53(137.244.226.231)
;; WHEN: Wed May 15 13:20:41 2013
;; MSG SIZE  rcvd: 33

-----------------------------------------------------------------------------------------------------

root@ubuntu:/home/mark# nslookup
> set debug
> main
Server:            137.244.226.231
Address:      137.244.226.231#53

------------
    QUESTIONS:
      main.simnet.net, type = A, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ADDITIONAL RECORDS:
------------
** server can't find main.simnet.net: REFUSED
;; Got SERVFAIL reply from 137.244.226.231, trying next server
Server:            127.0.0.1
Address:      127.0.0.1#53

------------
    QUESTIONS:
      main, type = A, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ->  .
      origin = a.root-servers.net
      mail addr = nstld.verisign-grs.com
      serial = 2013051500
      refresh = 1800
      retry = 900
      expire = 604800
      minimum = 86400
      ttl = 114
    ADDITIONAL RECORDS:
------------
** server can't find main: NXDOMAIN
> main.simnet.net
Server:            137.244.226.231
Address:      137.244.226.231#53

------------
    QUESTIONS:
      main.simnet.net, type = A, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ADDITIONAL RECORDS:
------------
** server can't find main.simnet.net: REFUSED
Server:            137.244.226.231
Address:      137.244.226.231#53

------------
    QUESTIONS:
      main.simnet.net.simnet.net, type = A, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ADDITIONAL RECORDS:
------------
** server can't find main.simnet.net.simnet.net: REFUSED
> 137.244.226.231
Server:            137.244.226.231
Address:      137.244.226.231#53

------------
    QUESTIONS:
      231.226.244.137.in-addr.arpa, type = PTR, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ADDITIONAL RECORDS:
------------
** server can't find 231.226.244.137.in-addr.arpa: REFUSED
Server:            137.244.226.231
Address:      137.244.226.231#53

------------
    QUESTIONS:
      231.226.244.137.in-addr.arpa, type = PTR, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ADDITIONAL RECORDS:
------------
** server can't find 231.226.244.137.in-addr.arpa: REFUSED

----------------------------------------------------------------------------------------------

I'm about to lose my mind. Any help would be greatly appreciated!
Main-Server-nslookup-results.txt
0
Comment
Question by:Mccalma1
  • 3
  • 2
5 Comments
 
LVL 31

Expert Comment

by:farzanj
Comment Utility
Your DNS server is not configured.  Answers are not good but that is hardly relevant to NIS server.  You don't really need to configure DNS to establish NIS server-client.

Why are you using public IP address?  Are the client and server on the same network?  Can you get a private IP?

But that is still not it.


All you need is to check that your server up and running and your client is configured correctly.

Is RedHat client or server?  Ubuntu client?
0
 

Author Comment

by:Mccalma1
Comment Utility
I'm setting up a server for my customer. Their server is going to be in a lab and not connected to the internet that I know of. I'm using the IP address that they told me to use.

I'm testing DNS/NIS/NFS of the RedHat server by setting up an ubuntu client. I'm trying to make sure everything is plug and play so on-site installation goes smooth.

I'm good with computers, but this is all new to me. Our expert found a job somewhere else and this project ended up in my lap.

Do you think you could help me get the files setup properly on the server & client so NIS works? I can open another question for the DNS issues. This way you can get double the points.
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
Comment Utility
Ok, so RHEL server.

DNS configuration is simple but lets deal one issue at a time.

Let's deal with NIS server. It is meant for centralizing of user passwords.

First you need to make sure that NIS server is set up correctly.  And it is not hard.

Here's a link
http://techbdnet.blogspot.ca/2013/03/how-to-nis-server-on-rhel-63-or-centos.html
0
 

Author Comment

by:Mccalma1
Comment Utility
Awesome, I try the instructions in the link and get back to you this afternoon. Thanks!
0
 

Author Closing Comment

by:Mccalma1
Comment Utility
Thanks for your help, I was able to get my Redhat server working with NIS via your link. I found a YouTube video which explained how to setup NIS on my Ubuntu client.

While logged into the client as a local user; I can login as an NIS user from within the Terminal. But, I can't login to an X-windows session. This new issue is not relevant to the question in the subject, so I will open a new question.

I think I fixed my DNS issues on the server, but not 100% sure. Also, I'm still having issues with nslookup and dig on the client. I will open another question for this issue as it is also not relevant to the question in the subject.

Thank you for your help!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Understanding FTPS File transfer is a common requirement in most Enterprises. While there are numerous ways to get a file from Point A to Point B over a network, perhaps the most common method still in use is FTP – File Transfer Protocol. FTP is …
SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now