Avatar of unrealone1
unrealone1
Flag for United Kingdom of Great Britain and Northern Ireland asked on

DNS - not resolving name

I have an XP Pro PC which shares files out.

\\computer1\share

When I map the drive on another machine XP Pro PC it wont resolve the name.

it won't find it if I use \\computer1\share - I have to use the IP address

\\192.168.16.5\share

I can ping computer1

computer1 is the correct name of the PC
Is there a service which isn't start or something? Can't see whats wrong....
Server SoftwareNetworkingNetwork Management

Avatar of undefined
Last Comment
unrealone1

8/22/2022 - Mon
unrealone1

ASKER
I can ping "computer1"
wantabe2

Have you checked the DNS settings on your NIC of the computer that is having problems resolving? If this is a domain, then their should be an entry on the DNS server pointing the computer name to an IP. If this is a home based or small LAN, without a DNS server, you'll have to use the IP in the UNC.
ASKER CERTIFIED SOLUTION
crokeefe28

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
unrealone1

ASKER
Its just a home network. No domain.

I have a static address on my nic, 192.168.16.20

The preferred dns is set to point to the router address. 192.168.16.1
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
unrealone1

ASKER
sorry the static address is 192.168.16.5 not .20
wantabe2

If you look at your router settings it should be pointing towards your ISP's DNS servers. There is no record of your PC's computer name on their DNS servers so there for you will not be able to resolve your home computer's name to an IP without a DNS server on your subnet "192.168.16.x"
crokeefe28

Just add the entry to the hosts file and your problem should be solved.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
unrealone1

ASKER
ok I undertsand. So how can I go about resolving it?

With a server in place I imagine it deals with this?

wantabe2

"Just add the entry to the hosts file and your problem should be solved." posted by crokeefe28 will also work. I forgot about that.
crokeefe28

DNS servers are typically only for networks where it would be unmanageable to use hosts files.  for your scenario, make a network name, such as "myhouse.local" and stick with it for all machines.  you could use the following:

machine1.myhouse.local
machine2.myhouse.local

When you map from machine1 to machine2 (after you place the the hosts file entry), you would use the following:

\\machine2.myhouse.ocal\sharename

or if you put the hosts file as showed in the previous post, where you also put the shortname---- machine2----in the hosts file:

\\machine2\sharename
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
unrealone1

ASKER
Crokeefe that is spot on! Thank you!
crokeefe28

no problem....glad I could help
unrealone1

ASKER
Resolved the problem, and I learned somthing too!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.