HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Client can't use my dns server (http://www.howtoforge.com/forums/showthread.php?t=51945)

wirasto 19th March 2011 05:10

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 :)

falko 19th March 2011 19:09

Did you open and forward port 53 (TCP and UDP)?

wirasto 20th March 2011 04:38

I'm not implement any rule except nat for MASQUERADE.
What must I do on my gateway???

falko 20th March 2011 21:22

Open port 53 (TCP and UDP) in the router's firewall and forward both ports to your DNS server.

wirasto 21st March 2011 04:19

I'm default forward for everything on my gw firewall and on my dns server. But still not work :(


iptables -P FORWARD ACCEPT

falko 21st March 2011 15:33

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).

wirasto 22nd March 2011 03:41

I'm use static ip

falko 22nd March 2011 14:37

Does
Code:

dig @1.2.3.4 yourdomain.com
work (replace 1.2.3.4 with your public static IP)?

wirasto 23rd March 2011 03:06

It work's now. I just put this options

Code:

allow-recursion { any; };
allow-recursion-on { any; };

Thank's for all reply :)


All times are GMT +2. The time now is 01:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.