Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Windows   local host entry

Posted on 2014-09-28
16
149 Views
Last Modified: 2014-10-09
Hello,

I don't have DNS server and I would like to resolve host name through %WinDir%\System32\Drivers\Etc\hosts
and put the host name, but it is not resolving it.

I have rebooted the server and it didn't fix.

Any thing else need to do?
0
Comment
Question by:mokkan
  • 7
  • 6
  • 3
16 Comments
 
LVL 22

Accepted Solution

by:
Larry Struckmeyer MVP earned 188 total points
ID: 40349087
Can you be more specific?  You have a Windows server?  Any specific reason you don't enable the DNS server role?  Windows domains, even workgroups, really expect there to be local DNS.

But in any case, please post up the contents of your hosts file.  It should show the ip address of the station/server and the name of the station.
0
 

Author Comment

by:mokkan
ID: 40349100
I am more into Unix/Linux and just learning Windows  because I need to do some configuration for my VCS project.

Yes, it is windows 2008 R2 server.  I'm not sure how to enable the DNS server role and edit the DNS zone file.  I need to create lanman resource for VCS and I need to setup a virtual name.

I  just added the following entry

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#      127.0.0.1       localhost
#      ::1             localhost

192.168.0.20   thara
0
 
LVL 6

Assisted Solution

by:Sir Learnalot
Sir Learnalot earned 312 total points
ID: 40349812
All thats doing is resolving the IP to name... you have to open Server Manager (an application that comes with Windows Server) and go to "Add Roles" and select DNS Server :) Once you install the role, you can click on DNS and configure it how you like, adding Forward/Reverse Lookup Zones and such. Good luck :)
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:mokkan
ID: 40349821
Thank you very  much.  Is this  DNS server like bind?
0
 

Author Comment

by:mokkan
ID: 40349828
But, isn't suppose to resolve without DNS lookup since I already have host name in  hosts file?  Why do I need DNS since I put the host name in in hosts file?
0
 
LVL 22

Assisted Solution

by:Larry Struckmeyer MVP
Larry Struckmeyer MVP earned 188 total points
ID: 40349867
I have never done this, but try the FQDN of the station, as in thara.domain.local or whatever.
0
 
LVL 6

Assisted Solution

by:Sir Learnalot
Sir Learnalot earned 312 total points
ID: 40349884
Larry is correct, you have to put in the FQDN of the server not just the name of the machine
0
 

Author Comment

by:mokkan
ID: 40349909
I  put the FQDN and still  not resolving it. My question is that if there is no DNS setup, isn't it suppose to go and check the host file resolve the host name like unix ?
0
 
LVL 6

Assisted Solution

by:Sir Learnalot
Sir Learnalot earned 312 total points
ID: 40350015
Hmm, curious. Yes it is... did you double check to make sure your firewall isn't blocking the connection?
0
 
LVL 22

Assisted Solution

by:Larry Struckmeyer MVP
Larry Struckmeyer MVP earned 188 total points
ID: 40350213
Check to see you can ping the thara system by name and ip.
0
 

Author Comment

by:mokkan
ID: 40354682
yes, I can ping by IP, not by hostname which I put in  hosts file.

Sorry, what firewall port needs to be opened? I'm just quering against local server.
0
 
LVL 6

Assisted Solution

by:Sir Learnalot
Sir Learnalot earned 312 total points
ID: 40359358
Would you mind pasting here how you entered your FQDN, I've often seen people enter it incorrectly and be the cause of the issue.
0
 
LVL 6

Expert Comment

by:Sir Learnalot
ID: 40359362
And DNS uses port 53... which SHOULD be enabled by default...
0
 

Author Comment

by:mokkan
ID: 40359550
Thank  you very much guys, some how IP wasn't pingable, but it was showing in IP config, when I pinged I got

Tranismit failed:  General failure error.

I did  ipconfig  /release and ipconfig  /renew on  server, and went to my my xp where I had vsphere client installed to access my lab and I did  ipconfig  /release   and ipconfig  /renew and worked.  Thank you very  much guys.
0
 
LVL 6

Assisted Solution

by:Sir Learnalot
Sir Learnalot earned 312 total points
ID: 40359766
lol.... so all you needed was to refresh the connection to update the settings. :) Glad it worked. Please mark down all assisted solutions, thank you and have a great day!
0
 

Author Closing Comment

by:mokkan
ID: 40371566
Thank you guys.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question