NAMEaskmara - do simple dns queriesDESCRIPTIONaskmara queries the user-specified dns server for records, and outputs the reply in a csv2-compatible format (csv2 is the format of zone files that maradns uses).USAGEaskmara [-n] [ -v | -r | -t timeout] query [ server ]OPTIONS
EXAMPLESAsking the server with the ip 127.0.0.1 for the IP address of example.com:askmara Aexample.com.Asking the server with the ip 198.41.0.4 for the IP address of example.com: askmara Aexample.com. 198.41.0.4Asking the server with the ip address 127.0.0.1 for the IP address of example.com, using the rr_number:query format: askmara 1:example.com.Asking the server with the ip address 127.0.0.1 for a SRV record. In particular, we ask for the "http over tcp" service for example.net. Since askmara doesn't have a mnemonic for SRV record types, we use the numeric code (33 for SRV): askmara 33:_http._tcp.example.net.Asking the server with the ip address 127.0.0.1 for the AAAA (ipv6 ip) record for example.net: askmara 28:example.net.Note that the output will be a raw DNS packet in the SRV example, but askmara shows an IPv6 address (albeit without :: to collapse 0 quads) in the AAAA example. BUGSWhen askmara is asked for an SOA record, the output of askmara closely resembles the format of a csv2 file, but can not be parsed as a csv2 file without modification.askmara outputs multi-chunk ("character-string") TXT records incorrectly (it only outputs the first chunk). SEE ALSOmaradns(8)http://www.maradns.org LEGAL DISCLAIMERTHIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.AUTHORMaraDNS is written by Sam Trenholme. Jaakko Niemi used 5 minutes to roll this manpage together, which Sam has subsequently revised. |