Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • The output of those dig commands may contain multiple lines (like dig www,google.com +short). Do you want to support that? Commented Sep 21, 2016 at 12:14
  • Eh, no. I forgot to mention, that I filter out only the last line (in probably all cases it's the IP address) Commented Sep 21, 2016 at 12:15
  • @StéphaneChazelas I added the "filtering" in the question-code Commented Sep 21, 2016 at 12:19
  • 1
    See also: unix.stackexchange.com/q/310900/117549 Commented Sep 21, 2016 at 12:38