Announcement

Collapse
No announcement yet.

How to forward all DNS queries through ISP DNS server on Linux ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to forward all DNS queries through ISP DNS server on Linux ?

    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

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

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

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

    Thanks.

  • #2
    Re: How to forward all DNS queries through ISP DNS server on Linux ?

    did bind ever start ?
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment


    • #3
      Re: How to forward all DNS queries through ISP DNS server on Linux ?

      Check the "configured" named logfile for syntax errors during startup.

      Maybe you left out the semi's when you posted to hide ISP IP addresses, but in your forwarder statement, each listed server should be delimeted by a semi-colon. EX:

      Code:
       
      forwarders {
        10.10.10.10;
        10.10.10.11;
      };

      Comment


      • #4
        Re: How to forward all DNS queries through ISP DNS server on Linux ?

        I modified to semi-colon and bind don't start.

        Originally posted by tehcamel View Post
        did bind ever start ?
        Never, I just installed it.
        Last edited by jcdc; 6th July 2011, 03:43.

        Comment


        • #5
          Re: How to forward all DNS queries through ISP DNS server on Linux ?

          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:

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

          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.

          Comment

          Working...
          X