1 2 3 4 5
#!/bin/bash while true; do dig test.example.com @localhost | sed -e '/;.*/d' -e '/^$/d' done