No subject
Tue Apr 2 00:56:56 UTC 2013
Nov 7 22:49:41 vcserver1 named[707]: Nov 07 22:49:41.368 network: info: listening on IPv4 interface ppp0, 203.162.51.101#53
Nov 7 22:49:41 vcserver1 named[707]: Nov 07 22:49:41.369 network: info: no longer listening on 203.162.51.161#53
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.556 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.557 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.localhost IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.559 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.vdc-hn01.vnn.vn IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.560 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.hcm-server1-vnn.vn IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.566 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn IN MX
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.567 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.localhost IN MX
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.568 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.vdc-hn01.vnn.vn IN MX
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.569 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.hcm-server1-vnn.vn IN MX
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.570 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.571 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.localhost IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.571 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.vdc-hn01.vnn.vn IN ANY
Nov 7 22:49:47 vcserver1 named[707]: Nov 07 22:49:47.572 queries: info: client 127.0.0.1#1088: query: hcm.vnnvn.hcm-server1-vnn.vn IN ANY
Nov 7 22:50:20 vcserver1 named[707]: Nov 07 22:50:20.903 queries: info: client 192.168.8.3#1454: query: mail.hostonce.org IN A
Nov 7 22:50:24 vcserver1 named[707]: Nov 07 22:50:24.912 queries: info: client 192.168.8.3#1454: query: mail.hostonce.org IN A
Nov 7 22:50:29 vcserver1 pppd[1803]: Terminating on signal 15.
<cut>
Configuration Files
===================
[root at vcserver1 0.installed]# cat /etc/hosts
# TEST LOCAL DOMAIN: viceconsulting.cam, not .cOm!!!!
# Change before using registered domain name
127.0.0.1 localhost.localdomain localhost
192.168.8.1 vcserver1.viceconsulting.cam vcserver1
192.168.8.3 vcws01.viceconsulting.cam vcws01
192.168.8.9 vcmob01.viceconsulting.cam vcmob01
#eof
[root at vcserver1 0.installed]# cat /etc/resolv.conf
search localhost vdc-hn01.vnn.vn hcm-server1-vnn.vn
nameserver 127.0.0.1
nameserver 203.162.0.11
nameserver 203.162.4.1
[root at vcserver1 0.installed]# cat /etc/named.conf
// based on
// "/var/www/html/DNS/bind9secured/bind/named.conf.primary"
// "/var/www/html/DNS/linux.nf/bind.html", for logging
// "/usr/share/doc/bind-9.1.3/doc/arm/Bv9ARM.html"
acl "nameservers" {
localhost;
// my primary
192.168.8.1;
// Internet & ISP:
203.162.0.11; //vdc-hn01.vnn.vn
203.162.4.1; //hcm-server1.vnn.vn
};
options {
directory "/var/named";
// query-source address * port 53;
pid-file "/var/run/named/named.pid";
stacksize 30M;
datasize 20M;
auth-nxdomain yes; // v9 wants this?
dump-file "/var/tmp/named_dump.db";
allow-transfer { nameservers; }; // this limits ALL zones
transfer-format many-answers; // faster transfers
version "This is not a [VICE]-8"; // hide BIND version
forwarders { 203.162.0.11; 203.162.4.1; };
};
controls {
inet 127.0.0.1
port 953
allow { localhost; }
keys { key_rndc; };
};
logging {
channel named_info {
syslog;
print-category yes;
print-severity yes;
print-time yes;
};
// Processing of client requests
category client { named_info; };
// named.conf parsing and processing
category config { named_info; };
// This is the default for any category not specifically defined
category default { named_info; };
// The catch-all -- anything without a category of its own
category general { named_info; };
// Comment out if you don't want to know about any lame server
category lame-servers { named_info; };
// The NOTIFY protocol
category notify { named_info; };
// Network operations
category network { named_info; };
// DNS resolution like recursive lookups, etc
category resolver { named_info; };
// Approval and denial of requests
category security { named_info; };
// Dynamic updates
category update { named_info; };
// Queries. Duh?
category queries { named_info; };
// Zone transfers received
category xfer-in { named_info; };
// Zone transfers sent
category xfer-out { named_info; };
};
/////////////////// default zones //////////////////////////
// this is the main file for the domain name server. Each line gives
// the file where is stored the name table for a particular domain.
// a caching only nameserver config
// localhost loopback
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
// reverse mapping of loopback address
zone "0.0.127.in-addr.arpa" IN {
type master;
file "localhost.rev";
notify no;
allow-update { none; };
};
//////////////// primaries //////////////////////
// Transfer ACLs are governered globally above
zone "viceconsulting.cam" {
type master;
file "viceconsulting.cam";
allow-update { none; };
};
// reverse mapping -- using
// info from example file "rev.192.168.128" in bind9secured
//
zone "8.168.192.in-addr.arpa" IN {
type master;
file "rev.192.168.8";
};
// Validation Key Section
// NOTE: "key" statement not included in
// "/var/www/html/DNS/bind9secured/bind/named.conf.primary"
//
key key_rndc {
algorithm hmac-md5;
secret "<cut>";
};
//eof
[root at vcserver1 named]# cat /etc/rndc.conf
/*
* Based on - Sample rndc configuration file, bind-9.1.0 rpm
*/
options {
default-server localhost;
default-key key_rndc;
};
//server localhost {
// key key_rndc;
//};
key key_rndc {
algorithm hmac-md5;
secret "<cut>";
};
// eof
[root at vcserver1 named]# cat local* vice* rev* >/root/bind/zones
[root at vcserver1 bind]# cat /root/bind/zones
$TTL 86400
@ IN SOA localhost. root.localhost. (
200108200 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
; eof
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
; eof
$TTL 86400
@ IN SOA vcserver1.viceconsulting.cam. root.viceconsulting.cam. (
2001102001 ; Serial number YYYYMMDDSN
28800 ; Refresh every 8 hours
14400 ; Retry every 4 hours
3600000 ; Expire after 42 days
3600 ) ; Minimum TTL (Time to live)
; Nameservers
IN NS ns.viceconsulting.cam.
IN MX 10 mail.viceconsulting.cam.
ns IN A 192.168.8.1
mail IN A 192.168.8.1
www IN A 192.168.8.1
; Local lan
vcserver1 IN A 192.168.8.1
vcws01 IN A 192.168.8.3
vcmob01 IN A 192.168.8.9
; eof
; /var/named/viceconsulting.cam, NOT .cOm
;
$TTL 86400 ; Default TTL in secs (1 day)
@ IN SOA vcserver1.viceconsulting.cam. root.viceconsulting.cam. (
2001102001 ; Serial number YYYYMMDDSN
28800 ; Refresh every 8 hours
14400 ; Retry every 4 hours
3600000 ; Expire after 42 days
3600 ) ; Minimum TTL (Time to live)
; Descriptions of name servers for this domain
IN NS ns.viceconsulting.cam.
ns IN A 192.168.8.1
; Reverse lookups
1 PTR vcserver1.viceconsulting.cam.
3 PTR vcws01.viceconsulting.cam.
9 PTR vcmob01.viceconsulting.cam.
; eof
<end>
*--------------------------------------------------*
AD Marshall, VietInfoComm&Edu [VICE]-8 Consulting
Vietnam Information Communications & Education
Post: 8A/G8 Don Dat, Q.1, TpHCM, VietNam
eMail: mailto:ad.vice at paradoxcafe.com
Web: http://paradoxcafe.net
Cell: +84 (0)903871313
More information about the bind-users
mailing list