Operating System - HP-UX
1834637 Members
2812 Online
110069 Solutions
New Discussion

can talk to NT from IP address but not from name

 
SOLVED
Go to solution
Mark Vollmers
Esteemed Contributor

can talk to NT from IP address but not from name

Hi, all. I was screwing around with things last week and I messed up something but can figure out what or how to fix it. I have my server set up using NIS. I have some NT stations that are connected thru NFS. Normally, I mount two folders from each NT to directories on the server. The entires are in /etc/fstab, and have worked fine. Each NT station is in /etc/hosts with name and IP. The two NT stations are on a different subnet than the server. When I go to run the mount command, it says:

ndf mount: get_fh: engpro5:: RFC: Unkown host

I can individually mount the NTs that are here just fine. The other NT station, when I try to mount it, just hangs there. I can ping each NT just fine with the IP address, but it says unknown host for engpro5, and hangs for engpro4. The only line I changed in /etc/nsswitch.conf was to add "services: nis files" so that I could configure samba. I do not have a /etc/resolve.conf. To my knowledge, the NT can see and use the server just fine. Any thoughts? Thanks.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor

Re: can talk to NT from IP address but not from name

This is clearly a hostname resolution problem. Since, you indicated that you use NIS, have you updated the hosts map on the NIS server and then done a ypmake to push the host maps to the clients? You need to make sure that you can ping the NT boxes by hostname and that the NT boxes can ping your UNIX boxes by hostname and you should be all set.

If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: can talk to NT from IP address but not from name

Mark,

When you do nslookup on the HP server looking for the NT's, what does it say?

live free or die
harry
Live Free or Die
Mark Vollmers
Esteemed Contributor

Re: can talk to NT from IP address but not from name

Clay-

I went to /var/yp and did a make hosts and it says that /var/yp/mbceng/hosts.time is up to date. It still does the same thing.

Harry-

when I do the nslookup, for engpro5, it lists the default NIS server as pro2 (this is actually my workstation that I am using, the server name is munix) and then it says:
trying NIS-
***no address information is available for "engpro5"

when I do engpro4, it connects fine with no errors and lists the name and IP correctly.
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
A. Clay Stephenson
Acclaimed Contributor

Re: can talk to NT from IP address but not from name

Okay Mark:

You need to check the hosts map on your NIS master for your engpro5 entry. Here is by best guess: You updated the hosts map probably /etc/hosts but dif not increase the Serial Number so that the map was not remade.

Again, the ping test will lead you in the right direction.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: can talk to NT from IP address but not from name

Mark,

What does your nsswitch.conf file look like?

live free or die
harry
Live Free or Die
Mark Vollmers
Esteemed Contributor

Re: can talk to NT from IP address but not from name

Clay-

I looked at /etc/hosts, and it is correct. I haven't changed it for a few months also, so unless it is reading something wrong, I don't know where to go with that.

Harry, I have attached the nsswitch.conf. Like I said, I added the services line last week, but the rest was there before when it worked.
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Vollmers
Esteemed Contributor

Re: can talk to NT from IP address but not from name

I noticed something else. When I go to mount the other folder that is shared (/engpro5/Intralink_files), it tells me that that entry is either ignored or not in /etc/fstab. I will attach the fstab file. Why would it ignore an entry in the file?

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
harry d brown jr
Honored Contributor
Solution

Re: can talk to NT from IP address but not from name

Mark,

Change the NOTFOUND's in the first hit to "continue", like this:

hosts: nis [NOTFOUND=continue UNAVAIL=continue] files [NOTFOUND=return UNAVAIL=continue]
passwd: files [NOTFOUND=return UNAVAIL=return]
group: files [NOTFOUND=return UNAVAIL=return]
services: nis [NOTFOUND=continue UNAVAIL=continue] files [NOTFOUND=return UNAVAIL=return]


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: can talk to NT from IP address but not from name

Mark,

Are you getting errors with /engpro5/temp also?

live free or die
harry
Live Free or Die
Mark Vollmers
Esteemed Contributor

Re: can talk to NT from IP address but not from name

Harry-

/engpro5/temp is the one that does not respond when I try to mount it. for some reason, /engpro5/Intralink_files doesn't give the same error but the one about the fstab.

I made the changes. I forget which processes to restart. I think it is the nfs and nis.server and .client Is that right? Thanks.

mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"