fxbox / dns-server

Server that helps the Box to announce its local IP address without relying on mDNS, and to register its LetsEncrypt cert for use on its local IP address.
4 stars 2 forks source link

Deal with multiple output lines in host command output #21

Closed michielbdejong closed 8 years ago

michielbdejong commented 8 years ago

On my machine, host knilxof.org gives multiple lines of output:

Michiels-Laptop:client Michiel$ host knilxof.org
knilxof.org has address 52.39.215.79
knilxof.org mail is handled by 50 fb.mail.gandi.net.
knilxof.org mail is handled by 10 spool.mail.gandi.net.

This patch is to make client/run.sh only use the first line and ignore the other two.

r? @Yoric

Yoric commented 8 years ago

r=me, but could you add

michielbdejong commented 8 years ago

Thanks!