差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
os:freebsd:nsupdate:start [2011/02/01 00:58] yuki |
os:freebsd:nsupdate:start [2011/04/01 20:53] yuki |
||
---|---|---|---|
ライン 2: | ライン 2: | ||
* 基本形 | * 基本形 | ||
- | <code># nsupdate | + | * <code>hostname ~# nsupdate |
>server 127.0.0.1 | >server 127.0.0.1 | ||
>update add www.example.com 86400 A 192.168.1.1 | >update add www.example.com 86400 A 192.168.1.1 | ||
ライン 20: | ライン 20: | ||
> | > | ||
>quit | >quit | ||
- | # </code> | + | hostname ~# </code> |
+ | |||
+ | * 軽い認証を加える場合 | ||
+ | * named.confに、以下のようにkeyが設定されているとする。 | ||
+ | * <code>key example { | ||
+ | algorithm hmac-md5; | ||
+ | secret "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | ||
+ | };</code> | ||
+ | * nsupdateはこんな感じ。 | ||
+ | * <code># nsupdate -y example:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</code> |