cant ping hostname

Reply

Join Date: Oct 2009
Posts: 4
Reputation: Dazaa is an unknown quantity at this point 
Solved Threads: 0
Dazaa Dazaa is offline Offline
Newbie Poster

cant ping hostname

 
0
  #1
Oct 12th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 3
Reputation: KeySupport is an unknown quantity at this point 
Solved Threads: 0
KeySupport KeySupport is offline Offline
Newbie Poster

Dns vs hosts file

 
0
  #2
Oct 13th, 2009
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....

Originally Posted by Dazaa View 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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 4
Reputation: Dazaa is an unknown quantity at this point 
Solved Threads: 0
Dazaa Dazaa is offline Offline
Newbie Poster
 
0
  #3
Oct 13th, 2009
Originally Posted by KeySupport View Post
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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 3
Reputation: KeySupport is an unknown quantity at this point 
Solved Threads: 0
KeySupport KeySupport is offline Offline
Newbie Poster

Host file

 
0
  #4
Oct 13th, 2009
In the case of Windows XP is usually located under the C:windows system32driversetc folder
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,215
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 573
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast
 
0
  #5
Oct 13th, 2009
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.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Domains and DNS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC