exceedhl/toft — pull request #8 by bryanwb (2012-04-28 06:52:08+00:00)
Title: use @ip instead of fqdn to check if host is reachable

for some weird reason bind9 returns bogus results for n1.foo

root@hiroko:/usr/lib/ruby/gems/1.8/gems/toft-0.0.6# dig n1.foo

; <<>> DiG 9.7.3 <<>> n1.foo
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1776
;; flags: qr; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;n1.foo. IN A

;; ANSWER SECTION:
n1.foo. 0 IN A 212.48.8.140

;; Query time: 1 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Sat Apr 28 08:37:12 2012
;; MSG SIZE rcvd: 40

this is a workaround