본문으로 바로가기

◆ [설치환경]


■ 최신 릴리즈 설치 테스트 : 2017년 4월 30일


CentOS 7 64bit [ 제가 포스팅한 설치이후 환경에서 작업 ]

Kernel 4.10.X ↑ [ 해당서버는 최신 커널을 이용합니다. 기존커널에서 작업하셔도 됩니다. ]

□ 일부 설정이나 경로가 다를 수 있습니다. 실서버가 아닌 VMware 환경에서 작업이 이루어 집니다.


PowerDNS 4.X 설치 버전입니다.


■ MariaDB(10.1) 및 PowerDNS 설치


Yum 설치를 위해 EPEL 저장소 추가

BASH

[root@localhost ~]# yum install epel-release -y

.

.

Installed: epel-release.noarch 0:7-9 Complete!

MariaDB(10.1) 설치를 위해 저장소 추가

BASH

[root@localhost ~]# vi /etc/yum.repos.d/MariaDB.repo


# MariaDB 10.1 CentOS repository list # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1


:wq ( 저장 )

MariaDB(10.1) 설치 진행

BASH

[root@localhost ~]# yum install MariaDB-server MariaDB-client

.

.

==================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================== Installing: MariaDB-client x86_64 10.1.22-1.el7.centos mariadb 39 M MariaDB-server x86_64 10.1.22-1.el7.centos mariadb 101 M MariaDB-shared x86_64 10.1.22-1.el7.centos mariadb 1.3 M replacing mariadb-libs.x86_64 1:5.5.52-1.el7 Installing for dependencies: MariaDB-common x86_64 10.1.22-1.el7.centos mariadb 123 k boost-program-options x86_64 1.53.0-26.el7 base 156 k galera x86_64 25.3.19-1.rhel7.el7.centos mariadb 8.0 M jemalloc x86_64 3.6.0-1.el7 epel 105 k lsof x86_64 4.87-4.el7 base 331 k perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 k Transaction Summary ==================================================================================================================================== Install 3 Packages (+11 Dependent packages) Total download size: 152 M Is this ok [y/d/N]: y

.

.

Total 1.7 MB/s | 151 MB 00:01:28 Retrieving key from https://yum.mariadb.org/RPM-GPG-KEY-MariaDB Importing GPG key 0x1BB943DB: Userid : "MariaDB Package Signing Key <package-signing-key@mariadb.org>" Fingerprint: 1993 69e5 404b d5fc 7d2f e43b cbcb 082a 1bb9 43db From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB Is this ok [y/N]: y


Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-9.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Is this ok [y/N]: y

.

.

Installed: MariaDB-client.x86_64 0:10.1.22-1.el7.centos MariaDB-server.x86_64 0:10.1.22-1.el7.centos MariaDB-shared.x86_64 0:10.1.22-1.el7.centos Dependency Installed: MariaDB-common.x86_64 0:10.1.22-1.el7.centos boost-program-options.x86_64 0:1.53.0-26.el7 galera.x86_64 0:25.3.19-1.rhel7.el7.centos jemalloc.x86_64 0:3.6.0-1.el7 lsof.x86_64 0:4.87-4.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 Replaced: mariadb-libs.x86_64 1:5.5.52-1.el7 Complete!

설치후 MariaDB 활성화 및 서비스 시작 ( 구동확인 )

BASH

[root@localhost ~]# systemctl enable mariadb.service ( MariaDB 활성화 )


[root@localhost ~]# systemctl start mariadb.service ( 서비스 시작 )

[root@localhost ~]# ps -ef |grep mysqld mysql 11432 1 5 06:20 ? 00:00:00 /usr/sbin/mysqld ( 구동확인 ) root 11467 10975 0 06:21 pts/0 00:00:00 grep --color=auto mysqld

MariaDB 기본설정 ( DB가 구동된 상태에서 진행가능 )

BASH

[root@localhost ~]# mysql_secure_installation


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): 패스워드가 없기때문에 엔터


OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. Set root password? [Y/n] Y ( DB ROOT 패스워드 설정 ) New password: 패스워드입력 Re-enter new password: 재확인 패스워드입력 Password updated successfully! Reloading privilege tables.. ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ( 익명의 접근을 막을것인지? 보안을 위해 Y 엔터 ) ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] Y ( DB ROOT 원격을 막을것인지? 보안을 위해 Y 엔터 )

... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] Y ( Test 용으로 생성된 데이터베이스를 삭제할것인가? Y 엔터 )

- Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately.


Reload privilege tables now? [Y/n] Y ( 현재 설정한 값을 적용할것인지? 당연히 Y 엔터 )

... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! ( 끝 )


PowerDNS 설치

그냥 설치하면 3.X 버전이 설치되므로 직접 PowerDNS 저장소에서 버전에 맞게 epel 가져옵니다.

사이트 URL : https://repo.powerdns.com/

파일사이트 URL : https://www.monshouwer.eu/download/3rd_party/pdns/


저희는 CentOS7 버전이므로 다음과 같이 입력

BASH

[root@localhost ~]# yum install epel-release yum-plugin-priorities && curl -o /etc/yum.repos.d/powerdns-auth-40.repo https://repo.powerdns.com/repo-files/centos-auth-40.repo

.

.

==================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================== Installing: yum-plugin-priorities noarch 1.1.31-40.el7 base 27 k Transaction Summary ==================================================================================================================================== Install 1 Package Total download size: 27 k Installed size: 28 k Is this ok [y/d/N]: Y

.

.

Installed: yum-plugin-priorities.noarch 0:1.1.31-40.el7 Complete!

BASH

[root@localhost ~]# yum install pdns pdns-backend-mysql

.

.

==================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================== Installing: pdns x86_64 4.0.3-1pdns.el7 powerdns-auth-40 2.0 M pdns-backend-mysql x86_64 4.0.3-1pdns.el7 powerdns-auth-40 38 k Transaction Summary ==================================================================================================================================== Install 2 Packages Total download size: 2.0 M Installed size: 7.7 M Is this ok [y/d/N]: Y

.

.

Installed: pdns.x86_64 0:4.0.3-1pdns.el7 pdns-backend-mysql.x86_64 0:4.0.3-1pdns.el7 Complete!


MariaDB구동후 PowerDNS가 사용할 Database, 유저 및 테이블 생성

Mysql 셋팅 예제 샘플 참고 URL : https://doc.powerdns.com/md/authoritative/howtos/#basic-setup-configuring-database-connectivity

BASH

[root@localhost ~]# mysql -u root -p

Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 10.1.22-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> create database pdns; ( Database 생성 ) Query OK, 1 row affected (0.01 sec)


MariaDB [(none)]> GRANT ALL ON pdns.* TO 'pdns'@'localhost' IDENTIFIED BY 'test123'; ( 접근 USER 추가 ) Query OK, 0 rows affected (0.00 sec)

( 참고 : GRANT ALL ON 데이터베이스 이름.* TO '유저 ID'@'localhost' IDENTIFIED BY '패스워드'; )


MariaDB [(none)]> GRANT ALL ON pdns.* TO 'pdns'@'testdns' IDENTIFIED BY 'test123'; ( SOA접근 USER 추가 )


MariaDB [mysql]> FLUSH PRIVILEGES; ( 적용 ) Query OK, 0 rows affected (0.00 sec)



( 아래부터는 PowerDNS 사용할 테이블 생성 )

MariaDB [mysql]> use pdns; Database changed


MariaDB [pdns]> CREATE TABLE domains ( id INT AUTO_INCREMENT, name VARCHAR(255) NOT NULL, master VARCHAR(128) DEFAULT NULL, last_check INT DEFAULT NULL, type VARCHAR(6) NOT NULL, notified_serial INT DEFAULT NULL, account VARCHAR(40) DEFAULT NULL, PRIMARY KEY (id) ); Query OK, 0 rows affected (0.08 sec)


