Solved

How do I refresh or view a list of hostname associating with IP-address?

Posted on 2008-06-24
3
797 Views
Last Modified: 2008-07-04
I am connecting to another computer say "User2" in y network. Its original IP address is say 123.123.123.123

Then, I changed User2 IP address to say 123.123.123.124, any other IP address.
When I type: ping User2 (in command promt)
it is still ping to 123.123.123.123
it is taking quite a while before it refresh to the new IP address.

Is there a way that I can refresh the hostname that is associating to that IP-address in my computer?
Is there any command that I can use to view all the computers that are connected to the network with their latest IP-adress?

thanks.

0
Comment
Question by:oldb
  • 2
3 Comments
 
LVL 28

Expert Comment

by:Bill Bach
ID: 21855229
This "refresh" usually happens automatically.  It is partially handled by the WINS or DNS server on the network (that is handing out the address initially), and partially handled by the local client, which has a DNS cache.

To refresh the DNS server from the box immediately after you change the IP address, you can use the command IPCONFIG /REGISTERDNS.  For most systems using dynamic DNS, this should update the server's table of IP addresses and names.

The other side of the equation is also important (i.e. the box doing the PING, not the one receiving the PING).  To clear out the DNS cache on a Windows box, use the command IPCONFIG /FLUSHDNS.  

Of course, if you have a static DNS entry, then the first item won't work, as you'll need to manually update the DNS tables.  And, if you're using a HOSTS file, the second won't work either, and you'll have to manually update THAT table.


0
 

Author Comment

by:oldb
ID: 21861867
I tried IPCONFIG /registerDNS and IPCONFIG / FLUSHDNS, they dont work.
I have a statis DNS entry, so the first dont work.
How do I manually update the DNS tables? where is it?
How do I know I am using a HOSTS file?
thanks
0
 
LVL 28

Accepted Solution

by:
Bill Bach earned 100 total points
ID: 21865301
The HOSTS file is simpler, so let's do that first.  On Windows XP, it is C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS.  (Note that this file has NO extension, so if you use NotePad, be sure to NOT save it with a TXT extension.)   This provides the FIRST level of name resolution (i.e. BEFORE DNS).   HOSTS files are easy to set up and maintain (simply follow the guidelines in the samples), but are static and must be maintained on EVERY workstation.  For the smallest networks, this works out the best.

For larger networks, HOSTS files are too cumbersome, so another naming convention, such as WINS or DNS is used.  DNS services come in all of the Windows server-class operating systems, as well as NetWare and Linux boxes.  (In other words, XP doesn't have a DNS service.)  Additionally, many firewalls also contain a DNS server.

Each DNS service is configured differently (some with text files, some with GUI utilities), so your first task is to locate which DNS server you are using.  From the workstation, enter "IPCONFIG /ALL" and look for a line like this:
   DNS Servers . . . . . . . . . . . : 192.168.1.11
In this case, the DNS server can be found at this address.  Figure out which machine this is, and it should have a DNS server on it.

Of course, if you are using DHCP to allocate IP addresses, then each workstation can get a new address each time it boots up, so a static DNS or HOSTS files will be outdated almost immediately.  If you are using a static naming system, then you'll also want to configure static IP address, too.  Again, this works well for small networks, but can be a maintenance nightmare for larger ones.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: rfc1180
The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now