본문 바로가기

728x90

bind

[리눅스] bind(named) 기본 파일 확장자: $GENERATE 지시어 bind(named) 기본 파일 확장자: $GENERATE 지시어 172.20.0.0/24 역도메인(reverse domain) zonefile 생성 named.conf(/etc/bind/named.conf) 편집 vim /etc/bind/named.conf zone "0.20.172.in-addr.arpa" { type master; file "172.20.0.zone"; }; 172.20.0.zone(/var/cache/bind/172.20.0.zone) 편집 vim /var/cache/bind/172.20.0.zone $TTL60 $ORIGIN 0.20.172.IN-ADDR.ARPA. @INSOAlocalhost. root.localhost. ( 2022112307; Serial 604800; Re.. 더보기
[리눅스] 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 .. 더보기
[명령어] whois 명령어 whois 명령어 whois(whois-5.1.1) 패키지 설치 개선된 WHOIS 클라이언트 $ yum install -y whois $ whois --version Version 5.1.1. Report bugs to . Usage: whois [OPTION]... OBJECT... $ whois --help Usage: whois [OPTION]... OBJECT... -h HOST, --host HOST connect to server HOST -p PORT, --port PORT connect to PORT -H hide legal disclaimers --verbose explain what is being done --help display this help and exit --version .. 더보기