MariaDB [pdns]> CREATE UNIQUE INDEX name_index ON domains(name); Query OK, 0 rows affected (0.03 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE TABLE records ( id INT AUTO_INCREMENT, domain_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, type VARCHAR(10) DEFAULT NULL, content VARCHAR(64000) DEFAULT NULL, ttl INT DEFAULT NULL, prio INT DEFAULT NULL, change_date INT DEFAULT NULL, disabled TINYINT(1) DEFAULT 0, ordername VARCHAR(255) BINARY DEFAULT NULL, auth TINYINT(1) DEFAULT 1, PRIMARY KEY (id) ); Query OK, 0 rows affected (0.06 sec)


MariaDB [pdns]> CREATE INDEX nametype_index ON records(name,type); Query OK, 0 rows affected (0.05 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE INDEX domain_id ON records(domain_id); Query OK, 0 rows affected (0.02 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE INDEX recordorder ON records (domain_id, ordername); Query OK, 0 rows affected (0.03 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE TABLE supermasters ( ip VARCHAR(64) NOT NULL, nameserver VARCHAR(255) NOT NULL, account VARCHAR(40) NOT NULL, PRIMARY KEY (ip, nameserver) ); Query OK, 0 rows affected (0.04 sec)


MariaDB [pdns]> CREATE TABLE comments ( id INT AUTO_INCREMENT, domain_id INT NOT NULL, name VARCHAR(255) NOT NULL, type VARCHAR(10) NOT NULL, modified_at INT NOT NULL, account VARCHAR(40) NOT NULL, comment VARCHAR(64000) NOT NULL, PRIMARY KEY (id) );

Query OK, 0 rows affected (0.04 sec)


MariaDB [pdns]> CREATE INDEX comments_domain_id_idx ON comments (domain_id);

Query OK, 0 rows affected (0.03 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE INDEX comments_name_type_idx ON comments (name, type);

Query OK, 0 rows affected (0.01 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE INDEX comments_order_idx ON comments (domain_id, modified_at);

Query OK, 0 rows affected (0.02 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE TABLE domainmetadata (

id INT AUTO_INCREMENT, domain_id INT NOT NULL, kind VARCHAR(32), content TEXT, PRIMARY KEY (id) );

Query OK, 0 rows affected (0.07 sec)


MariaDB [pdns]> CREATE INDEX domainmetadata_idx ON domainmetadata (domain_id, kind);

Query OK, 0 rows affected (0.03 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> CREATE TABLE cryptokeys ( id INT AUTO_INCREMENT, domain_id INT NOT NULL, flags INT NOT NULL, active BOOL, content TEXT, PRIMARY KEY(id) ); Query OK, 0 rows affected (0.03 sec) MariaDB [pdns]> CREATE INDEX domainidindex ON cryptokeys(domain_id); Query OK, 0 rows affected (0.02 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [pdns]> CREATE TABLE tsigkeys ( id INT AUTO_INCREMENT, name VARCHAR(255), algorithm VARCHAR(50), secret VARCHAR(255), PRIMARY KEY (id) ); Query OK, 0 rows affected (0.02 sec) MariaDB [pdns]> CREATE UNIQUE INDEX namealgoindex ON tsigkeys(name, algorithm); Query OK, 0 rows affected (0.01 sec) Records: 0 Duplicates: 0 Warnings: 0


MariaDB [pdns]> quit Bye

PowerDNS(pdns.conf) 파일 설정

BASH

[root@localhost ~]# vi /etc/pdns/pdns.conf


215 ################################# 216 # launch Which backends to launch and order to query them in 217 # 218 # launch= 219 ( 아래와 같이 추가 ) 220 launch=gmysql 221 222 gmysql-host=localhost 223 gmysql-user=pdns 224 gmysql-password=test123 225 gmysql-dbname=pdns


:wq ( 저장 )

PowerDNS 활성화 및 서비스 시작

BASH

[root@localhost ~]# systemctl enable pdns.service ( 활성화 )

Created symlink from /etc/systemd/system/multi-user.target.wants/pdns.service to /usr/lib/systemd/system/pdns.service.


[root@localhost ~]# systemctl start pdns.service ( 서비스 시작 )


■ PowerAdmin ( PowerDNS 컨트롤할수 있는 웹 인터페이스 설치 )


설치하기전 종속패키지를 먼저 설치

BASH

[root@localhost ~]# yum install httpd php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mhash gettext -y

.

.

Installed: httpd.x86_64 0:2.4.6-45.el7.centos php.x86_64 0:5.4.16-42.el7 php-common.x86_64 0:5.4.16-42.el7 php-devel.x86_64 0:5.4.16-42.el7 php-gd.x86_64 0:5.4.16-42.el7 php-imap.x86_64 0:5.4.16-7.el7 php-ldap.x86_64 0:5.4.16-42.el7 php-mbstring.x86_64 0:5.4.16-42.el7 php-mcrypt.x86_64 0:5.4.16-7.el7 php-mysql.x86_64 0:5.4.16-42.el7 php-odbc.x86_64 0:5.4.16-42.el7 php-pear.noarch 1:1.9.4-21.el7 php-xml.x86_64 0:5.4.16-42.el7 php-xmlrpc.x86_64 0:5.4.16-42.el7 Dependency Installed: httpd-tools.x86_64 0:2.4.6-45.el7.centos libXpm.x86_64 0:3.5.11-3.el7 libc-client.x86_64 0:2007f-4.el7.1 libmcrypt.x86_64 0:2.5.8-13.el7 libtool-ltdl.x86_64 0:2.4.2-21.el7_2 libxslt.x86_64 0:1.1.28-5.el7 libzip.x86_64 0:0.10.1-8.el7 mailcap.noarch 0:2.1.41-2.el7 pcre-devel.x86_64 0:8.32-15.el7_2.1 php-cli.x86_64 0:5.4.16-42.el7 php-pdo.x86_64 0:5.4.16-42.el7 php-process.x86_64 0:5.4.16-42.el7 t1lib.x86_64 0:5.1.2-14.el7 unixODBC.x86_64 0:2.3.1-11.el7 Complete!


[root@localhost ~]# yum install php-pear-DB php-pear-MDB2-Driver-mysql -y

.

.

Installed: php-pear-DB.noarch 0:1.7.14-6.el7 php-pear-MDB2-Driver-mysql.noarch 0:1.5.0-0.8.b4.el7 Dependency Installed: php-pear-MDB2.noarch 0:2.5.0-0.9.b5.el7 Complete!

설치후 아파치( Apache ) 활성화 및 서비스 시작 ( 구동확인 )

BASH

[root@localhost ~]# systemctl enable httpd.service ( MariaDB 활성화 )

Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.


[root@localhost ~]# systemctl start httpd.service ( 서비스 시작 )

[root@localhost ~]# ps -ef | grep httpd ( 구동확인 )

root 29804 1 3 07:19 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND apache 29805 29804 0 07:19 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND apache 29806 29804 0 07:19 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND apache 29807 29804 0 07:19 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND apache 29808 29804 0 07:19 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND apache 29809 29804 0 07:19 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND root 29859 10975 0 07:20 pts/0 00:00:00 grep --color=auto httpd

기본설치 웹 경로로 이동후 Poweradmin 패키지 다운

BASH

[root@localhost ~]# cd /var/www/html ( 경로이동 )

[root@localhost ~]# wget http://downloads.sourceforge.net/project/poweradmin/poweradmin-2.1.7.tgz -bash: wget: command not found


( ... wget 설치 )

[root@localhost html]# yum install wget -y

.

.

Installed: wget.x86_64 0:1.14-13.el7 Complete!


( 다시 진행 )

[root@localhost ~]# wget http://downloads.sourceforge.net/project/poweradmin/poweradmin-2.1.7.tgz ( 파일다운 )

--2017-03-18 07:31:38-- https://nchc.dl.sourceforge.net/project/poweradmin/poweradmin-2.1.7.tgz Resolving nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)... 211.79.60.17, 2001:e10:ffff:1f02::17 Connecting to nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)|211.79.60.17|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 296469 (290K) [application/octet-stream] Saving to: ?쁯oweradmin-2.1.7.tgz?? 100%[==========================================================================================>] 296,469 1.71MB/s in 0.2s 2017-03-18 07:31:39 (1.71 MB/s) - ?쁯oweradmin-2.1.7.tgz??saved [296469/296469]


[root@localhost html]# tar xvf poweradmin-2.1.7.tgz ( 압축해제 ) .

.

poweradmin-2.1.7/sql/powerdns-sqlite-db-structure.sql poweradmin-2.1.7/style/ poweradmin-2.1.7/style/example.css poweradmin-2.1.7/users.php

웹접속을 위해 방화벽( iptables ) 80번 포트 허용

BASH

[root@localhost ~]# vi /etc/sysconfig/iptables


# sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT ( 추가 ) -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT


:wq ( 저장 )

BASH

[root@localhost ~]# service iptables restart ( 재시작 )

Redirecting to /bin/systemctl restart iptables.service


[root@localhost ~]# iptables -nL | grep 80 ( 적용확인 )

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80

웹에서 http://192.168.223.129/poweradmin-2.1.7/install/ 접속하여 설치를 진행합니다.






BASH

[root@localhost ~]# mysql -u root -p

Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 12 Server version: 10.1.22-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> GRANT SELECT, INSERT, UPDATE, DELETE -> ON pdns.* -> TO 'pdns'@'localhost' -> IDENTIFIED BY 'test123'; Query OK, 0 rows affected (0.00 sec)


(이미 위에서 등록했을경우는 안해도 됩니다.)


MariaDB [(none)]> quit Bye

다음 스탭에서 나오는 정보값을 그대로 config.inc.php 파일에 적용합니다.

BASH

[root@localhost ~]# cd /var/www/html/poweradmin-2.1.7/inc ( 경로이동 )


[root@localhost ~]# mv config-me.inc.php config.inc.php ( 파일이름변경 )


[root@localhost ~]# vi config.inc.php

.

.

( 아래 노란색 부분만 셋팅과 동일하게 설정 )

// NOTE: Do not edit this file, otherwise it's very likely your changes // will be overwritten with an upgrade. // Instead, create the file "inc/config.inc.php" and set the variables you // want to set there. Your changes will override the defaults provided by us. // Better description of available configuration settings you can find here: // <https://github.com/poweradmin/poweradmin/wiki/Configuration-File> // Database settings $db_host = 'localhost'; $db_port = '3306'; $db_user = 'pdns'; $db_pass = 'test123'; $db_name = 'pdns'; $db_type = 'mysql'; //$db_file = ''; # used only for SQLite, provide full path to database file //$db_debug = false; # show all SQL queries $db_layer = 'PDO'; # or MDB2 //$db_ssl_ca = ''; // Security settings // This should be changed upon install $session_key = 'px(7V7{-QCJ4xLtlC2sK1K+EkBcC-Ng-CUuKKdHN}Y@8aD'; $password_encryption = 'md5'; // or md5salt // Interface settings $iface_lang = 'en_EN'; $iface_style = 'example'; $iface_rowamount = 50; $iface_expire = 1800; $iface_zonelist_serial = false; $iface_title = 'Poweradmin'; $iface_add_reverse_record = true; // Predefined DNS settings $dns_hostmaster = 'testdns'; $dns_ns1 = 'ns1.testdns.com'; $dns_ns2 = 'ns2.testdns.com'; $dns_ttl = 86400; $dns_fancy = false; $dns_strict_tld_check = false; $dns_top_level_tld_check = false; // Don't allow to create top level TLDs $dns_third_level_check = false;


:wq ( 저장 )

마지막으로 STEP7 에서 안내하는 문구를 따라 마무리를 합니다.

다른 동적 DNS 공급자가 사용하는 URL을 지원 사용하기 위해 다음과 같이 실행

BASH

[root@localhost ~]# cd /var/www/html/poweradmin-2.1.7 ( 경로이동 )


[root@localhost ~]# cp install/htaccess.dist .htaccess ( 동적 DNS 공급사용 )


[root@localhost ~]# rm -rf /var/www/html/poweradmin-2.1.7/install ( 설치파일 삭제 )


■ 사이트 확인 및 존파일 추가 삭제 테스트

웹에서 http://192.168.223.129/poweradmin-2.1.7/ 접속을 합니다.


로그인후 [Add master zone] 클릭하여 도메인 존파일 추가



[List zones] 클릭하면 존파일 생성을 확인할수 있습니다.



쓰래기통 모양을 누르면 지울수가 있습니다.



정상 삭제되었습니다. 


□ Error 는 무시하셔도 되나 거슬린다면 다음과 같이 진행 

BASH

[root@localhost ~]# vi /var/www/html/poweradmin-2.1.7/delete_domain.php

.

.

67 } 68 69 echo " <h2>" . _('Delete zone') . " \"" . $zone_info['name'] . "\"</h2>\n"; 70 71 if ($confirm == '1') { 72 if ($zone_info['type'] == 'MASTER') { 73 $zone_name = get_zone_name_from_id($zone_id); 74 dnssec_unsecure_zone($zone_name); ( 해당라인삭제후 ) 75 } 76

.

.


:wq ( 저장 )

이후 삭제시 더이상 Error 발생하지 않습니다.



참고하시기 바랍니다.

지적 및 오타 정보공유 감사합니다.



댓글을 달아 주세요