Linux DHCP & DNS Server?


Recommended Posts

Hello everyone,

I'm looking for a distro. of Linux that has a DHCP server & DNS Server builtin. However, there is a twist. I want all requests for any websites to be redirected to a address of my choice. E.g. if someone tries to get on the www.google.com, they get redirected to a website of my choice. I'm essentially setting up a wireless chat, so I need all requests to be redirected.

Thanks!

-lieb39

Link to comment
https://www.neowin.net/forum/topic/445059-linux-dhcp-dns-server/
Share on other sites

I am not a linux expert (just getting started), but I believe that could be done using iptables. Setup up the linux server with DHCP/DNS (They almost all have the services builtin, but have fun with BIND). Configure the defGW to be your server. Configure redirect in IPTables to redirect all ip traffic outside the local subnet to the default webserver.

Billprozac: Thanks for clearing that up. The exact reason why I'm redirecting all (not certain web-sites) because there is no actual Internet connection available, I just want to make a local chat, which all users are redirected to.

Can any linux experts help me out, to configure the IP tables?

Thanks,

lieb39

  • 2 weeks later...

ugly?? what is ugly about adding a rule at the bottom to redirect all outgoing web requests to a local port:

ipchains -A input -p tcp -d 0.0.0.0/0 80 -j REDIRECT 8888 -l

Then use "tproxyd" or "redir" to redirect to the other machine if webserver is not running on the same server?

redir --lport=8888 --laddr=192.168.1.100 --cport=80 --caddr=192.168.1.101

Im curious though - if there is no internet connection.. how are they going to even attempt to goto www.google.com?? Since without a internet connection, how will they or any machine resolve where www.google.com is? If it can not be resolved, browser will not go anywhere ;)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • You are clueless. The updates are done in the background so the next time you open Edge the updates are applied automatically. There is no need to close all your tabs. Just keep browsing like you normally do. Clearly you don't use Edge and are just one of those haters that complain for the sake of complaining.
    • I don't get this David. Can you explain it please.  
    • Microsoft is busy. Lots of changes to be released imminently for Windows server or soon. Also, lots happening for next version as well. Third party virus scanning software is being moved out of Kernel mode to avoid repeat of Crowdstrike incident. Windows Protected Mode and Windows Ready Print no longer require third party print drivers to be installed. New storage stack being developed. New NVME drivers now available for Windows Server 2025 to improve local NVME drive performance by 60+ percent. NVME-Of of fabric being worked on for next release to improve network access to NVME drives. ReFs (next file system) now has ability to boot and will become default file system in next release of Windows Server. ReFs improves on NTFS in several areas including resiliency and reliability and scalability. New update stack is being worked on to unify Windows updates, and updates for drivers and first party/3rd party application software. A stricter and more robust third-party driver certification program (ODI) is being worked on to improve performance, thermals, battery life, and reliability on modern Windows hardware by tightening how OEMs and IHVs (Intel, AMD, Qualcomm, NVIDIA, etc.) build and ship drivers. There is a tone more but too numerous to mention.
    • Now disable that stupid OneDrive backup request when Windows starts please. So unbelievably frustrating to only have “remind me later” instead of “no and never ask me again”
    • Hello, The Media Creation Tool is still at v10.0.26100.7019 from October 2025. Just looks like the backend has been updated. Regards, Aryeh Goretsky
  • Recent Achievements

    • One Month Later
      Markus94287 earned a badge
      One Month Later
    • Week One Done
      Markus94287 earned a badge
      Week One Done
    • One Year In
      Markus94287 earned a badge
      One Year In
    • Dedicated
      truespursfan earned a badge
      Dedicated
    • Rookie
      restore went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      154
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!