[Release] LocalDNS a new way to block updates

Discussion in 'Wii U - Nintendo Network' started by exelix11, Oct 23, 2016.

  1. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Hi, dirty pirates !
    So, let's get to the point: What's LocalDNS ?
    It's a DNS "emulator" which you can configure to block wii u, and other consoles updates.
    Why emulator ?
    The important part is that this program is written in C# and it's compatible with mono, so you can use it on Windows, Linux and Mac (didn't test this one).

    [​IMG]


    Is it better than the other DNS services or the OpenDNS method ?
    For sure, it's better than OpenDNS because it works without needing a static ip.
    It's pretty much on the same level as the other DNS services, but has a few advantages:
    -If the server is not running the console can't connect to the internet at all.
    -You have full control on what's going on, run it on your pc and you can see the logs in real time in the console window
    -You can customize the addresses to block, so you can use it for other consoles too.
    -Also, it will send the domain not found error, so if you misclick and open the eshop you won't be waiting the timeout to close it.

    How to setup:
    1) Download and unpack the zip from GitHub
    2) Make sure your pc has a static LOCAL ip, you can set it on the router or in the pc settings
    3) Set your pc's local ip as both the dns addresses in your console
    4) Run the exe (double click on windows, sudo mono LocalDns.exe on linux/mac)
    on linux it requires sudo to open a socket

    Command line args:
    By default the Rules.txt file is loaded, you can use another file with:
    Code:
    (sudo mono) LocalDns.exe -Rules yourFile.txt
    You can also use the Rules.txt from the git repo to be always updated:
    Code:
    (sudo mono) LocalDns.exe -DownloadRules
    to see the other args use LocalDns.exe ?

    To set up a DNS server with a raspberry pi:
    I'm using my raspberry pi to block updates, this should work also with other linux minipcs:
    Warning: Spoilers inside!

    I made this tool during summer for other purposes,later i thought about using it to block updates,but with the recent accomplishments in the scene i decided to release, it's useful if you don't fully trust the public DNS servers or just for when they are all offline

    Here are the rules that will be used if you run it with -DownloadRules



    Also @brienj made a gui for windows users: https://gbatemp.net/threads/release-localdnsgui-a-windows-gui-for-localdns.452683/
     
    Last edited by exelix11, Dec 14, 2016


  2. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Update: added video
     
  3. depaul

    depaul GBAtemp Regular

    Member
    262
    145
    May 21, 2014
    France
    This is interesting. So you have to set up a pc that acts as a dns server right?
     
  4. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    You don't have to set up anything, just run the exe and the server is ready.
     
  5. cw-kid

    cw-kid Member

    Newcomer
    38
    2
    Nov 8, 2016
    Looks good! Can you still play games online such as Splatoon with this Local DNS server ?

    I tried TubeHax but when using that IP the connection test on the Wii U stated no internet connection. Currently the DNS is set to auto obtain.

    I did however block a list of Nintendo URLs on my router and if you try and do an update or go to the eShop it doesn't work / fails.

    We are currently having issues playing Splatoon battles online however with connection errors and disconnects not sure if its related to blocking those URLs or not or something else?

    Thanks

    EDIT: Seems Splatoon has started working OK again online maybe just a blip?
     
    Last edited by cw-kid, Nov 8, 2016
  6. Oxybelis

    Oxybelis GBAtemp Fan

    Member
    348
    74
    Jan 10, 2010
    Nice program without bloat.
    cw-kid, Looks TubeHax is currently down.
     
  7. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    By blocking updates you can still play games online, i often play smash and mk8 without problems.

    Blocking updates is basically blocking eshop servers so the console can't download them, there isn't a way to block updates without blocking eshop too, you can disable the dns only when you want to download something or you can use wupinstaller to manually install updates for games.
     
  8. cw-kid

    cw-kid Member

    Newcomer
    38
    2
    Nov 8, 2016
    Thanks for the further information. I am going to try the other chncdcksn DNS if that doesnt work for me will try your local DNS instead.
     
  9. cw-kid

    cw-kid Member

    Newcomer
    38
    2
    Nov 8, 2016
    I have the LocalDNS.exe running on my Windows file server. It says 32 rules loaded and socket ready, running on 192.168.0.x

    I presume you have to leave this command window open all the time? For the DNS to be running ?

    I then entered the servers static LAN IP (192.168.000.00x) in to the Wii U's Wifi connection settings under DNS in both primary and secondary. However the Internet Connection test fails.

    How does the Wii get a route out to the internet now ?

    Also I am not seeing any requests appear in the LocalDNS log when trying to open the eshop for example.

    Thanks

    — Posts automatically merged - Please don't double post! —

    Actually if I turn off the Windows Firewall on the server, then I do start seeing "Got Request from" messages in the LocalDNS log. So I need to open up a port number or something on the Windows Firewall ?

    The Internet Connection test now passes when the Windows Firewall on the server is turned OFF. And the Wii U browser can access loadiine.ovh OK.

    If I go in to the Wii U system settings and go to System Update it fails and says "Unable to connect to the server" so that appears to work!

    — Posts automatically merged - Please don't double post! —

    I've opened up DNS port 53 for TCP and UDP for the private LAN only on the Windows server firewall and now its working with the firewall turned ON.
     
  10. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Yep you must allow localDNS from the firewall, usually windows shows a warning the first time you open it, probably you have this disabled or clicked no in the prompt.
    And yes, you must keep the localDNS console open while you want to be connected to internet, if you close the window, the console won't connect anymore
     
    cw-kid likes this.
  11. retrofan_k

    retrofan_k GBAtemp Advanced Maniac

    Member
    1,711
    1,027
    May 31, 2013
    Caves
    @exelix11 thanks for this tool. Works great
     
  12. JerJer

    JerJer Member

    Newcomer
    47
    6
    Jun 5, 2010
    United States
    How to set up with VPN (like Hotspot shield)? or does that matter?
     
  13. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    It shouldn't, localdns works only in your local network
     
  14. air2004

    air2004 Air

    Member
    1,594
    434
    Oct 24, 2008
    United States
    Anytown
    Nice
     
  15. Scoop111

    Scoop111 Advanced Member

    Newcomer
    67
    10
    Feb 15, 2015
    Gambia, The
    @exelix11 - First off, many thanks for this great tool. It worked like a charm for about a week But now all of a sudden it stopped working. Seems as if the program doesn't get any requests fromm the WiiU anymore. Nothing has changed. Yet I rebootet the Router, Laptop as well as the Wii U and checked the IP settings again. Windows Firewall of course is set correctly.
    Any ideas?
     
  16. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Did you put the Wii u in the DMZ of the router ? Some routers don't allow sending request to the lan from dmz.
    Also what did you change from the last time you used the dns ?
     
  17. Scoop111

    Scoop111 Advanced Member

    Newcomer
    67
    10
    Feb 15, 2015
    Gambia, The
    Thanks for the quick answer. Unfortunately my router only has very limited funktions, even on Expert-Mode -.- Nevertheless both devices could communicate without problem during the last week. It stopped working in the middle of a online-game session (Mario Maker).

    The only thing out of the order I did like half an hour before was using a remote-desktop program, which also had a video-chat.
    No changes at all made at WiiU settings, Laptop, Router or Firewall. That's why I'm clueless right now...
     
  18. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Try running localdns on another pc so you can know if the problem is your pc or the console, if from another pc works check on your pc with netstat -ano if something on your pc is using the port 53 (it will show the list of ports used and the PID of the process that's using it, kill the process from task manager).
     
  19. Scoop111

    Scoop111 Advanced Member

    Newcomer
    67
    10
    Feb 15, 2015
    Gambia, The
    Sorry, took me a moment.
    Just tested on my girlfriends Laptop. Same problem there. On both PC's port 53 is only used by LocalDNS.
    If I set DNS to automatic, I get Internet on the Wii U, so I believe the WiFi Adapter is okay...

    EDIT: I solved it. I unplugged my router for about ten minutes and it worked again. This latest Vodafone-Routers aka easybox are complete garbage.
    Sorry for wasting your time, mate.
    Once again, thank you for your great app and support. Really appreciate that. Especially because no other solution works for me. DNS-U and others are completely ignored. Maybe just another stupid issue with my router...
     
    Last edited by Scoop111, Dec 9, 2016
  20. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    535
    376
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    At this point i think the problem is the router, try to factory reset it.
    Or another test you could do would be try running Localdns on one pc and setting it as the DNS of the other one and check if the requests appear in the log (windows has a dns cache you should go on a site you didn't visit for a while).