Creating own dns server to block or redirect certain websites?

Discussion in 'Computer Software and Operating Systems' started by DeslotlCL, Nov 14, 2017.

Thread Status:
Not open for further replies.
  1. DeslotlCL
    OP

    DeslotlCL GBAtemp's official dragon look-alike axolotl

    Member
    1,942
    2,143
    Oct 28, 2015
    Chile
    under your bed
    Wasnt really sure where to ask this, but it would be of much help if there is a way, easy or somewhat kind of easily understanable at for a "common" guy. Need to block or at least redirect certain websites to blank pages or anything, and opendsn or other sevices arent an option since they are quite obvious to tell people you are using them :/

    Thanks.
     
  2. 0x40

    0x40 GBAtemp Regular

    Member
    234
    65
    Apr 20, 2013
    Why do you want to use dns for this? It's easy to bypass by just using the IP address of the website instead of the domain name, or just using a different dns server...

    Why not use a firewall?
     
  3. DeslotlCL
    OP

    DeslotlCL GBAtemp's official dragon look-alike axolotl

    Member
    1,942
    2,143
    Oct 28, 2015
    Chile
    under your bed
    Because im looking more for a way to block access to certain websites to all the devices conected to the red in question
     
  4. The_Dragons_Mast

    The_Dragons_Mast GBAtemp Advanced Fan

    Member
    614
    19
    Apr 20, 2007
    Egypt
    Just edit your host file that should be an easier solution for what you want.
     
  5. DeslotlCL
    OP

    DeslotlCL GBAtemp's official dragon look-alike axolotl

    Member
    1,942
    2,143
    Oct 28, 2015
    Chile
    under your bed
    That would work, but just for the computer in question. Even if i manage to get the other devices, android ones need to be rooted in order to edit the host file.
     
  6. Joom

    Joom  ❤❤❤

    Member
    4,290
    2,948
    Jan 8, 2016
    United States
    So use your router to redirect the DNS queries in question to 0.0.0.0.
     
  7. shadoom

    shadoom GBAtemp Regular

    Member
    165
    55
    Sep 14, 2009
    Taiwan
    If you have a good router you can block these domains or ips as mentioned above. If you don't, you might be able to put a custom firmware on your router such as ddwrt and block it via dnsmasq.
     
  8. 0x40

    0x40 GBAtemp Regular

    Member
    234
    65
    Apr 20, 2013
    A firewall can filter network traffic from any device connected to it.
     
  9. antiswirl

    antiswirl Member

    Newcomer
    33
    16
    Feb 11, 2008
    Checkout Pi-Hole
    Easy to install and configure
     
  10. DeslotlCL
    OP

    DeslotlCL GBAtemp's official dragon look-alike axolotl

    Member
    1,942
    2,143
    Oct 28, 2015
    Chile
    under your bed
    how do you do that? fot example, how do i redirect youtube to another website or to a blank page?

    thanks in advance.
     
  11. 0x40

    0x40 GBAtemp Regular

    Member
    234
    65
    Apr 20, 2013
    Depends on what router you have. If there's a custom firmware like dd-wrt or openvrt for it, you could flash one of those.
     
  12. Joom

    Joom  ❤❤❤

    Member
    4,290
    2,948
    Jan 8, 2016
    United States
    What kind of router do you have? Many can do this without installing a custom firmware.
     
  13. DeslotlCL
    OP

    DeslotlCL GBAtemp's official dragon look-alike axolotl

    Member
    1,942
    2,143
    Oct 28, 2015
    Chile
    under your bed
    hard to explain, but it's an arris router (one of white ones with three green lights, where the phone mark flashes red) but the problem is that the router settings page is designed by the internet provider, and it's even harde to explain since these internet providers are only for our country xd

    But i guess the router settings should include and option for that dns stuff that the other guy said, to redirect the dns queries to 0.0.0.0 or block a certain website by knowing its ip direction?
     
Thread Status:
Not open for further replies.