⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genzone.sh

📁 bind 9.3结合mysql数据库
💻 SH
字号:
#!/bin/sh## Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")# Copyright (C) 2001-2003  Internet Software Consortium.## Permission to use, copy, modify, and distribute this software for any# purpose with or without fee is hereby granted, provided that the above# copyright notice and this permission notice appear in all copies.## THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR# PERFORMANCE OF THIS SOFTWARE.# $Id: genzone.sh,v 1.3.202.4 2004/03/08 04:04:33 marka Exp $## Set up a test zone## Usage: genzone.sh master-server-number slave-server-number...## e.g., "genzone.sh 2 3 4" means ns2 is the master and ns3, ns4# are slaves.#master="$1"cat <<EOF\$TTL 3600@		86400	IN SOA	ns${master} hostmaster (					1397051952 ; "SER0"					5					5					1814400					3600 )EOFfor ndo	cat <<EOF@			NS	ns${n}ns${n}			A	10.53.0.${n}EOFdonecat <<\EOF; type 1a01			A	0.0.0.0a02			A	255.255.255.255; type 2; see NS records at top of file; type 3; md01			MD	madname; 			MD	.; type 4; mf01			MF	madname; mf01			MF	.; type 5cname01			CNAME	cname-target.cname02			CNAME	cname-targetcname03			CNAME	.; type 6; see SOA record at top of file; type 7mb01			MG	madnamemb02			MG	.; type 8mg01			MG	mgmnamemg02			MG	.; type 9mr01			MR	mrnamemr02			MR	.; type 10; NULL RRs are not allowed in master files per RFC1035.;null01			NULL; type 11wks01			WKS	10.0.0.1 tcp telnet ftp 0 1 2wks02			WKS	10.0.0.1 udp domain 0 1 2wks03			WKS	10.0.0.2 tcp 65535; type 12ptr01			PTR	@; type 13hinfo01			HINFO	"Generic PC clone" "NetBSD-1.4"hinfo02			HINFO	PC NetBSD; type 14minfo01			MINFO	rmailbx emailbxminfo02			MINFO	. . ; type 15mx01			MX	10 mailmx02			MX	10 .; type 16txt01			TXT	"foo"txt02			TXT	"foo" "bar"txt03			TXT	footxt04			TXT	foo bartxt05			TXT	"foo bar"txt06			TXT	"foo\032bar"txt07			TXT	foo\032bartxt08			TXT	"foo\010bar"txt09			TXT	foo\010bartxt10			TXT	foo\ bartxt11			TXT	"\"foo\""txt12			TXT	\"foo\"; type 17rp01			RP	mbox-dname txt-dnamerp02			RP	. . ; type 18afsdb01			AFSDB	0 hostnameafsdb02			AFSDB	65535 .; type 19x2501			X25	123456789;x2502			X25	"123456789"; type 20isdn01			ISDN	"isdn-address"isdn02			ISDN	"isdn-address" "subaddress"isdn03			ISDN	isdn-addressisdn04			ISDN	isdn-address subaddress; type 21rt01			RT	0 intermediate-hostrt02			RT	65535 .; type 22nsap01			NSAP	(	0x47.0005.80.005a00.0000.0001.e133.ffffff000161.00 )nsap02			NSAP	(	0x47.0005.80.005a00.0000.0001.e133.ffffff000161.00. );nsap03			NSAP	0x; type 23nsap-ptr01		NSAP-PTR foo.nsap-ptr01		NSAP-PTR .; type 24;sig01			SIG	NXT 1 3 ( 3600 20000102030405;				19961211100908 2143 foo.nil. ;				MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45I;				kskceFGgiWCn/GxHhai6VAuHAoNUz4YoU1t;				VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= ); type 25;key01			KEY	512 ( 255 1 AQMFD5raczCJHViKtLYhWGz8hMY;				9UGRuniJDBzC7w0aRyzWZriO6i2odGWWQVucZqKV;				sENW91IOW4vqudngPZsY3GvQ/xVA8/7pyFj6b7Esg;				a60zyGW6LFe9r8n6paHrlG5ojqf0BaqHT+8= ); type 26px01			PX	65535 foo. bar.px02			PX	65535 . .; type 27gpos01			GPOS    -22.6882 116.8652 250.0gpos02			GPOS    "" "" ""; type 29loc01			LOC	60 9 N 24 39 E 10 20 2000 20loc02			LOC 	60 09 00.000 N 24 39 00.000 E 10.00m 20.00m (				  2000.00m 20.00m ); type 30;nxt01			NXT	a.secure.nil. ( NS SOA MX RRSIG KEY LOC NXT );nxt02			NXT	. NXT NSAP-PTR;nxt03			NXT	. 1;nxt04			NXT	. 127; type 33srv01			SRV 0 0 0 .srv02			SRV 65535 65535 65535  old-slow-box; type 35naptr01			NAPTR   0 0 "" "" "" . naptr02			NAPTR   65535 65535 blurgh blorf blegh foo.naptr02			NAPTR   65535 65535 "blurgh" "blorf" "blegh" foo.; type 36kx01			KX	10 kdckx02			KX	10 .; type 37cert01			CERT	65534 65535 254 ( 				MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45I				kskceFGgiWCn/GxHhai6VAuHAoNUz4YoU1t				VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= ); type 38a601			A6	0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffffa601			A6	64 ::ffff:ffff:ffff:ffff foo.a601			A6	127 ::1 foo.a601			A6	128 .; type 39dname01			DNAME	dname-target.dname02			DNAME	dname-targetdname03			DNAME	.; type 41; OPT is a meta-type and should never occur in master files.; type 46rrsig01			RRSIG	NSEC 1 3 ( 3600 20000102030405				19961211100908 2143 foo.nil. 				MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45I				kskceFGgiWCn/GxHhai6VAuHAoNUz4YoU1t				VfSCSqQYn6//11U6Nld80jEeC8aTrO+KKmCaY= ); type 47nsec01			NSEC	a.secure.nil. ( NS SOA MX RRSIG DNSKEY LOC NSEC )nsec02			NSEC	. NSEC NSAP-PTRnsec03			NSEC	. TYPE1nsec04			NSEC	. TYPE127; type 48dnskey01		DNSKEY	512 ( 255 1 AQMFD5raczCJHViKtLYhWGz8hMY				9UGRuniJDBzC7w0aRyzWZriO6i2odGWWQVucZqKV				sENW91IOW4vqudngPZsY3GvQ/xVA8/7pyFj6b7Esg				a60zyGW6LFe9r8n6paHrlG5ojqf0BaqHT+8= ); type 249; TKEY is a meta-type and should never occur in master files.; The text representation is not specified in the draft.; This example was written based on the bind9 RR parsing code.;tkey01			TKEY	928321914 928321915 (;				255		; algorithm;				65535 		; mode;				0		; error;				3 		; key size;				aaaa		; key data;				3 		; other size;				bbbb		; other data;				);; A TKEY with empty "other data";tkey02			TKEY	928321914 928321915 (;				255		; algorithm;				65535 		; mode;				0		; error;				3 		; key size;				aaaa		; key data;				0 		; other size;						; other data;				); type 255; TSIG is a meta-type and should never occur in master files.EOF

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -