Author Topic: [ solved ] ping IP to show url?  (Read 882 times)

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
[ solved ] ping IP to show url?
« on: December 18, 2011, 06:55:01 PM »
When doing a simple ping

Code: [Select]
[gert@localhost ~]$ ping -c 3 202.139.83.3
PING 202.139.83.3 (202.139.83.3) 56(84) bytes of data.

What is the option to get the 'name' listed as well?  I have searched the forum but not sure how to frame the question. ???

Code: [Select]
ping -a 202.139.83.3
PING 202.139.83.3 (zww.alha.domain) 56(84) bytes of data.
..

In "some" OS the result is as shown above, but for z=w this will screw up presentation here in forum using www.--.

 I have on and off looked for this response in Linux without luck so far.

Can live without  ;D

 
« Last Edit: December 19, 2011, 10:25:05 AM by scoundrel »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline CY087

  • Full Member
  • ***
  • Posts: 62
Re: ping IP to show url?
« Reply #1 on: December 19, 2011, 12:27:25 AM »
202.139.83.3 resolves to dns0.optus.net.au here in South Aus
(the server name is actually ns1.optus.net.au)

 [MOD: I got that from other means, not a ping]

Name servers typically do not reply to pings with their domain names.

Also pinging an non-name server generally only gets you the servers gateway name, for example
try "ping www.themercury.com.au"  

...

or better "ping www.tasracing.com.au"
In the latter case you should get something like

PING www.tasracing.com.au (116.213.4.244) 56(84) bytes of data.
64 bytes from fogell.ldmfoundry.com (116.213.4.244): icmp_req=1 ttl=49 time=26.8 ms
64 bytes from fogell.ldmfoundry.com (116.213.4.244): icmp_req=2 ttl=49 time=27.2 ms
64 bytes from fogell.ldmfoundry.com (116.213.4.244): icmp_req=3 ttl=49 time=26.8 ms

and I happen to know that fogdell.ldmfoundry.com is the hosting service for TasRacing.  So the result doesn't really provide a great deal of information!

Merry christmas, have a Mercury (cider) for me!
cheers
CY087
« Last Edit: December 19, 2011, 12:29:10 AM by CY087 »

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: ping IP to show url?
« Reply #2 on: December 19, 2011, 04:09:36 AM »
CY087

The IP I used as an example actually does not respond here, I have used this as my secondary DNS option but when I set up fixed IPś I found it did no longer work here.  When I started pinging I found that my "ping -a ..." did not work, looked up the "man ping " which has another meaning for -a option (audible ping).

Code: [Select]
[guest@localhost ~]$ ping -c 3 dns0.optus.net.au
PING dns0.optus.net.au (202.139.83.3) 56(84) bytes of data.

--- dns0.optus.net.au ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

Bit of head scratching here as you show the result.  ??? ::)  Well I will find another secondary DNS.

Do you actually get a response from pinging 202.139.83.3 when I try I have to 'bail' out as the ping seems in a wait loop?

I am presently on a LXDE Live CD as I have taken down my main machine and wanted to type what I see when closing my normal KDE-mini, which seems to hang or take a long time to close down.

So my ping problem on above is at least on 2 different systems.

32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline CY087

  • Full Member
  • ***
  • Posts: 62
Re: ping IP to show url?
« Reply #3 on: December 19, 2011, 04:32:32 AM »
Dont really know if this one may help
http://www.whatsmydns.net/dns/australia/optus.html

gives me :
Primary DNS: 211.29.132.12
Secondary DNS: 198.142.0.51

There is a "LOT" of stuff on whirlpool about optus gratuitously changing their dns server addresses and as far as I'm concerned that just adds one more tick against my list of reasons why I will nevereverever use them again.

ymmv :-)
CY087


Offline CY087

  • Full Member
  • ***
  • Posts: 62
Re: ping IP to show url?
« Reply #4 on: December 19, 2011, 04:53:27 AM »
By the way tracerouting or tracepathing 202.139.83.3 still goes to the optus gates, but the route from there on in is denied
Numerically:
[bb@bluecow ~]$ tracepath -n 202.139.83.3
 1:  192.168.2.6                                           0.161ms pmtu 1500
 1:  192.168.2.1                                           7.789ms
 1:  192.168.2.1                                           2.207ms
 2:  10.0.0.138                                            3.911ms
 3:  172.18.113.3                                         63.336ms asymm  4
 4:  172.18.72.18                                         65.128ms
 5:  172.18.242.166                                       63.629ms
 6:  172.18.242.161                                       63.313ms
 7:  120.151.110.33                                       66.764ms asymm  8
 8:  203.50.11.5                                          66.665ms asymm  7
 9:  203.50.11.1                                          64.795ms asymm  8
