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.2Server: 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.
-
So it sounds like the domain is getting included in the list, but the entry is not getting picked up.
-
@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.2Server: 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?