Replies: 4 comments
-
Some of the output goes to stdout and some goes to stderr. You can redirect stdout or stderr using file descriptor 1 and 2 respectively. |
Beta Was this translation helpful? Give feedback.
-
You still get group headers, would be nice if you could choose a machine readable friendly version that just lists complete rows including domain name
So you can easily read it in a shell script with:
Now you need to grep the input to filter out group headers. |
Beta Was this translation helpful? Give feedback.
-
You might want to try the API to retrieve this data: https://zeit.co/docs/api#endpoints/dns |
Beta Was this translation helpful? Give feedback.
-
For shell scripts it is a lot easier to work with the CLI, JSON is a bit of a struggle. If I wrote a Node.js script I would certainly prefer the API. |
Beta Was this translation helpful? Give feedback.
-
When you use
now dns
in scripts there are summary lines that can't easily be redirected or muted. In some cases this makes it hard to create nice output.Would be great if one could suppress these with an option.
$ now dns ls > 18 Records found under username4 [2s] [...]
Beta Was this translation helpful? Give feedback.
All reactions