10:  203.50.120.31                                        65.571ms asymm  9
11:  139.130.33.214                                       64.153ms
12:  no reply
etc etc

and name resolved (if you're really interested :-) )
[bb@bluecow ~]$ tracepath 202.139.83.3
 1:  192.168.2.6                                           0.168ms pmtu 1500
 1:  192.168.2.1                                           2.213ms
 1:  192.168.2.1                                           4.476ms
 2:  10.0.0.138                                            5.971ms
 3:  172.18.113.3                                         64.149ms asymm  4
 4:  172.18.72.18                                         64.803ms
 5:  172.18.242.166                                       63.356ms
 6:  172.18.242.161                                       62.790ms
 7:  Bundle-Ether11.fli8.Adelaide.telstra.net             65.665ms asymm  8
 8:  Bundle-Ether2.way30.Adelaide.telstra.net             66.602ms asymm  7
 9:  Bundle-Ether1.way-core4.Adelaide.telstra.net         66.387ms asymm  8
10:  TenGigabitEthernet7-1.way21.Adelaide.telstra.net     63.154ms asymm  9
11:  optusn1.lnk.telstra.net                              68.427ms
12:  no reply
.. etc


nah probably no help really :-(
 but from my prev post, I can now get

[bb@bluecow ~]$ tracepath 198.142.0.51
 1:  192.168.2.6                                           0.180ms pmtu 1500
 1:  192.168.2.1                                           6.319ms
 1:  192.168.2.1                                           2.833ms
 2:  10.0.0.138                                            3.609ms
 3:  172.18.113.3                                         62.490ms asymm  4
 4:  172.18.72.62                                         62.454ms
 5:  172.18.242.166                                       67.228ms
 6:  172.18.242.161                                       64.832ms
 7:  Bundle-Ether11.fli8.Adelaide.telstra.net             65.869ms asymm  8
 8:  Bundle-Ether2.way30.Adelaide.telstra.net             71.296ms asymm  7
 9:  Bundle-Ether1.way-core4.Adelaide.telstra.net         63.973ms asymm  8
10:  Pos0-4-1-0.exi-core1.Melbourne.telstra.net           77.586ms asymm  9
11:  Bundle-Ether1.lon70.Melbourne.telstra.net            88.739ms asymm 10
12:  optusc.lnk.telstra.net                               78.776ms
13:  sun4-te9-3.gw.optusnet.com.au                        78.434ms asymm 12
14:  dns.mel.optusnet.com.au                              80.876ms reached
     Resume: pmtu 1500 hops 14 back 52

So it looks like from line 14 that there is a secondary dns server in melbourne (he said, lightly assuming that "*.mel.optusnet.com.au" is actually in Melbourne and not in
Melangguane, Indonesia; Melfa, VA    United States; or Melfi    Chad    TD; or possibly Melanie's (the optus' dns admins best friend's) flat)

yet again ymmv
CY087

p.s. I may be here but I still hate telstra.

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: ping IP to show url?
« Reply #5 on: December 19, 2011, 05:47:50 AM »
CY087
Got my KDE-mini going again (just down for cable relocation, to let the vacuum cleaner under) looks better too.  ;D.

Love the tracepath without the -n, using it on my DNS servers gives me a finger print for next time my Internet access fails. I like the name resolution as if it shows I assume that the DNS is working as well as tcp/ip,  Did not think of it might be part of the install but I have just checked LXDE LiveCD and this has it too, so it is not something I have accidentally installed.

Thanks for posting I am real happy, declaring the thread solved.

By the way hating anything is a waste of good time, which could be spent on exploring the stars instead.   :)



32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10609
  • MLUs Forever!
Re: [ solved ] ping IP to show url?
« Reply #6 on: December 19, 2011, 02:09:02 PM »
Have you used

whois

?


Code: [Select]
whois 202.139.83.3
% [whois.apnic.net node-3]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

inetnum:        202.139.0.0 - 202.139.127.255
netname:        OPTUSCOM-AU
descr:          SingTel Optus Pty Ltd
descr:          INTERNET SERVICES
descr:          Optus Macquarie Park (OCS)
descr:          1 Lyonpark Road
descr:          Macquarie Park NSW 2113
country:        AU
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2420
  • Any Bugs in site?
Re: [ solved ] ping IP to show url?
« Reply #7 on: December 19, 2011, 02:38:08 PM »
Just18
Well I know of it and use it sometimes. My idea is to have a small set of very basic tools to do network investigation when my system goes funny. The tool should be 'built in' when you start a liveCD as I don't think too clearly when I get 'excited'.  I just checked my installed KDE-mini and whilst whois can be found in Synaptic it needs to be installed.

So if the internet is down no whois I will add it to my goodies file though.   ;D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen