![]() |
Client can't use my dns server
INTERNET
| | | Gateway ____________ ( Client 192.168.22.0/24) | | | ( DNS 192.168.0.1) I have set dns forwarders on bind configuration forwarders { 202.134.1.10; }; Client can "ping" to dns server. But client can't ping google.com when use 192.168.0.1 as name server. Sorry, about my poor english :) |
Did you open and forward port 53 (TCP and UDP)?
|
I'm not implement any rule except nat for MASQUERADE.
What must I do on my gateway??? |
Open port 53 (TCP and UDP) in the router's firewall and forward both ports to your DNS server.
|
I'm default forward for everything on my gw firewall and on my dns server. But still not work :(
iptables -P FORWARD ACCEPT |
Do you have a static or a dynamic IP? IF you have a dynamic IP, it might have changed in the meantime so that your client uses a wrong IP (besides, it is a bad idea to run a nameserver on a dynamic IP).
|
I'm use static ip
|
Does
Code:
dig @1.2.3.4 yourdomain.com |
It work's now. I just put this options
Code:
allow-recursion { any; }; |
| All times are GMT +2. The time now is 18:16. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.