Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NIS maps problem

Status
Not open for further replies.

afifss

MIS
Jan 4, 2011
8
EG
i am facing problem while updating NIS hosts maps as the following :

1- i was using IP address 192.168.1.20 for host name called test1.

2- the test1 machine have been removed and i re-used the same ip (192.168.1.20) to another machine called test2.

3- i edit the /etc/hosts then run the make to update both the NIS master and NIS slave.

the problem that when i ping -s test2 i get the below

nis01 # ping -s test2
PING test2: 56 data bytes
64 bytes from test1 (192.168.1.20): icmp_seq=0. time=0.594 ms
64 bytes from test1 (192.168.1.20): icmp_seq=1. time=0.675 ms
64 bytes from test1 (192.168.1.20): icmp_seq=2. time=0.589 ms
----test2 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max/stddev = 0.526/0.596/0.675/0.061

so i am still getting the old name .

i tried to go to /var/yp/test_domain/ and remove the hosts maps (hosts.byaddr.dir hosts.byaddr.pag hosts.byname.dir hosts.byname.pag) and then run the make file again and still facing the same problem.

that problem happen in both nis master (solaris 10) , slave (solaris 10) and all solaris 10 clients while the redhat clients when i ping on test2 i get the below

nis01 # ping test2
PING test2: 56 data bytes
64 bytes from test2 (192.168.1.20): icmp_seq=0. time=0.594 ms
64 bytes from test2 (192.168.1.20): icmp_seq=1. time=0.675 ms
64 bytes from test2 (192.168.1.20): icmp_seq=2. time=0.589 ms
----test2 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss

can you help me in that problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top