phallstrom Posted March 16, 2013 Share Posted March 16, 2013 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! Link to comment
aquadan Posted March 20, 2013 Share Posted March 20, 2013 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. Link to comment
phallstrom Posted March 21, 2013 Author Share Posted March 21, 2013 @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... Link to comment
aquadan Posted March 21, 2013 Share Posted March 21, 2013 @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. Link to comment
phallstrom Posted March 21, 2013 Author Share Posted March 21, 2013 Makes sense. I've updated the workflow. You can grab it here https://github.com/phallstrom/AlfredDig Link to comment
lmartins Posted March 21, 2013 Share Posted March 21, 2013 Usefull stuff, thanks for sharing. Link to comment
isometry Posted March 22, 2013 Share Posted March 22, 2013 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 Link to comment
phallstrom Posted March 22, 2013 Author Share Posted March 22, 2013 @isometry - Nice catch. I've tweaked the workflow to not touch the answer except if it's an MX record, then I strip the priority. Otherwise I leave it alone. Your example now works like you'd want it to. New version: https://github.com/phallstrom/AlfredDig Link to comment
MarceFX Posted September 20, 2014 Share Posted September 20, 2014 (edited) Thanks for this awesome workflow! Any chance you could also pull out the nameservers? Thanks! Edited September 20, 2014 by MarceFX Link to comment
phallstrom Posted September 20, 2014 Author Share Posted September 20, 2014 MarceFX - You can already do this, unless I'm not understanding. Just keep typing... "dig domain.com ns" MarceFX 1 Link to comment
MarceFX Posted September 21, 2014 Share Posted September 21, 2014 (edited) 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" Edited September 21, 2014 by MarceFX Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now