• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 667
  • Last Modified:

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

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
Mccalma1
Asked:
Mccalma1
  • 3
  • 2
1 Solution
 
farzanjCommented:
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
 
Mccalma1Author Commented:
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
 
farzanjCommented:
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
 
Mccalma1Author Commented:
Awesome, I try the instructions in the link and get back to you this afternoon. Thanks!
0
 
Mccalma1Author Commented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now