- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to export /etc/hosts (host entries) to NIS...
Operating System - Linux
1748274
Members
3888
Online
108761
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 10:14 AM
тАО01-06-2011 10:14 AM
Hi All,
I have configured NIS server in suse linux.
Now I would like to export /etc/hosts (all host entries) to NIS server and want to ping from NIS client with out configuring DNS...How to achieve this...
I have configured NIS server in suse linux.
Now I would like to export /etc/hosts (all host entries) to NIS server and want to ping from NIS client with out configuring DNS...How to achieve this...
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 12:03 PM
тАО01-06-2011 12:03 PM
Solution
If you already have NIS setup in your domain:
nisaddent
If your starting from scratch and want to know the HOWTOs of NIS (formerly called yellow pages) -- employ Goodgle.. lots of good refernces out there. My favourites:
Generic:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS
http://www.labtestproject.com/linnet/nis-nfs.html
nisaddent
If your starting from scratch and want to know the HOWTOs of NIS (formerly called yellow pages) -- employ Goodgle.. lots of good refernces out there. My favourites:
Generic:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS
http://www.labtestproject.com/linnet/nis-nfs.html
Hakuna Matata.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 02:15 PM
тАО01-06-2011 02:15 PM
Re: How to export /etc/hosts (host entries) to NIS server and how to ping the hostname from NIS clients
> I have configured NIS server in suse linux.
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
> Now I would like to export /etc/hosts (all
> host entries) to NIS server [...]
What, exactly, does that mean? I've never
used NIS on SUSE, so I know nothing, but I'd
expect there to be some file like
"/var/yp/Makefile", which should determine
which source files are used to populate the
NIS data base. Knowing nothing, I'd expect
"/etc/hosts" to be used for the "hosts" data.
On the NIS server:
grep -i hosts /var/yp/Makefile
ypcat hosts
> [...] want to ping from NIS client with out
> configuring DNS
What, exactly, does that mean? Do you want
an NIS client to use NIS for name resolution?
man nsswitch.conf
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
> Now I would like to export /etc/hosts (all
> host entries) to NIS server [...]
What, exactly, does that mean? I've never
used NIS on SUSE, so I know nothing, but I'd
expect there to be some file like
"/var/yp/Makefile", which should determine
which source files are used to populate the
NIS data base. Knowing nothing, I'd expect
"/etc/hosts" to be used for the "hosts" data.
On the NIS server:
grep -i hosts /var/yp/Makefile
ypcat hosts
> [...] want to ping from NIS client with out
> configuring DNS
What, exactly, does that mean? Do you want
an NIS client to use NIS for name resolution?
man nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2011 05:01 AM
тАО01-07-2011 05:01 AM
Re: How to export /etc/hosts (host entries) to NIS server and how to ping the hostname from NIS clients
>want to ping from NIS client with out configuring DNS
then set your nsswitch.conf to the following:
# grep hosts /etc/nsswitch.conf
hosts: files nis
#
then set your nsswitch.conf to the following:
# grep hosts /etc/nsswitch.conf
hosts: files nis
#
****
Unix operates with beer.
Unix operates with beer.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP