Accessing with Hostname/FQDN/IP address

jskfan
jskfan used Ask the Experts™
on
Accessing with Hostname/FQDN/IP address

I would like to know if DNS is used when accessing a share in a remote computer (Samba) using:

\\IPaddress\sharename
\\computername\sharename
\\computername.domainname\sharename

I have some computers that start recently having issue accessing the share using:

\\computername\sharename

But able to access the share using:

\\computername.domainname\sharename
\\IPaddress\sharename

the issue just started recently and there is nothing in the Logs about this issue

Any idea?

Thanks

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
You can add a DNS suffix to the network card of the box (client machine) you are having resolution issues with.  The DNS Suffix would just be domainname (eg. contoso.local).

Then your machine will append .domainname when you ping a name without the domainname filled in.

Commented:
You can also check the WINS server (if you have one) to make sure that there are records for the \\computername
Commented:
\\computername\sharename
\\computername.domainname\sharename
 both use dns but the \\ipaddress doesn't.

to resolve the issue you could edit the hosts file of the problem machine (C:\windows\system32\drivers\etc) to include the server ip address followed by the server name. if you're not sure how just look at the example and copy it underneath with the servers settings
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
- Ok, The DNS suffix is already added since we joined the machines to the domain.
- we don't use Wins server, just DNS.
-All computers use DNS server no host file .


Commented:
So if you do an ipconfig /all, you do see a primary dns suffix?
In the properties of the network card TCP/IP 4 DNS settings does it look like the pic below:

What happens when you go to the command prompt and type in:
nslookup servername

screenshot.png

Author

Commented:
yes it's configured properly.
and the nslookup servername resolves properly too.

These are few of windows computers that have this issue, and it just happened recently, no configuartion have been changed.

I was just wondering if there is Netbios broadcast that has just stopped for some reason.
I believe when you use \\computername\sharename, it will use Netbios. Correct?
and when you use \\computername.domainname.com it will use DNS. Correct??

Commented:
Here is the order from (http://support.microsoft.com/kb/172218):
1. The client checks to see if the name queried is its own.
2. The client then searches a local Hosts file, a list of IP address and names stored on the local computer.
3. Domain Name System (DNS) servers are queried.
4. If the name is still not resolved, NetBIOS name resolution sequence is used as a backup. This order can be changed by configuring the NetBIOS node type of the client.

Author

Commented:
what I was asking was why I can access the share using:
 \\computername.domainname\sharename
But I can't when using  \\computername\sharename
I thought they are both using DNS, and the computer itself has DNS suffix.
Commented:
Both attempts should use dns.  Do you get any differences when you try:
nslookup computername
vs.
nslookup computer.domainname

Do you have multiple dns records in your dns server for the same computer name?

Author

Commented:
nslookup works just fine for both:
nslookup computername
nslookup computer.domainname
no duplicate record

Commented:
Do you have an entry inside of your smb.conf for "netbios hostname"?   What is it?

What does "HOSTNAME" say inside of /etc/sysconfig/network?

Can you let me know what's in etc/hosts.  We may want to make sure 2 entries are in there:
10.0.0.200             hostname.domainname        hostname

Author

Commented:
unfortunately I don't have any control/knowledge of Linux Samba

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial