bind をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
Bindさま本家 [[http://www.isc.org/software/bind>+http://w...
最新版のリリース情報は右サイトより得られる [[https://list...
DNS(Domain Name System)を稼働させるプログラムの一つがISC ...
ここでは&color(lightseagreen){''CentOS 7''};にて、このbin...
&color(red){*};&size(10){samba-4.xの&color(darkorchid){''...
***構築環境の整備 [#j43cd781]
[[CentOS]]を参考に&color(lightseagreen){''CentOS 7''};稼...
これに開発環境とbindの稼働に必要なツールをインストールす...
&color(red){*};&size(10){net-toolsにはifconfigらが入って...
#code(nonumber){{
[root@c ~]# yum groupinstall development
[root@c ~]# yum install openssl-devel wget net-tools
}}
また、bindは特定のユーザにて稼働させたいので、そのユーザ...
#code(nonumber){{
[root@c ~]# groupadd -r named
[root@c ~]# useradd -r -d /var/named -s /sbin/nologin -g...
}}
***構築 [#g44ce238]
次に、bindを取得してコンパイル及びインストールを行います。
#code(nonumber){{
[root@c ~]# mkdir -p /opt/src && cd /opt/src
[root@c src]# wget ftp://ftp.riken.jp/net/bind/9.9.6-P2/b...
[root@c src]# gzip -cd bind-9.9.6-P2.tar.gz | tar xf -
[root@c src]# chown -R root:root ./bind-9.9.6-P2
[root@c src]# cd bind-9.9.6-P2
[root@c bind-9.9.6-P2]# ./configure --prefix=/opt/bind996...
--disable-ipv6 --disable-chroot | tee make.log
(中略)
=========================================================...
Configuration summary:
---------------------------------------------------------...
Optional features enabled:
GSS-API (--with-gssapi)
Print backtrace on crash (--enable-backtrace)
Use symbol table for backtrace, named only (--enable-...
Dynamically loadable zone (DLZ) drivers:
None
Features disabled or unavailable on this platform:
Multiprocessing support (--enable-threads)
IPv6 support (--enable-ipv6)
Response Rate Limiting (--enable-rrl)
PKCS#11/Cryptoki support (--with-pkcs11)
New statistics (--enable-newstats)
Allow 'fixed' rrset-order (--enable-fixed-rrset)
Automated Testing Framework (--with-atf)
GOST algorithm support (--with-gost)
=========================================================...
[root@c bind-9.9.6-P2]#
[root@c bind-9.9.6-P2]# make | tee -a make.log
[root@c bind-9.9.6-P2]# ./bin/tests/system/ifconfig.sh up...
[root@c bind-9.9.6-P2]# make check | tee -a make.log
(中略)
E:zonechecks:2015年 3月 8日 日曜日 11:48:25 JST
I:System test result summary:
I: 54 PASS
I: 1 PKCS11ONLY
I: 4 SKIPPED
I: 6 UNTESTED
(中略)
[root@c bind-9.9.6-P2]#
[root@c bind-9.9.6-P2]# ./bin/tests/system/ifconfig.sh down
[root@c bind-9.9.6-P2]# make install | tee -a make.log
[root@c bind-9.9.6-P2]# ( cd /opt; rm -f bind ; ln -s bin...
[root@c bind-9.9.6-P2]# /opt/bind/sbin/rndc-confgen -a
wrote key file "/opt/bind996P2/etc/rndc.key"
[root@c bind-9.9.6-P2]#
[root@c bind-9.9.6-P2]# chown named:named /opt/bind/etc/r...
[root@c bind-9.9.6-P2]# chown -R named:named /opt/bind/va...
[root@c bind-9.9.6-P2]# cd /var/named
}}
&color(lightseagreen){''CentOS 7''};では起動スクリプトが...
#code(nonumber){{
[root@c ~]# vi /etc/systemd/system/named.service
[root@c ~]# systemctl daemon-reload
[root@c ~]# systemctl enable named.service
[root@c ~]# systemctl start named.service
}}
今後は、OS由来のbindを使わないようにする為に、yum.conf...
#code(nonumber){{
[root@c ~]# vi /etc/yum.conf
exclude=bind*
[root@c ~]#
}}
これで、bind関係のパッケージはインストール/アップデートさ...
しかし他のパッケージのインストールの際、bind関係が依存さ...
&color(red){*};bind-utilsとsssdが依存関係にあるので、sssd...
***設定ファイルの用意 [#s43d26ce]
[[bind/bind設定]]参照
***リンク作成 [#ia7eebfd]
ここでは/opt/bindをprefixとして定義している。だが、samba4...
まずは/usr/binにおいて、
#code(nonumber){{
[root@c ~]# cd /usr/bin
[root@c bin]# ln -sv /opt/bind/bin/* .
`./bind9-config' -> `/opt/bind/bin/bind9-config'
`./dig' -> `/opt/bind/bin/dig'
`./host' -> `/opt/bind/bin/host'
`./isc-config.sh' -> `/opt/bind/bin/isc-config.sh'
`./nslookup' -> `/opt/bind/bin/nslookup'
`./nsupdate' -> `/opt/bind/bin/nsupdate'
[root@c bin]#
}}
として、リンクを作成。次に/usr/sbinにおいては、
#code(nonumber){{
[root@c ~]# cd /usr/sbin/
[root@c sbin]# ln -sv /opt/bind/sbin/* .
`./arpaname' -> `/opt/bind/sbin/arpaname'
`./ddns-confgen' -> `/opt/bind/sbin/ddns-confgen'
`./dnssec-dsfromkey' -> `/opt/bind/sbin/dnssec-dsfromkey'
`./dnssec-importkey' -> `/opt/bind/sbin/dnssec-importkey'
`./dnssec-keyfromlabel' -> `/opt/bind/sbin/dnssec-keyfrom...
`./dnssec-keygen' -> `/opt/bind/sbin/dnssec-keygen'
`./dnssec-revoke' -> `/opt/bind/sbin/dnssec-revoke'
`./dnssec-settime' -> `/opt/bind/sbin/dnssec-settime'
`./dnssec-signzone' -> `/opt/bind/sbin/dnssec-signzone'
`./dnssec-verify' -> `/opt/bind/sbin/dnssec-verify'
`./genrandom' -> `/opt/bind/sbin/genrandom'
`./isc-hmac-fixup' -> `/opt/bind/sbin/isc-hmac-fixup'
`./lwresd' -> `/opt/bind/sbin/lwresd'
`./named' -> `/opt/bind/sbin/named'
`./named-checkconf' -> `/opt/bind/sbin/named-checkconf'
`./named-checkzone' -> `/opt/bind/sbin/named-checkzone'
`./named-compilezone' -> `/opt/bind/sbin/named-compilezone'
`./named-journalprint' -> `/opt/bind/sbin/named-journalpr...
`./nsec3hash' -> `/opt/bind/sbin/nsec3hash'
`./rndc' -> `/opt/bind/sbin/rndc'
`./rndc-confgen' -> `/opt/bind/sbin/rndc-confgen'
[root@c sbin]#
}}
としておく。各自のユーザには/usr/binのパスが既にあるから...
bash向けとして、
#code(nonumber){{
[root@c ~]# vi /etc/profile.d/bind.sh
# bind initialization script (csh)
if ! echo ${PATH} | /bin/grep -q /opt/bind/bin ; then
PATH=/opt/bind/bin:${PATH}
fi
[root@c ~]#
}}
csh系向けとして、
#code(nonumber){{
[root@c ~]# vi /etc/profile.d/bind.csh
# bind initialization script (csh)
if ( "${path}" !~ */opt/bind/bin* ) then
set path = ( /opt/bind/bin $path )
endif
[root@c ~]#
}}
と定義しておく。
終了行:
Bindさま本家 [[http://www.isc.org/software/bind>+http://w...
最新版のリリース情報は右サイトより得られる [[https://list...
DNS(Domain Name System)を稼働させるプログラムの一つがISC ...
ここでは&color(lightseagreen){''CentOS 7''};にて、このbin...
&color(red){*};&size(10){samba-4.xの&color(darkorchid){''...
***構築環境の整備 [#j43cd781]
[[CentOS]]を参考に&color(lightseagreen){''CentOS 7''};稼...
これに開発環境とbindの稼働に必要なツールをインストールす...
&color(red){*};&size(10){net-toolsにはifconfigらが入って...
#code(nonumber){{
[root@c ~]# yum groupinstall development
[root@c ~]# yum install openssl-devel wget net-tools
}}
また、bindは特定のユーザにて稼働させたいので、そのユーザ...
#code(nonumber){{
[root@c ~]# groupadd -r named
[root@c ~]# useradd -r -d /var/named -s /sbin/nologin -g...
}}
***構築 [#g44ce238]
次に、bindを取得してコンパイル及びインストールを行います。
#code(nonumber){{
[root@c ~]# mkdir -p /opt/src && cd /opt/src
[root@c src]# wget ftp://ftp.riken.jp/net/bind/9.9.6-P2/b...
[root@c src]# gzip -cd bind-9.9.6-P2.tar.gz | tar xf -
[root@c src]# chown -R root:root ./bind-9.9.6-P2
[root@c src]# cd bind-9.9.6-P2
[root@c bind-9.9.6-P2]# ./configure --prefix=/opt/bind996...
--disable-ipv6 --disable-chroot | tee make.log
(中略)
=========================================================...
Configuration summary:
---------------------------------------------------------...
Optional features enabled:
GSS-API (--with-gssapi)
Print backtrace on crash (--enable-backtrace)
Use symbol table for backtrace, named only (--enable-...
Dynamically loadable zone (DLZ) drivers:
None
Features disabled or unavailable on this platform:
Multiprocessing support (--enable-threads)
IPv6 support (--enable-ipv6)
Response Rate Limiting (--enable-rrl)
PKCS#11/Cryptoki support (--with-pkcs11)
New statistics (--enable-newstats)
Allow 'fixed' rrset-order (--enable-fixed-rrset)
Automated Testing Framework (--with-atf)
GOST algorithm support (--with-gost)
=========================================================...
[root@c bind-9.9.6-P2]#
[root@c bind-9.9.6-P2]# make | tee -a make.log
[root@c bind-9.9.6-P2]# ./bin/tests/system/ifconfig.sh up...
[root@c bind-9.9.6-P2]# make check | tee -a make.log
(中略)
E:zonechecks:2015年 3月 8日 日曜日 11:48:25 JST
I:System test result summary:
I: 54 PASS
I: 1 PKCS11ONLY
I: 4 SKIPPED
I: 6 UNTESTED
(中略)
[root@c bind-9.9.6-P2]#
[root@c bind-9.9.6-P2]# ./bin/tests/system/ifconfig.sh down
[root@c bind-9.9.6-P2]# make install | tee -a make.log
[root@c bind-9.9.6-P2]# ( cd /opt; rm -f bind ; ln -s bin...
[root@c bind-9.9.6-P2]# /opt/bind/sbin/rndc-confgen -a
wrote key file "/opt/bind996P2/etc/rndc.key"
[root@c bind-9.9.6-P2]#
[root@c bind-9.9.6-P2]# chown named:named /opt/bind/etc/r...
[root@c bind-9.9.6-P2]# chown -R named:named /opt/bind/va...
[root@c bind-9.9.6-P2]# cd /var/named
}}
&color(lightseagreen){''CentOS 7''};では起動スクリプトが...
#code(nonumber){{
[root@c ~]# vi /etc/systemd/system/named.service
[root@c ~]# systemctl daemon-reload
[root@c ~]# systemctl enable named.service
[root@c ~]# systemctl start named.service
}}
今後は、OS由来のbindを使わないようにする為に、yum.conf...
#code(nonumber){{
[root@c ~]# vi /etc/yum.conf
exclude=bind*
[root@c ~]#
}}
これで、bind関係のパッケージはインストール/アップデートさ...
しかし他のパッケージのインストールの際、bind関係が依存さ...
&color(red){*};bind-utilsとsssdが依存関係にあるので、sssd...
***設定ファイルの用意 [#s43d26ce]
[[bind/bind設定]]参照
***リンク作成 [#ia7eebfd]
ここでは/opt/bindをprefixとして定義している。だが、samba4...
まずは/usr/binにおいて、
#code(nonumber){{
[root@c ~]# cd /usr/bin
[root@c bin]# ln -sv /opt/bind/bin/* .
`./bind9-config' -> `/opt/bind/bin/bind9-config'
`./dig' -> `/opt/bind/bin/dig'
`./host' -> `/opt/bind/bin/host'
`./isc-config.sh' -> `/opt/bind/bin/isc-config.sh'
`./nslookup' -> `/opt/bind/bin/nslookup'
`./nsupdate' -> `/opt/bind/bin/nsupdate'
[root@c bin]#
}}
として、リンクを作成。次に/usr/sbinにおいては、
#code(nonumber){{
[root@c ~]# cd /usr/sbin/
[root@c sbin]# ln -sv /opt/bind/sbin/* .
`./arpaname' -> `/opt/bind/sbin/arpaname'
`./ddns-confgen' -> `/opt/bind/sbin/ddns-confgen'
`./dnssec-dsfromkey' -> `/opt/bind/sbin/dnssec-dsfromkey'
`./dnssec-importkey' -> `/opt/bind/sbin/dnssec-importkey'
`./dnssec-keyfromlabel' -> `/opt/bind/sbin/dnssec-keyfrom...
`./dnssec-keygen' -> `/opt/bind/sbin/dnssec-keygen'
`./dnssec-revoke' -> `/opt/bind/sbin/dnssec-revoke'
`./dnssec-settime' -> `/opt/bind/sbin/dnssec-settime'
`./dnssec-signzone' -> `/opt/bind/sbin/dnssec-signzone'
`./dnssec-verify' -> `/opt/bind/sbin/dnssec-verify'
`./genrandom' -> `/opt/bind/sbin/genrandom'
`./isc-hmac-fixup' -> `/opt/bind/sbin/isc-hmac-fixup'
`./lwresd' -> `/opt/bind/sbin/lwresd'
`./named' -> `/opt/bind/sbin/named'
`./named-checkconf' -> `/opt/bind/sbin/named-checkconf'
`./named-checkzone' -> `/opt/bind/sbin/named-checkzone'
`./named-compilezone' -> `/opt/bind/sbin/named-compilezone'
`./named-journalprint' -> `/opt/bind/sbin/named-journalpr...
`./nsec3hash' -> `/opt/bind/sbin/nsec3hash'
`./rndc' -> `/opt/bind/sbin/rndc'
`./rndc-confgen' -> `/opt/bind/sbin/rndc-confgen'
[root@c sbin]#
}}
としておく。各自のユーザには/usr/binのパスが既にあるから...
bash向けとして、
#code(nonumber){{
[root@c ~]# vi /etc/profile.d/bind.sh
# bind initialization script (csh)
if ! echo ${PATH} | /bin/grep -q /opt/bind/bin ; then
PATH=/opt/bind/bin:${PATH}
fi
[root@c ~]#
}}
csh系向けとして、
#code(nonumber){{
[root@c ~]# vi /etc/profile.d/bind.csh
# bind initialization script (csh)
if ( "${path}" !~ */opt/bind/bin* ) then
set path = ( /opt/bind/bin $path )
endif
[root@c ~]#
}}
と定義しておく。
ページ名:
1