ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Bind Config issue or Help me from going crazy over here

    IT Discussion
    3
    3
    778
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jrcJ
      jrc
      last edited by

      Hi everyone,

      I am trying to add a new zone to my DNS server (Debian 6 running Bind). But it's just not working.

      Basically in order for me to force safe search on my network I need to create a zone for www.google.com, then create a cname for www.google.com and point it to forcesafesearch.google.com. Simple enough, except it's not working and I have no idea why.

      Here are my config files:

      named.conf:

      =================================================

      include "/etc/bind/named.conf.options";
      include "/etc/bind/named.conf.local";
      include "/etc/bind/named.conf.default-zones";

      =================================================

      named.conf.local

      =================================================

      zone "www.google.com" {
      type master;
      file "/etc/bind/www.google.com.hosts";
      };

      =================================================

      www.google.com.hosts

      =================================================

      $ttl 12h

      www.google.com. IN SOA ns.www.google.com. ns.www.google.com. (
      2016052601
      1d
      15m
      2w
      1h )

      www.google.com. IN NS ns.www.google.com

      ns.www.google.com. IN A 10.1.1.2

      @ IN CNAME forcesafesearch.google.com.

      =================================================

      Yet here are the results of an NSLookup

      BASH
      Picard:~ <user>$ nslookup www.google.com 10.1.1.2

      Server: 10.1.1.2
      Address: 10.1.1.2#53

      ** server can't find www.google.com: NXDOMAIN

      =================================================

      Tearing my hair out over this. So any help would be greatly appreciated.

      dafyreD 1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        So it sounds like the domain is getting included in the list, but the entry is not getting picked up.

        1 Reply Last reply Reply Quote 0
        • dafyreD
          dafyre @jrc
          last edited by

          @jrc said in Bind Config issue or Help me from going crazy over here:

          Hi everyone,

          I am trying to add a new zone to my DNS server (Debian 6 running Bind). But it's just not working.

          Basically in order for me to force safe search on my network I need to create a zone for www.google.com, then create a cname for www.google.com and point it to forcesafesearch.google.com. Simple enough, except it's not working and I have no idea why.

          Here are my config files:

          named.conf:

          =================================================

          include "/etc/bind/named.conf.options";
          include "/etc/bind/named.conf.local";
          include "/etc/bind/named.conf.default-zones";

          =================================================

          named.conf.local

          =================================================

          zone "www.google.com" {
          type master;
          file "/etc/bind/www.google.com.hosts";
          };

          =================================================

          www.google.com.hosts

          =================================================

          $ttl 12h

          www.google.com. IN SOA ns.www.google.com. ns.www.google.com. (
          2016052601
          1d
          15m
          2w
          1h )

          www.google.com. IN NS ns.www.google.com

          ns.www.google.com. IN A 10.1.1.2

          @ IN CNAME forcesafesearch.google.com.

          =================================================

          Yet here are the results of an NSLookup

          BASH
          Picard:~ <user>$ nslookup www.google.com 10.1.1.2

          Server: 10.1.1.2
          Address: 10.1.1.2#53

          ** server can't find www.google.com: NXDOMAIN

          =================================================

          Tearing my hair out over this. So any help would be greatly appreciated.

          The line:

          ns.www.google.com.	IN	A	10.1.1.2
          

          should that be ns.www.google.com or just www.google.com?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post