Solved

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

Posted on 2013-05-15
5
634 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
ID: 39169220
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
ID: 39169255
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
ID: 39170153
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
ID: 39171152
Awesome, I try the instructions in the link and get back to you this afternoon. Thanks!
0
 

Author Closing Comment

by:Mccalma1
ID: 39174782
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
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 …
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…

810 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