Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Accessing with Hostname/FQDN/IP address

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

Avatar of bahige
bahige
Flag of United States of America image

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.
You can also check the WINS server (if you have one) to make sure that there are records for the \\computername
SOLUTION
Avatar of mrroonie
mrroonie
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

- 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 .


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
Avatar of jskfan

ASKER

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??
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.
Avatar of jskfan

ASKER

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.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

nslookup works just fine for both:
nslookup computername
nslookup computer.domainname
no duplicate record
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
Avatar of jskfan

ASKER

unfortunately I don't have any control/knowledge of Linux Samba
Avatar of jskfan

ASKER

Thanks