Posts

Showing posts with the label Dig

Combining Dig +short Command

Answer : What do you mean by 'ouput in one display'? I can almost not imagine this being the actual answer due to the simplicity, but based on what I assume is your answer now, this should do the trick: dig @ns1.myname.com myname.com +short MX; dig @ns1.myname.com myname.com +short A You can simply queue several commands in one line by separating them with a semicolon. dig +noall +answer @ns1.myname.com myname.com ANY You can grep out the types you need if you don't want all of them, or query for each one you want in turn. You can combine them into one command with no semicolon, but as noted in another question, it will still send 2 queries to the server (not a problem here): dig @ns1.myname.com myname.com +short MX @ns1.myname.com myname.com +short A You can "reuse" the dig command and keep sending new query parameters in quartets (URL, server to query, query type, query option) as long as you are giving it enough information to run a query on ea...