Parcourir la source

Lookup hostname of myip

George Jones il y a 3 ans
Parent
commit
797157d213
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      bin/myip

+ 1 - 1
bin/myip

@@ -10,7 +10,7 @@
 # This works very well, and quickly !!!
 # http://serverfault.com/questions/89114/finding-the-public-ip-address-in-a-shell-script
 dig @resolver1.opendns.com myip.opendns.com +short
-
+host `dig @resolver1.opendns.com myip.opendns.com +short`