본문 바로가기

728x90

네임서버

[리눅스] named(bind) zone file ip change scripte named(bind) zone file ip change scripte vim ipswap.sh #!/bin/bash for files in `ls /var/named/aa04` do sed "s/10.0.10.124/192.168.0.20/g" $files > /tmp/named/aa04/$files done 더보기
[리눅스] named(bind)에 geoip 기능 사용하기 named(bind)에 geoip 기능 사용하기 yum install gcc epel-release yum install zlib-devel openssl-devel yum install GeoIP GeoIP-devel yum install bind bind-utils [bind download site] http://ftp.isc.org/isc/bind9/9.10.4-P6/ cd /usr/local/src/ wget http://ftp.isc.org/isc/bind9/9.10.4-P6/bind-9.10.4-P6.tar.gz tar xfz bind-9.10.4-P6.tar.gz cd bind-9.10.4-P6 ./configure --prefix=/usr/local/bind-9.10.4-P6 --sysc.. 더보기
[리눅스] named(bind) 백업 스크립트 named(bind) 백업 스크립트 vim dns_backup.sh #!/bin/bash set -x DIR="fvm01.scbyun.com-`date +%Y%m%d`" cd /root/.nl/ mkdir $DIR mkdir $DIR/sbin mkdir $DIR/etc cp -rpf /var/named $DIR cp /etc/named.conf $DIR/etc cp /etc/named.logging.conf $DIR/etc cp /etc/named.root.key $DIR/etc cp /etc/named.iscdlv.key $DIR/etc cp /etc/rndc.* $DIR/etc cp /usr/sbin/named $DIR/sbin #cp -pr /usr/local/nbind $DIR #rm -rf $D.. 더보기
[리눅스] bind(bind9) 설치 및 설정 bind(bind9) 설치 및 설정 테스트 환경 $ lsb_release -a No LSB modules are available. Distributor ID:Ubuntu Description:Ubuntu 22.04.1 LTS Release:22.04 Codename:jammy bind9 패키지 설치 apt install bind9 설치된 패키지(bind9) 목록 확인 apt list --installed bind9 $ apt list --installed bind9 Listing... Done bind9/jammy-updates,jammy-security,now 1:9.18.1-1ubuntu1.2 amd64 [installed] N: There is 1 additional version. Please .. 더보기