Skip to content

Instantly share code, notes, and snippets.

@sneak
Created June 20, 2011 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneak/1035218 to your computer and use it in GitHub Desktop.
Save sneak/1035218 to your computer and use it in GitHub Desktop.
wtf, osx resolver/sshd
ganymede:~ sneak$ host txl1.local
txl1.local has address 10.112.128.109
ganymede:~ sneak$ dig txl1.local
; <<>> DiG 9.6.0-APPLE-P2 <<>> txl1.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34843
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;txl1.local. IN A
;; ANSWER SECTION:
txl1.local. 0 IN A 10.112.128.109
;; Query time: 2 msec
;; SERVER: 10.112.128.254#53(10.112.128.254)
;; WHEN: Mon Jun 20 08:41:57 2011
;; MSG SIZE rcvd: 44
ganymede:~ sneak$ ssh txl1.local
ssh: Could not resolve hostname txl1.local: nodename nor servname provided, or not known
ganymede:~ sneak$ ssh -v
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
ganymede:~ sneak$ uname -a
Darwin ganymede.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:16:10 PST 2011; root:xnu-1504.9.37~1/RELEASE_X86_64 x86_64
ganymede:~ sneak$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment