LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2015, 07:17 AM   #1
itdev
LQ Newbie
 
Registered: Sep 2015
Posts: 3

Rep: Reputation: Disabled
DNS Server - block websites


Hi,
Great day everyone..

I am a newbie to linux with many challenges.
as of now I have configured my centos server to act as dns server to my local network.
Can some one suggest me how to use this dns server to block any type of url except "google.com"
Any help would be greatly appreciated. It is very urgent and important. Please help me.

Thanks in advance.
 
Old 10-26-2015, 10:59 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
So that if you did a Google search and tried to follow a link it would fail?
Surely, this is pointless.
 
Old 10-26-2015, 08:52 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
There are a lot of ways to harden systems. Not sure dns would be an ultimate solution but it might be part of an overall solution.

The best choice might be to use a layer 7+ firewall. Second to that might be to allow only some IP addresses using iptables maybe.

If your example of google is correct then the work not block much. Google acts like it's own resolver.
 
Old 10-27-2015, 04:06 AM   #4
serverpoint.com
Member
 
Registered: Oct 2015
Posts: 52

Rep: Reputation: 6
I think you better to use proxy servers for blocking websites.
 
Old 10-27-2015, 07:11 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by itdev View Post
Hi,

as of now I have configured my centos server to act as dns server to my local network.
Can some one suggest me how to use this dns server to block any type of url except "google.com".
Well, apart from the objection mentioned above (ie, it is pointless), you do know that, by itself, it is easy to get around? Is this your idea and what are you trying to achieve?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables: block all dns requests except to the server(s) I specify Kage_ Linux - Networking 4 08-25-2019 02:18 PM
Block sites using Bind DNS Server... E71 Linux - Software 7 08-31-2012 07:36 PM
how can I block some list of websites in redhat linux server deepuvl Linux - Security 2 12-13-2011 11:16 AM
how do i get squid proxy server to block websites using webmin baronobeefdip Linux - Software 3 07-19-2010 10:35 AM
how to block websites .. huno Linux - Software 5 04-22-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration