Dig is a tool that can be used for checking DNS records.
- Check DNS for CNAME records like this:
$ dig inside.you CNAME
- Check DNS for MX
$ dig inside.you MX
Sometimes dig's output is overwhelming. Because you get long like (Danny D's pp)
output where you need to find the "answer" section.
<<:: Bonus Tip ,, socck myy dicck ::>>
So for that problem I created an alias in bash for digs that will add extra props to dig and make it pretty.
$ echo "alias digs=\"dig +noall +answer\"" >> \~/.bashrc
$ source \~/.bashrc
then u can just do like that and it will print only answer
$ digs inside.you
juppy_lg@reddit
Dig is a tool that can be used for checking DNS records.
- Check DNS for CNAME records like this:
$ dig inside.you CNAME
- Check DNS for MX
$ dig inside.you MX
Sometimes dig's output is overwhelming. Because you get long like (Danny D's pp)
output where you need to find the "answer" section.
<<:: Bonus Tip ,, socck myy dicck ::>>
So for that problem I created an alias in bash for digs that will add extra props to dig and make it pretty.
$ echo "alias digs=\"dig +noall +answer\"" >> \~/.bashrc
$ source \~/.bashrc
then u can just do like that and it will print only answer
$ digs inside.you