Zone Transfer Example

Slave file

// $FreeBSD: src/etc/namedb/named.conf,v 1.15.2.3 2005/03/23 17:35:58 dougb Exp $ // // Refer to the named.conf(5) and named(8) man pages, and the documentation // in /usr/share/doc/bind9 for more details.
//
// If you are going to set up an authoritative server, make sure you // understand the hairy details of how DNS works. Even with // simple mistakes, you can break connectivity for affected parties, // or cause huge amounts of useless Internet traffic.

key "key" {
algorithm hmac-md5;
secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};

options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";

// If named is being used only as a local resolver, this is a safe default.
// For named to be accessible to the network, comment this option, specify // the proper IP address, or delete this option.
listen-on { 127.0.0.1; };

// If you have IPv6 enabled on this system, uncomment this option for // use as a local resolver. To give access to the network, specify // an IPv6 address, or the keyword "any".
// listen-on-v6 { ::1; };

// In addition to the "forwarders" clause, you can force your name // server to never initiate queries of its own, but always ask its // forwarders only, by enabling the following line:
//
// forward only;

// If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet.

forwarders {
212.117.128.6;
192.116.16.26;
};

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND versions 8 and later
* use a pseudo-random unprivileged UDP port by default.
*/
//query-source address * port 53; };

// If you enable a local name server, don't forget to enter 127.0.0.1 // first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.


logging {
category lame-servers { null; };
category cname { null; };
category default { default_syslog; default_debug; };
category panic { default_syslog; default_stderr; };
// category packet { default_debug; };
category eventlib { default_debug; }; }; zone "shaml.org" { type slave; file "bak/shaml.org";masters { 192.116.16.26; };};


And here is the Master


options {
directory "/etc/namedb";
forwarders {
#212.150.48.169;
212.117.128.6;
206.49.94.234;
#192.116.2.100;
};

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;

allow-transfer { 217.66.226.29; 217.66.231.15; 209.246.62.150; 212.106.64.7; 216.145.226.212; 63.99.217.20; 192.116.16.17; 2 17.66.232.98; 217.66.224.5; 209.242.0.183; 192.116.16.26; 212.29.201.4; 217.66.226.8; 206.49.94.234; 207.13.11.2; 192.116.16.90; 208 .162.200.4; 206.49.94.213; 212.29.201.11; 194.90.1.5; 192.231.91.1; 192.231.91.2; 213.244.124.3; 192.116.18.25; 212.29.201.34; 192.2 31.91.0/24; 192.116.16.7; 212.29.201.7; 192.116.16.90; 192.116.19.213; 204.255.25.63; 128.139.6.1; 132.66.32.10; 193.0.0.193; 194.90 .1.49;};


};
logging {
category lame-servers { null; };
category cname { null; };
category default { default_syslog; default_debug; };
category panic { default_syslog; default_stderr; };
// category packet { default_debug; };
category eventlib { default_debug; }; };

I found these logs in the messages log file

Mar 14 10:38:50 dns1 named[4396]: dns_rdata_fromtext: buffer-0xbfaeb520:1:
near eof: unexpected end of input
Mar 14 10:38:50 dns1 named[4396]: dns_sdlz_putrr returned error. Error code
was: unexpected end of input
Mar 14 10:38:50 dns1 named[4396]: dns_rdata_fromtext: buffer-0xbfaeb520:1:
near eof: unexpected end of input
Mar 14 10:38:50 dns1 named[4396]: dns_sdlz_putrr returned error. Error code
was: unexpected end of input
Mar 14 10:38:59 dns1 named[4396]: dns_rdata_fromtext: buffer-0xbfaeb520:1:
near eof: unexpected end of input
Mar 14 10:38:59 dns1 named[4396]: dns_sdlz_putrr returned error. Error code
was: unexpected end of input


  Latest articles

Views, Tsigs and updates on 9.3.2

Multi sub-domain -> same ip

Ze Network © 2007 Free Space Australia Inc. All rights reserved.

   Wallpaper World   Tran Community