auto eth0:1
iface eth0:1 inet static
address x.x.x.x
netmask 255.255.255.0
broadcast x.x.x.255
network x.x.x.0
$ORIGIN .
$TTL 3600 ; 1 hour
dev IN SOA ns.dev. it.test.dev. (
2014090603 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
1209600 ; expire (2 weeks)
86400 ; minimum (1 day)
)
NS ns.dev.
NS ns2.di-house.ru.
A 192.168.1.7
$ORIGIN dev.
ns A 192.168.103.6
test A 192.168.1.7
# named-checkzone dev dev
zone dev/IN: loaded serial 2014090603
OK
# nslookup dev
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: dev
Address: 192.168.1.7
2# nslookup ns.dev
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: ns.dev
Address: 192.168.103.6
# nslookup test.dev
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: test.dev
Address: 192.168.1.7