Tip: Programmatically telling what node you are on

Discussion in 'Linux VPS/Dedicated - General' started by turbo2ltr, Jun 15, 2014.

  1. turbo2ltr

    turbo2ltr Member

    I wrote a little monitoring script that gives me a web page with server stats. One thing it lists is the KH node since I like to know if my VPS's were moved as well as to know when I should pay attention to network announcements.

    I use the following php to get the node.

    PHP:
    $vz exec('traceroute 8.8.4.4 -m 1');
    $vps substr($vz,4,(strpos($vz".")-4));
    Returns just the node name. e.g. "VZ47-WA" or "SSD15-TX"
     
    kitchin likes this.
  2. turbo2ltr

    turbo2ltr Member

    So this broke. I see a traceroute now does not return what it used to.
    Code:
    traceroute 8.8.4.4
    traceroute to 8.8.4.4 (8.8.4.4), 30 hops max, 40 byte packets
    1   (199.193.177.31)  0.044 ms  0.045 ms  0.038 ms
    2  216.211.135.114 (216.211.135.114)  0.621 ms  0.627 ms  0.660 ms
    3  te2-3.sea-cor00.sea.tierpoint.com (173.240.48.6)  0.339 ms  0.623 ms  0.617 ms
    4  te0-0-2-0.sea-border02.sea.tierpoint.com (173.240.48.218)  0.899 ms  0.956 ms  0.969 ms
    5  six.sea01.google.com (206.81.80.17)  0.372 ms  0.346 ms  0.328 ms
    6  72.14.237.123 (72.14.237.123)  0.348 ms 74.125.37.91 (74.125.37.91)  0.398 ms  0.408 ms
    7  209.85.245.101 (209.85.245.101)  0.616 ms 209.85.245.65 (209.85.245.65)  0.661 ms 209.85.248.117 (209.85.248.117)  0.602 ms
    8  google-public-dns-b.google.com (8.8.4.4)  0.269 ms  0.331 ms  0.319 ms
    
    It used to report the bare metal IP, conveniently along with it's resolved host name which contained the node number. But no more. Does this have something to do with migration? Will it be fixed? How do I now tell what node I'm on?

    Thanks.
     
  3. phpAddict

    phpAddict Active Member

    Google has change their DNS recently. I beleive it's nothing related to KH.
     
  4. turbo2ltr

    turbo2ltr Member

    The first hop out of the VPS has changed to a completely different IP...one that does not report it's host name, I would imagine that has to do with KH. The google DNS server I'm routing to just happens to be the test IP I'm using.
     
  5. phpAddict

    phpAddict Active Member

    I'm sorry, yea, if the first hop has changed that'd be a change at KH and likely is due to the migrations. Let's wait for someone at KH to chime in and see.
     
  6. KH-Paul

    KH-Paul CTO Staff Member

    Apparently 177.193.199.in-addr.arpa zone didn't make it to new nameservers we've setup for reverse DNS. We'll get this fixed, thanks for letting us know.
     
  7. turbo2ltr

    turbo2ltr Member

    Fixed! Thanks!
     
  8. KH-Jonathan

    KH-Jonathan Director of Managed Services Staff Member

    Soon this information will be listed right in the client portal with the rest of the information about a VPS. We're in the final stages of testing a batch of new features for the system which will be implemented in the coming weeks.
     
    phpAddict likes this.
  9. KH-Jonathan

    KH-Jonathan Director of Managed Services Staff Member

    kitchin likes this.
  10. aussie7

    aussie7 Member

Share This Page