Hi,
For the LAN I want to redirect blocked domains to a block page on my local server, on a local IP of 192.168.1.104. I've got the server (Apache) setup to handle wildcard requests so that they go to the block page, but I'm a bit lost as to what to do with the DNS. Currently in 'named.conf' I've got at the bottom the domains I want block, so for example
which I'm pretty sure is fine since it's blocking it, but as for the 'block.bind' file I'm not really sure what to do in regard to wildcards. Currently it's like this;
But I know that's wrong. Anybody have any ideas?
Thanks
For the LAN I want to redirect blocked domains to a block page on my local server, on a local IP of 192.168.1.104. I've got the server (Apache) setup to handle wildcard requests so that they go to the block page, but I'm a bit lost as to what to do with the DNS. Currently in 'named.conf' I've got at the bottom the domains I want block, so for example
Code:
zone "blockeddomain.com" in { type master ; file "block.bind" ; } ;
which I'm pretty sure is fine since it's blocking it, but as for the 'block.bind' file I'm not really sure what to do in regard to wildcards. Currently it's like this;
Code:
@ IN SOA ( ns1.domain.com. hostmaster.domain.com.
1 10800 3600 86400 21600 )
IN NS ns1.domain.com.
* IN A 192.168.1.104
But I know that's wrong. Anybody have any ideas?
Thanks