chhost?
Dynamic DNS用
#!/bin/sh # en1(airmac)は自宅 en=`/sbin/ifconfig en1 | /usr/bin/grep 192.168` case "$en" in *inet* ) # sudo cp -f /etc/hosts.home /etc/hosts sudo nicl . -create /machines/oppara.dynamic sudo nicl . -append /machines/oppara.dynamic ip_address 192.168.xx.xx ;; * ) # sudo cp -f /etc/hosts.not_home /etc/hosts sudo nicl . -delete /machines/oppara.dynamic ;; esac sudo kill -HUP `sudo cat /var/run/lookupd.pid` sudo kill -HUP `sudo cat /var/run/netinfo_local.pid` # 確認 nidump hosts .
もっとスマートな方法があれば...