Berkeley CSUA MOTD:Entry 20163
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2000/12/22-25 [Computer/Networking, Computer/SW/OS/FreeBSD] UID:20163 Activity:very high
12/22   Why does last output show most connecting from IP instead of hostname?
        \_ because FreeBSD is stupid.  -tom
           \_ because tom is stupid.  -FreeBSD
              \_ wait a minute. FreeBSD can't write.
           \_ How is it stupid, tom?  There's only so much room to store
              or display hostnames, I'd imagine.  If the hostname is longer
              than that when reversed, would you rather get
              "cx425.sanjose.a" or a real IP address that you could resolve
              yourself?
              \- tom lacks fu to "last | ip2hostname" --psb
                \_ It's stupid because every other system in the world uses
                   hostname there and truncates it to the length of the field.
                   Intelligent systems which want the full length use an
                   extended utmp/wtmp.  And if you're going to use IP's, it's
                   the height of stupidity to only use them some of the time.
                   -tom
                   \_ Reason #1 "it's stupid because other people truncate
                      so you have incomplete and invalid hostnames"  Uh..huh
                      Reason #2: it's stupid because... it's the height of
                      stupidity.  Good, tom.
                        \_ How about Reason #1, if you want to get the normal
                           output of last now you have to do hundreds of name
                           lookups.  Typical BSD arrogance, "who cares what
                           behavior people need or expect."  -tom
                           \_ OK, tom: would you rather have chopped off,
                              indecipherable hostnames (which is what _every
                              one_ of those ip addrs would be) or ip addresses
                              that you _could_ look up?
                                    \- if you need to do lookups, you do them,
                                       if you dont need to do them, you dont.
                                       you are right this does make life harder
                                       for low-fu people and might not be a
                                       good decision if your goal is to
                                       maximize the number of people using your
                                       OS. but there are other goals --psb
                                \_ I would rather have "last" be what it
                                   always has been, and provide an additional
                                   option for new functionality, instead of
                                   changing the default behavior which has
                                   existed for n years (n > 20).  In terms of
                                   functionality, I find soda's "last" to be
                                   far less useful than a typical "last",
klee             ttyAm    128.32.191.92    Fri Dec 22 19:45 - 19:46  (00:00)
                                   because the information I'm looking for
                                   is usually not a specific hostname.  -tom
        \_ So back to my question, why are some with IP and some hostname?
           What causes it to be diff? thank you.
           \_ Picking a few lines at random, we have:
mchowla          ttyAz    209.131.52.33    Fri Dec 22 19:47 - 19:50  (00:02)
samli            ttyAm    <DEAD>charon.sun.com<DEAD>   Fri Dec 22 19:47 - 20:02  (00:15)
              as you can see, if the hostname were much longer than
              "charon.sun.com", it wouldn't fit and you'd have to chop it
              off..  let's say it was "sjsu3.sj.ca.ibx4.colo37.cnw4.cnw.net"
              you'd see something like "sjsu3.sj.ca.ibx4" as the hostname,
              which completely useless.  Better to give the IP, where you could
              at least run something like "last | ip2hostname" and have all
              of the hostnames (if poorly formatted)
              \_ so basically, it's inconsistent behavior. Why not all IPs?
                 And why a 16 char limit? IP is 15 char max(for now).
                                      \- do you feel stuff reporting in 512b
                                         blocks and have done so for n>20yrs
                                         should comtinue to do so? --psb
                                   \_ I dunno, my feeling is that it is
                                      better to fix things than to have
                                      fundamentally broken stuff lay around
                                      forever along with alternate "fixed"
                                      ways of doing things.  (Ever tried to
                                      program the Windows API?  It fucking
                                      sucks, and this is exactly why.)  -blojo
                                      \_ Hear hear.  It's not like this
                                         is even some programming interface.
                                         How many critical cross platform
                                         apps do you know of that depend on
                                         the formatting of last?
                     \- tom, there are times where change is merited.
                     the chown user.group was changed to user:group ...
                     i bitched about that till i realized it made sense.
                     "the rest of the world" doesnt do everthing right the
                     first time ... so its a good thing they dont have their
                     head up their ass and can look around and learn. --psb
        \_ Tom said it's stupid so it's stupid.  Why do you all waste his
           precious netrek time asking why?  He said so and that should be good
           enough for the likes of you!
        \_ this thread is priceless.  it brings a tear to my eye.
           \- "i am tom, hear me roar"
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2013/12/28 [Computer/SW/Security] UID:54760 Activity:nil
12/28   Happy holidays everyone.
        For some reason my work's ip address gets logged in /etc/hosts.deny and\
I cannot ssh in anymore from work
        (except from home where I can ssh in fine): anyone knows if this file is\
 auto-generated due to some event? Thanks
	...
2009/12/3-26 [Computer/Companies/Google] UID:53563 Activity:nil
12/2    Google launches its own DNS. Google Public DNS:
        http://code.google.com/speed/public-dns
        8.8.8.8 and 8.8.4.4
        Kick ass!
        \_ http://radoff.com/blog/2009/12/07/google-dns-benchmarking-and-rationale
        \_ I get 1.7ms pings to 4.2.2.2 and 23ms pings to 8.8.8.8.
	...
2009/11/4-17 [Computer/SW/P2P, Computer/Networking, Computer/SW/Security] UID:53495 Activity:nil
11/4    Holy cow, I got a warning from my ISP that they were notified
        by BSA/baytsp.com that I was copying music/video/software.
        Do they do port scan or something? That's a first for me.
        \_ They hang out on P2P networks and track IP addresses.  -tom
           \_ I believe they are paid by content providers to perform this
              monitoring service, so you should only run this risk with content
	...
2008/12/15 [Computer/Companies/Ebay] UID:52251 Activity:moderate
12/14   Got really screwed by this eBay buyer (says he'll pay, then
        waits, then says he'll pay by check, then makes up a story,
        then at the end says you're rude and doesn't want to pay
        anymore). eBay refuses to do anything about it. WTF? What
        is the best way to get back at this guy?
        \_ That's hardly "really screwed."  You still have the item, right.
	...
2008/11/7-13 [Computer/Networking] UID:51876 Activity:low
11/7    Need help on http proxy. After I VPN to work, I'd like to tunnel
        all the traffic to my machine. How do I setup my machine (Linux)
        as a proxy server so that my home computers can route through it?
        I'm asking because the site we're testing on requires that we
        come from the same IP. If I use VPN, the server will reject me
        based on the fact that it's a different IP than my work Linux.
	...
2008/8/5-10 [Computer/Networking] UID:50788 Activity:nil
8/5     It looks like my company has started blocking HTTPS tunneling.
        I used to do this by tunneling SSH through the HTTP/HTTPS proxy
        server, but this seems to have stopped working. Does anyone know
        how the implementation of tunneling detection works, and whether
        there are widely available implementations? We run a bunch of MS
        stuff, so I imagine we're running an MS proxy server or something.
	...
2008/7/14-16 [Computer/SW/Languages/Perl, Computer/SW/Unix] UID:50557 Activity:moderate
7/14    Shell Programming question: I want to call a script with 1 arg
        and have it figure out whether $1 is a MAC address or an IP address
        and then do call the appropriate function.  What is the best way
        to do this, given that sh/bash/ksh do not have something like
        the =~ in perl.  Check for exit status of grep, or is there a
        a better way?  For the moment, let's just say the two tests are:
	...