1833784 Members
2560 Online
110063 Solutions
New Discussion

NIS Server and DNS

 
Ralf Buchhold
Regular Advisor

NIS Server and DNS

Is it possible, that a NIS Server can get new hostnames and IP Adresses from a DNS-Server (perhaps an Windows-based-Server) to synchonize
the NIS Server?

Thanks for answers.
Ralf Buchhold
2 REPLIES 2
SureshKumar_2
Valued Contributor

Re: NIS Server and DNS

Dear Ralf,

DNS supports hierarchical in nature

NIS is not support Hier.

It is not possible update from DNS -> NIS.

Provided u have all entries in a text file and u have to run ypmake on server side.

First take a backup of /etc/hosts, and go thru the format It shold be


you can try export option in DNS (windows)
and copy as /etc/hosts

and run ypmake

It will solve ur problem.

OR If u want to maintain on Windows (NIS service toooo...), then u may think of Services for Unix 3.0 (Priced item available for Win2003)

if any queries let me know...

Best of LUCK.

Things are very easy, when u know about it...
Victor Fridyev
Honored Contributor

Re: NIS Server and DNS

Hi Ralf

I have the same situation, so I built a script, which translates output of DNS db to /etc/hosts on the NIS server. The script is attached. If you run it without parameters it asks you whether to update /etc/hosts and NIS, with a parameter it will update them automatically, so you can run it from crontab. Additional condition: the script copies all commented out strings from /etc/hosts to new file till a string, which contains 127.0.0.1

Good luck
Entities are not to be multiplied beyond necessity - RTFM