944,076 Members | Top Members by Rank

  • Networking Discussion Thread
  • Unsolved
  • Views: 2041
  • Networking RSS
Oct 12th, 2009
0

cant ping hostname

Expand Post »
Hi,

I have 2 machines on my network and a router.
my router is 192.168.1.1 and my machines are:
darkstar 192.168.1.15 (Ubuntu)
dazlaptop 192.168.1.16 (WXP)

These two machines share files and work, and when i am in windows XP i can go to the folder directory \\darkstar\ and it opens.

But when i type ping darkstar it says this:
Pinging darkstar [172.16.142.1] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

This is stupid because i can ping darkstar (192.168.1.15) and it works.

But i cant use the hostname.

So i tried flushing the dns.
ipconfig /flushdns

and it still does the same thing, I have no idea where it got this 172 B class network address from.

If I try it vice versa it still wont ping.

daz@darkstar:~$ ping dazlaptop
^C
daz@darkstar:~$ ping 192.168.1.16
PING 192.168.1.16 (192.168.1.16) 56(84) bytes of data.
64 bytes from 192.168.1.16: icmp_seq=1 ttl=128 time=1.48 ms
64 bytes from 192.168.1.16: icmp_seq=2 ttl=128 time=1.23 ms
^C
--- 192.168.1.16 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.231/1.355/1.480/0.129 ms

So it works Via IP, and for some reason samba works fine, but I have no clue why it wont let me flush the dns and let me use the hostname.

Also it only does this sometimes after the machines have been restarted.

Any ideaS?
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
Dazaa is offline Offline
30 posts
since Oct 2009
Oct 13th, 2009
0

Dns vs hosts file

You have no common DNS server to translate the name. It may be possible to add the IPs to the individual hosts file on each PC if you really need to use names. If you are just mapping you can use the IP\share....

Click to Expand / Collapse  Quote originally posted by Dazaa ...
Hi,

I have 2 machines on my network and a router.
my router is 192.168.1.1 and my machines are:
darkstar 192.168.1.15 (Ubuntu)
dazlaptop 192.168.1.16 (WXP)

These two machines share files and work, and when i am in windows XP i can go to the folder directory \\darkstar\ and it opens.

But when i type ping darkstar it says this:
Pinging darkstar [172.16.142.1] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

This is stupid because i can ping darkstar (192.168.1.15) and it works.

But i cant use the hostname.

So i tried flushing the dns.
ipconfig /flushdns

and it still does the same thing, I have no idea where it got this 172 B class network address from.

If I try it vice versa it still wont ping.

daz@darkstar:~$ ping dazlaptop
^C
daz@darkstar:~$ ping 192.168.1.16
PING 192.168.1.16 (192.168.1.16) 56(84) bytes of data.
64 bytes from 192.168.1.16: icmp_seq=1 ttl=128 time=1.48 ms
64 bytes from 192.168.1.16: icmp_seq=2 ttl=128 time=1.23 ms
^C
--- 192.168.1.16 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.231/1.355/1.480/0.129 ms

So it works Via IP, and for some reason samba works fine, but I have no clue why it wont let me flush the dns and let me use the hostname.

Also it only does this sometimes after the machines have been restarted.

Any ideaS?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
KeySupport is offline Offline
3 posts
since Oct 2009
Oct 13th, 2009
0
Re: cant ping hostname
Click to Expand / Collapse  Quote originally posted by KeySupport ...
You have no common DNS server to translate the name. It may be possible to add the IPs to the individual hosts file on each PC if you really need to use names. If you are just mapping you can use the IP\share....
I dont mind, i know how to add it to the linux one /etc/hosts but how do you add it in windows?
Reputation Points: 10
Solved Threads: 1
Light Poster
Dazaa is offline Offline
30 posts
since Oct 2009
Oct 13th, 2009
0

Host file

In the case of Windows XP is usually located under the C:windows system32driversetc folder
Reputation Points: 10
Solved Threads: 0
Newbie Poster
KeySupport is offline Offline
3 posts
since Oct 2009
Oct 13th, 2009
0
Re: cant ping hostname
The windows host file is located in %systemroot%\system32\drivers\etc which translates to C:\WINDOWS\system32\drivers\etc\hosts on 32bit versions of windows.
Last edited by sknake; Oct 13th, 2009 at 3:38 am.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Networking Forum Timeline: Old Toshiba Laptop running Windows 95
Next Thread in Networking Forum Timeline: wifi problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC