added djbdns patch provided by Johnny Halfmoon
[openwrt/svn-archive/archive.git] / net / djbdns / files / dnsqrx
1 #!/bin/sh
2 # (c) Copyright 2003-2003 Jonathan de Boyne Pollard. All rights reserved. "Moral" rights asserted.
3 # Permission is hereby granted to distribute this script unmodified.
4 # This script requires the patch that changes the ${DNSCACHEIP} separator, which can be found at <URL:http://homepages.tesco.net./~J.deBoynePollard/Softwares/djbdns.html>.
5 t=${1?Missing type}
6 n=${2?Missing name}
7 s=${3?Missing server}
8 i=`dnsip $s`
9 DNSCACHEIP=${i:?Bad server name} dnsqr $t $n