Let nginx query backend hostname to dnsmasq with 2 seconds cache

See http://d.hatena.ne.jp/hirose31/20131112/1384251646