- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Re: use /etc/hosts file instead DNS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 07:13 AM
тАО04-02-2010 07:13 AM
use /etc/hosts file instead DNS
I have a W2k3 boxe ,i want to use /etc/hosts instead DNS IE i want nslookup command point to /etc/hosts first to resolve the ip.is there a way to configure this
Thanks for your support,
Amine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 09:09 AM
тАО04-02-2010 09:09 AM
Re: use /etc/hosts file instead DNS
You can set the default server for nslookup requests by entering:
NSLOOKUP
SERVER
In this case you want to use the local machine name.
good luck, if you appreciate the answers we appreciate the points :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2010 10:37 PM
тАО04-05-2010 10:37 PM
Re: use /etc/hosts file instead DNS
ref http://technet.microsoft.com/en-us/library/bb727005.aspx
The host name resolution process will first query the local DNS client cache. Then it will look in the Hosts file and lastly query DNS if none of the previous provided a name resolution.
So, the only thing you need to do to make W2K3 use the Hosts file is to enter hostnames and corresponding IP-addresses.
In case the local DNS cache has already resolved a name that you want it to look into the Hosts file for instead - you should do a "ipconfig /flushdns" command first. This will clear the local DNS client cache and therefore it will continue to check the Hosts file and secondly DNS.
Using "ipconfig /flushdns" is always a good idea when testing name resolution to not get fooled by results from the local cache.
Cheers,
Rune
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 12:42 AM
тАО04-06-2010 12:42 AM
Re: use /etc/hosts file instead DNS
I have a W2k3 boxe ,i want to use /etc/hosts instead DNS IE i want nslookup command point to /etc/hosts first to resolve the ip.is there a way to configure this
/etc/hosts is in Unix / Linux enviroments, in the Windows the hosts file is located in :
C:\WINDOWS\system32\drivers\etc
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 02:34 AM
тАО04-06-2010 02:34 AM
Re: use /etc/hosts file instead DNS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 08:12 PM
тАО04-06-2010 08:12 PM
Re: use /etc/hosts file instead DNS
What OS you are actually using? /etc/hosts is *nix style local name lookup not Windows.
Would you mind putting an entry into C:\WINDOWS\system32\drivers\etc and test again?
Does ping from command prompt works at all. Post the nslookup output as well...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2010 01:55 AM
тАО04-07-2010 01:55 AM
Re: use /etc/hosts file instead DNS
C:\Documents and Settings\>nslookup trafprod
Server: xxx.???.net.ma
Address: xx.xx.xx.xx
*** xxx.???.net.ma can't find tarfprod: Non-existent domain
C:\Documents and Settings\>
and my /etc/hosts has the fellowing entry with the correct ip and hostname
xx.xx.xx.xx tarfprod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2010 02:21 AM
тАО04-07-2010 02:21 AM
Re: use /etc/hosts file instead DNS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2010 08:25 AM
тАО04-12-2010 08:25 AM
Re: use /etc/hosts file instead DNS
Check the properties of your server's network connection:
Network Connection > Properties
Internet Protocol (TCP/IP) > Properties
Advanced...
DNS tab
I think you want to set "Append these DNS suffixes (in order):"
Make sure the domain for trafprod is present in the list.