LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to forward all DNS queries through ISP DNS server ? (http://www.linuxquestions.org/questions/linux-networking-3/how-to-forward-all-dns-queries-through-isp-dns-server-889993/)

jcdc 07-05-2011 06:20 AM

How to forward all DNS queries through ISP DNS server ?
 
Hello everyone,

I would like configure a DNS server on Debian, only to forward through my ISP DNS servers.

I added on /etc/bind/named.conf

Quote:

fowarders (
<IP ISP server 1>
<IP ISP server 2>
);
and on /etc/bind/db.root

Quote:

. 3600000 IN NS ns1.isp.tld
ns1.isp.tld. 3600000 A <IP ISP server 1>
. 3600000 IN NS ns2.isp.tld
ns2.isp.tld. 3600000 A <IP ISP server 2>
Since, bind doesn't want start anymore.

Quote:

/etc/init.d/bind9 start
Starting domain name service...: bind9 failed!
Is someone has a solution or a better method?

Thanks.

acid_kewpie 07-05-2011 07:08 AM

sounds like you want a standard forwarding only service - http://www.zytrax.com/books/dns/ch6/#caching

Lexus45 07-05-2011 08:17 AM

Code:

fowarders (
<IP ISP server 1>
<IP ISP server 2>
);

;)
Code:

fowarders {
<IP ISP server 1>
<IP ISP server 2>
};


jcdc 07-05-2011 10:44 PM

Thanks. I modified the code but bind still doesn't start.

jcdc 07-06-2011 12:28 AM

I fixed the problem for bind9 lauching. There was a syntax error in named.conf file.
My DNS server forward correctly queries through my ISP DNS servers.

Now, I would like forward some queries to another local zone. Actually, it is my Active Directoy server.

I added in named.conf file:

Quote:

zone "mydomain.lan" IN {
type forward;
forwarders {<ip-server-on-mydomain>;};
};
and /etc/host file:

Quote:

192.168.0.200 mydomain server-on-mydomain mydomain.lan
The redirection seems work in local but not through a station using my DNS server.

Any ideas?

Thanks.


All times are GMT -5. The time now is 04:47 PM.