Very simple DNS server

后端 未结 4 1391
眼角桃花
眼角桃花 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:29

    As I answered in the other related question, I wrote a basic DNS server in C++ for a job interview under BSD license.

    I think the code was pretty clean, though I didn't made unit tests :-( I tested it with dig, and it took about a week understanding DNS protocol + implementing + documentation.

    If anyone would want to extend it, I guess it would not be very difficult. Because I think it only supported inverse queries, as that was asked in the exercise.

    The code could be found here: http://code.google.com/p/dns-server/

    It was migrated to: https://github.com/tomasorti/dns-server

提交回复
热议问题