Very simple DNS server

后端 未结 4 1401
眼角桃花
眼角桃花 2021-02-08 15:35

I have a linux server has an ad-hoc wireless network for clients to connect to. Once connected I want users to always be redirected to it\'s own web server no matter what URL th

4条回答
  •  庸人自扰
    2021-02-08 16:20

    I would suggest using dnsmasq. It's more full-featured than you absolutely need, but it's very well-written, small, and easy to install, and the only configuration you would need to give it is --address='/#/1.2.3.4' to tell it to answer all queries (that don't match some other rule) with the address 1.2.3.4. dnsmasq is well-known and maintained and probably a more robust server than Net::DNS::Nameserver.

提交回复
热议问题