Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 17:38:30

Author Topic: bingung setting 'secondary dns'  (Read 8935 times)

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #15 on: 2015-12-07, 05:21:29 »
server 1 berhasil ganti bind ke nsd

server 2 malah muncul error ini pak waktu mau ganti
Alert: remove_failed [bind]

coba sh /script/restart-dns
Code: [Select]
[root@uthman /]# sh /script/restart-dns -y

- For help, type '/script/restart-dns [--help|-h]'
[root@uthman /]#

coba sh /script/restart-all
Code: [Select]
[root@uthman /]# sh /script/restart-all -y

Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
-------------------------------------------------------------------

Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
-------------------------------------------------------------------

Stopping php-fpm:                                          [  OK  ]
pkill to make sure stopped
Starting php-fpm:                                          [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------

Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
-------------------------------------------------------------------

* kloxo-phpcgi ('php54s' in 'cgi' mode): No need to start
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
-------------------------------------------------------------------
[root@uthman /]#

namednya hilang sepertinya pak
padahal di component list masih ada


tapi di services statusnya mati
« Last Edit: 2015-12-07, 05:31:19 by Wibowo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #16 on: 2015-12-07, 05:36:16 »
Coba lakukan 'yum remove bind* -y; yum reinstall nsd -y; sh /script/fixdns; sh /script/restart-dns -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #17 on: 2015-12-07, 05:45:20 »
masih seperti sebelumnya setelah restart pak

service status di control panel


hasil sh /script/restart-dns -y
Code: [Select]
[root@uthman /]# sh /script/restart-dns -y

- For help, type '/script/restart-dns [--help|-h]'
[root@uthman /]#

hasi sh /script/restart-all -y
Code: [Select]
[root@uthman /]# sh /script/restart-all -y

Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
-------------------------------------------------------------------

Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
-------------------------------------------------------------------

Stopping php-fpm:                                          [  OK  ]
pkill to make sure stopped
Starting php-fpm:                                          [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------

Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
-------------------------------------------------------------------

* kloxo-phpcgi ('php54s' in 'cgi' mode): No need to start
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
-------------------------------------------------------------------
[root@uthman /]#

nsd menghilang dari restart-all pak

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #18 on: 2015-12-08, 03:03:03 »
Coba 'chkconfig nsd on; sh /script/restart-dns -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #19 on: 2015-12-08, 03:31:31 »
saya coba rebuild servernya, install ulang kloxomr, coba add lagi 'Secondary DNS Config'

ternyata nsd dan bind samasekali tidak membuat entry di file
bind = named.slave.conf
nsd = nsd.slave.conf

setelah sh /script/fixdns dan sh /script/restart-dns juga sama, masih tetap kosong

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #20 on: 2015-12-08, 03:51:25 »
Coba kedua2nya pakai nsd. Setelah fixdns maka jalankan 'restart-dns' dan 'restart-dns -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #21 on: 2015-12-08, 04:04:58 »
sudah pak
dua2nya sudah pakai nsd
tapi di server 2, setelah dibuat secondary dns, file /opt/configs/nsd/conf/defaults/nsd.slave.conf tetap kosong



saya tes di server 1 jadi secondary dns untuk domain lain
misal kaskus.com
panel menulis konten seperti ini di /opt/configs/nsd/conf/defaults/nsd.slave.conf

Code: [Select]
zone:
    name: satriyowibowo.my.id
    zonefile: slave/satriyowibowo.my.id
    allow-notify: 8.254.194.34 NOKEY
    request-xfr: 8.254.194.34@53 NOKEY

server 2 tidak pernah menulis konfigurasi ke file nsd.slave.conf
sehingga peran secondary dns tidak akan berjalan
« Last Edit: 2015-12-08, 04:51:03 by Wibowo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #22 on: 2015-12-08, 04:12:22 »
Ini bisa jadi server1 menolak request dari server2.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #23 on: 2015-12-08, 04:31:02 »
bukannya server 2 yg gagal menulis konfigurasi ke file nsd.slave.conf ya pak?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #24 on: 2015-12-08, 04:48:35 »
bukannya server 2 yg gagal menulis konfigurasi ke file nsd.slave.conf ya pak?
Kegagalan bisa jadi karena tidak menerima request dari server1.

Coba saja tambahkan secara manual isian pada nsd.slave.conf seperti hasil yang anda dapatkan untuk kaskus.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #25 on: 2015-12-08, 05:05:16 »
tapi dari server 1 bisa ke puck.nether pak
berarti kan server 1 'menyediakan' dns resource/axfr untuk ke server lain


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #26 on: 2015-12-08, 05:18:15 »
Coba lakukan lagi 'sh /script/fixdns; sh /script/restart-dns -y; sh /script/restart-dns' di kedua server (tentunya server1 terlebih dahulu).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #27 on: 2015-12-08, 06:14:20 »
di server 2 muncul error seperti ini pak

Code: [Select]
*** Process for NSD service ***
Starting nsd:                                              [FAILED]
  - Process with 'nsd-control': transfer + write + reload + notify
    - transfer: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
    - write: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
    - reload: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
    - notify: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
-------------------------------------------------------------------

ada file konfigurasi yang hilang dari nsd
« Last Edit: 2015-12-08, 06:16:42 by Wibowo »

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: bingung setting 'secondary dns'
« Reply #28 on: 2015-12-08, 06:27:42 »
bukannya server 2 yg gagal menulis konfigurasi ke file nsd.slave.conf ya pak?
Kegagalan bisa jadi karena tidak menerima request dari server1.

Coba saja tambahkan secara manual isian pada nsd.slave.conf seperti hasil yang anda dapatkan untuk kaskus.

jika ditulis manual ke file konfigurasi slave, (nsd.slave.conf atau named.slave.conf) ini yg terjadi pak

nsd
Code: [Select]
*** Process for NSD service ***
Starting nsd:                                              [FAILED]
  - Process with 'nsd-control': transfer + write + reload + notify
    - transfer: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
    - write: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
    - reload: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
    - notify: /etc/nsd/nsd.conf:43: error: cannot open include file '/opt/configs/nsd/conf/defaults/nsd.reverse.conf': No such file or directory
read /etc/nsd/nsd.conf failed: 1 errors in configuration file
could not read config file
-------------------------------------------------------------------

- For help, type '/script/restart-dns [--help|-h]'

bind
Code: [Select]
[root@ali defaults]# sh /script/restart-dns

*** Process for BIND service ***
  - No need started
  - Process : restart
Stopping named: .                                          [  OK  ]
Starting named:
Error in named configuration:
/opt/configs/bind/conf/defaults/named.options.conf:29: undefined ACL 'allow-notify'
                                                           [FAILED]
-------------------------------------------------------------------

- For help, type '/script/restart-dns [--help|-h]'
[root@ali defaults]#

keliatannya kesalahan memang ada di panel
file2 konfigurasi yang seharusnya dibuat saat install atau ditulis ulang saat perintah diberikan
gagal dilakukan oleh panel
makanya muncul error
dan anehnya cuma terjadi di server US

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: bingung setting 'secondary dns'
« Reply #29 on: 2015-12-08, 06:35:50 »
Coba 'sh /script/cleanup'. Ini karena ada sesuatu yang tidak utuh. Jika di server2 tidak ada domain/subdomain coba pakai saja 'dummy' domain.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.035 seconds with 18 queries.

web stats analysis