https://www.isc.org/download
http://www.zytrax.com/books/dns/ch7/
http://www.zytrax.com/books/dns/ch8/ptr.html
tar -xvzf bind-9.6.0-P1.tar.gz
whereis named
touch named.txt
chmod 700 named.txt
----------------------------
if [ ! $1 ]
then
killall named 2>/dev/null
killall named 2>/dev/null
killall named 2>/dev/null
sleep 2
/sbin/named -c /etc/bind/named.conf
else
killall named 2>/dev/null
killall named 2>/dev/null
killall named 2>/dev/null
fi
http://tldp.org/HOWTO/DNS-HOWTO-7.html
----------------------------
./named.txt 1
./named.txt
----------------------------
Anksciau:
/var/lib/named
dabar
/etc/bind/
zone "lrytas.lt" {
type master;
file "lrytas.lt.db";
// IP addresses of slave servers allowed to transfer example.com
//allow-transfer {
//192.168.4.14;
//192.168.5.53;
//};
};
zone "example.com" in{
type slave;
file "sec/sec.example.com";
masters {192.168.23.17;};
};
TTL The time-to-live of the RR. This field is a 32-bit integer in
units of seconds, and is primarily used by resolvers when
they cache RRs. The TTL describes how long a RR can be
cached before it should be discarded.
A host address.
PTR A pointer to another part of the domain name space.
CNAME Identifies the canonical name of an alias.
MX Identifies a mail exchange for the domain.
SOA The last field in the SOA is the negative caching TTL. This controls how
long other servers will cache no-such-domain (NXDOMAIN) responses
from you.
The maximum time for negative caching is 3 hours (3h).
$TTL The $TTL directive at the top of the zone file (before the SOA) gives a
default TTL for every RR without a specific TTL set.
dig @server example.com
dig @server -b 10.0.1.10
dig +trace @server www.lrytas.lt
dig +trace @server lrytas.lt MX
host example.com
host -r MX example.com
host -r MX example.com 10.0.1.10
/etc/resolv.conf
nameserver 10.0.1.54
named-checkconf
named-checkzone