I'm trying to use ssh and netcat to forward dns queries from a
6.1-STABLE workstation to a remote 6.1-STABLE DNS server.  I was
inspired by the information supplied at:


The methodology is elegant and simple, but I'm unable to get it
working.  Here's what I've done:

local#  ssh -L 6667:localhost:6667 server.foo.com

server# rndc trace
server# rndc querylog

server# mkfifo /tmp/fifo
server# nc -l -p 6667 < /tmp/fifo | nc -u 53 > /tmp/fifo

local# mkfifo /tmp/fifo
local# nc -l -u -p 53 < /tmp/fifo | nc localhost 6667 > /tmp/fifo

local# echo "nameserver" > /etc/resolv.conf
local# dig www.freebsd.org

; <<>> DiG 9.3.2 <<>> www.freebsd.org
;; global options:  printcmd
;; connection timed out; no servers could be reached

I see nothing in the server's named.run file and dig reports the
server wasn't reached.  Also, I'm unable to ctrl-C out of either nc
command local or remote.

What am I doing wrong?


freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to