thanks to K.R. for the named cleanup. I tried that, but to no avail. I suspect it's a nat issue because the source packets aren't matching the destination packets. rdr/pass rules seem to be working because i'm getting a response from the internal DNS, when I nslookup on the router. I even tried nslookup from a different network, but i'm just getting time out. How to do nat the public IP to the internal DNS and if I can, do I do it for $ext_if and $int_if of the router?
Thanks, Vivek On Sun, Nov 16, 2008 at 5:35 PM, Adriaan <[EMAIL PROTECTED]> wrote: > On Sun, Nov 16, 2008 at 7:25 AM, Vivek Ayer <[EMAIL PROTECTED]> wrote: >> >> Need some help with DNS queries behind a router. I set up a DNS server >> in my network and it responds when I'm within my network. I tried >> nslookup from localhost on the dns server and also from the LAN and it >> works just find, but when I use the public IP of the router for the >> network, which should forward the port to the DNS server, it says >> "unexpected reply from 192.168.1.101, expected from the (public IP, >> which I won't display in this email)." Does that mean the port >> forwarding is working? > > I am not sure whether you really did direct that query over the > internet to the public IP or > from your local LAN. > > Initiating a DNS query from a local LAN box to the public IP will not > get redirected. > See http://openbsd.org/faq/pf/rdr.html#reflect for the explanation. > > =Adriaan=