LAB 28: SAMBA INTEGRATION WITH DNS – Configurations
Install ADDS and DNS on DC2012.
Check DNS Server on DC2012.
vi /etc/named.conf
:set nu
zone “dalaris.com” IN {
type master;
file “forward.dalaris.com”;
allow-update {any; };
}
Do the same thing for the reverse zone.
Copy forward zone to another block 7 times.
zone “DomainDNSZones.dalaris.com” IN {
type master;
file “DomainDNSZones.dalaris.com”;
allow-update {any; };
}
zone “ForestDNSZones.dalaris.com” IN {
type master;
file “ForestDNSZones.dalaris.com”;
allow-update {any; };
}
zone “_msdcs.dalaris.com” IN {
type master;
file “_msdcs.dalaris.com”;
allow-update {any; };
}
zone “_tcp.dalaris.com” IN {
type master;
file “_tcp.dalaris.com”;
allow-update {any; };
}
zone “_udp.dalaris.com” IN {
type master;
file “_udp.dalaris.com”;
allow-update {any; };
}
zone “_sites.dalaris.com” IN {
type master;
file “_sites.dalaris.com”;
allow-update {any; };
}
Now we will create DNS Zone files
cd /var/named
vi dalaris.db
cp dalaris.db DomainDNSZones.dalaris.db
vi DomainDNSZones.dalaris.db
Change @ to
DomainDNSZones.dalaris.com. IN SOA … (note the dot at the end)
remove all A and CNAME records
Type: $ORIGIN DomainDNSZones.dalaris.com. (note the dot at the end)
cp DomainDNSZones.dalaris.com ForestDNSZones.dalaris.db
vi ForestDNSZones.dalaris.db
Change @ to
ForestDNSZones.dalaris.com. IN SOA … (note the dot at the end)
remove all A and CNAME records
Type: $ORIGIN ForestDNSZones.dalaris.com. (note the dot at the end)
cp ForestDNSZones.dalaris.com _tcp.dalaris.com
Modify file
cp _tcp.dalaris.com _udp.dalaris.com
Modify file
cp _udp.dalaris.com _sites.dalaris.com
Modify file
cp _udp.dalaris.com _msdcs.dalaris.com
Modify file
You should have 7 zone files.
service named restart
If not working, check zone:
named-checkzone _tcp.dalaris.com
tail /var/log/messages
ll named/
chmod 770 –R named/
var# chown named.named named/*