MacOSXでunboundをローカルキャッシュにする2

  • 前の日記でソースから入れるとか書いたんだが、アップデートとかを考えていたらMac Portsにあったのでそっちで入れ直し

% port search unbound
py25-pyqwt @5.1.0 (python, devel)
PyQwt is a set of Python bindings for the Qwt toolkit

unbound @1.2.1 (net)
Validating, recursive, and caching DNS resolver.

Found 2 ports.

% sudo port install unbound
Password:

      • > Fetching unbound
      • > Attempting to fetch unbound-1.2.1.tar.gz from http://distfiles.macports.org/unbound
      • > Verifying checksum(s) for unbound
      • > Extracting unbound
      • > Configuring unbound
      • > Building unbound
      • > Staging unbound into destroot
      • > Creating launchd control script

###########################################################
# A startup item has been generated that will aid in
# starting unbound with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.unbound.plist
###########################################################

      • > Installing unbound @1.2.1_0
      • > Activating unbound @1.2.1_0
      • > Cleaning unbound

書いてある通り起動設定をするまえに前の起動設定を削除

% sudo launchctl list | grep unb

  • 0 net.unbound.unbound

% sudo launchctl stop net.unbound.unbound

% sudo launchctl unload -w /Library/LaunchDaemons/net.unbound.unbound.plist

そして

% sudo cp /usr/local/etc/unbound/* /opt/local/etc/unbound/

% sudo launchctl load -w /Library/LaunchDaemons/org.macports.unbound.plist

% sudo launchctl list | grep unb
55423 - org.macports.unbound

% sudo launchctl start org.macports.unbound

こんなかんじかな?