Total Pageviews

Thursday, 11 July 2019

dns解析服务器程序-primdns

A Simple DNS Contents Server.

環境:
  -FreeBSD 8.2-RELEASE
  - Linux 2.6.35 (Ubuntu 10.10)
  - Mac OS X 10.5.8

 ./configure --prefix=/usr/local/primdns
 make
 make install

export PATH=$PATH:/usr/local/primdns/sbin

# primdns-updatezone
# primd -c /usr/local/primdns/etc/primd.conf

usage: primd [options..]
options:  -4           ipv4 only
          -6           ipv6 only
          -b [addr]    listen on addr
          -c [path]    config file path
          -d           enable debug log
          -f           foreground mode
          -g [group]   setgid
          -p [port]    listen on port
          -q           enable query log
          -u [user]    setuid
          -v           show version
          -M [size]    cache pool size in MB
          -T [num]     number of worker threads

設定格式:

  zone  [  ] {
      search {
            ;
        [   ; ]
        [   ; ]
        [ ... ]
      };

    [ slaves {
           ;
        [  ; ]
        [ ... ]
      }; ]
  };

from  https://github.com/ebisawa/primdns

No comments:

Post a Comment