Jump to content
phallstrom

DNS lookups using Dig...

Recommended Posts

This workflow lets you perform DNS lookups and display the results.  Pick one to copy it to the clipboard.  You can specify the type of DNS query (ie. mx records).  If the query appears to be an IP address the code will automatically do a reverse lookup.

 

README, screenshots, and workflow file are here:

 

https://github.com/phallstrom/AlfredDig

 

Enjoy!

Share this post


Link to post

I just wrote a dig workflow today, but hadn't gotten around to doing the feedback part list, it just uses notification center to return the first result. Guess I'll scrap it and use yours instead - thanks!

 

One small thing, it would be nice if it stripped the trailing '.' from the hostname result when copying to the clipboard. I just added

adata=${adata%.} to my copy of the dig.sh script.

Share this post


Link to post

@aquadan - Out of curiosity, why would you prefer to strip the trailing dot?  I thought about it, but left it alone since it's technically accurate.  Not opposed either way, just don't have a good reason...

Share this post


Link to post

@aquadan - Out of curiosity, why would you prefer to strip the trailing dot?  I thought about it, but left it alone since it's technically accurate.  Not opposed either way, just don't have a good reason...

 

Mainly because I'm most likely going to paste the address in somewhere to use it and will have to delete the dot if it's there. Since the record is all broken up anyway, there doesn't seem to be a compelling reason to keep it there.

Share this post


Link to post

Very nice.

 

Bug report: the copy to clipboard functionality seems to be a little broken for TXT records (or probably any which include quotes), e.g. dig google.com txt

Share this post


Link to post

Great! Thanks for making my life more productive ;-)

 

MarceFX - You can already do this, unless I'm not understanding.  Just keep typing... "dig domain.com ns"

 

uEir4l6.png

Edited by MarceFX

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...