1752808 Members
6109 Online
108789 Solutions
New Discussion юеВ

hostname

 
SOLVED
Go to solution
Sajjad Sahir
Honored Contributor

Re: hostname

Dear Dennis Handly
This is the information regarding two servers ok, please check it and let me know
hp_data1 server

This server I can ping with hostname(without entry in windows)

cat /etc/hosts


100.100.100.1 cache_fuson1
100.100.100.2 cache_fuson2
10.65.60.51 hp_data1 hp_data1.mosa.gov
10.65.60.52 hp_data2 hp_data2.mosa.gov
127.0.0.1 localhost loopback
10.10.10.1 heartbeat1
10.10.10.2 haertbeat2
10.65.60.100 main.mosa.gov
10.65.56.135 mail-serv.mosa.gov
10.65.60.60 mosa-sma01
nsswitch.conf

cat /etc/nsswitch.compat

passwd: compat
group: compat
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: nis [NOTFOUND=return] files



soceity1 server

This server I can't ping with hostname

cat /etc/hosts

10.65.65.11 society1
127.0.0.1 localhost loopback

cat /etc/nsswitch.conf

passwd: compat
group: compat
hosts: files [NOTFOUND=return] nis [NOTFOUND=return]
ipnodes: dns [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: nis [NOTFOUND=return] files


society1# cat /etc/resolv.conf
nameserver 10.65.60.100

u need any further information let me know? I will give complete description, but i need it very urgently
see i didn't configure any thing in case of first server in windows but i can ping with that one wiht hostname
but in second server it is not possible.

in window if we editing in /etc/hosts we will get it no problem. but i need it how to solve this issue form unix
file system it self.
Dennis Handly
Acclaimed Contributor

Re: hostname

>This is the information regarding two servers ok, please check it and let me know

I assume here is nothing on HP-UX that will solve this issue. You need to look to your DNS.

>society1# cat /etc/resolv.conf
nameserver 10.65.60.100

I assume you need look at this machine.

>i didn't configure any thing in case of first server in windows but i can ping with that one with hostname

Perhaps someone already added it to the DNS?

>but i need it how to solve this issue form unix file system it self.

I don't think it works this way?
Sajjad Sahir
Honored Contributor

Re: hostname


not pinging
cat /etc/nsswich.nisplus
passwd: files nisplus
group: files nisplus
hosts: nisplus [NOTFOUND=return] files
ipnodes: files
services: nisplus [NOTFOUND=return] files
networks: nisplus [NOTFOUND=return] files
protocols: nisplus [NOTFOUND=return] files
rpc: nisplus [NOTFOUND=return] files
publickey: nisplus
netgroup: nisplus [NOTFOUND=return] files
automount: files nisplus
aliases: files nisplus


This one pinging
cat /etc/nsswitch.nisplus
passwd: files nisplus
group: files nisplus
hosts: nisplus [NOTFOUND=return] files
services: nisplus [NOTFOUND=return] files
networks: nisplus [NOTFOUND=return] files
protocols: nisplus [NOTFOUND=return] files
rpc: nisplus [NOTFOUND=return] files
publickey: nisplus
netgroup: nisplus [NOTFOUND=return] files
automount: files nisplus
aliases: files nisplus

Sajjad Sahir
Honored Contributor

Re: hostname

Dear Denny
what are the files out put u need in both servers, I will give complete output
so please let me know.

Sajjad
Dennis Handly
Acclaimed Contributor

Re: hostname

Asking around indicates:
1) HP-UX systems on the same subnet know about each other automatically.
2) Windows boxes in the same workgroup know about each other.

3) If not one of above, you will have to edit the hosts file, or use a DNS.
Dennis Handly
Acclaimed Contributor

Re: hostname

This threads has info about nsupdate that may be able to update your DNS servers:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1251969