service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
127.0.0.zone:7: ignoring out-of-zone data (1.0.0.127.IN-ADDR.ARPA)
zone localhost/IN: NS 'localhost' has no address records (A or AAAA)
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: bad zone
zone 0.0.127.in-addr.arpa/IN: loaded serial 4
zone puppetmaster.itmasters.local/IN: loaded serial 2015060700
zone 1.168.192.IN-ADDR.ARPA/IN: loaded serial 2015060700
[FAILED]
Also included : 127.0.0.zone in/var/named/chroot/var/named/
Code: Select all
$TTL 86400
@ IN SOA localhost. root.localhost. ( 4 10800 3600 604800 86400 )
IN NS localhost.
localhost A 127.0.0.1
1.0.0.127.IN-ADDR.ARPA. IN PTR localhost.
Code: Select all
cat puppetmaster.itmasters.local.zone
; Replace all X(s) with your station number
; Be careful not to replace the X in the MX RR :)
$TTL 86400
@ IN SOA puppetmaster.itmasters.local. root.puppetmaster.itmasters.local. (
; Dont forget to increment the serial number
2015060700 ;serial number
1H ;refresh slave
5M ;retry refresh
1W ;expire zone
5M ;cache time-to-live for negative answers
)
; Name server resource records ( NS )
; owner TTL CL type RDATA
@ IN NS puppetmaster.itmasters.local.
; Mail exchanger resource records ( MX )
; owner TTL CL type RDATA
puppetmaster.itmasters.local. IN MX 10 puppetmaster.itmasters.local.
; Internet address resource records( A )
; owner TTL CL type RDATA
@ IN A 192.168.1.175
puppetmaster IN A 192.168.1.175
Code: Select all
cat 192.168.1.175.zone
; Replace all X(s) with your station number
$TTL 86400
@ IN SOA puppetmaster.itmasters.local. root.puppetmaster.itmasters.local. (
; Don't forget to increment the serial number
2015060700 ;serial number
1H ;refresh slave
5M ;retry refresh
1W ;expire zone
5M ;cache time-to-live for negative answers
)
; owner TTL CL type RDATA
@ IN NS puppetmaster.itmasters.local.
175.1.168.192.IN-ADDR.ARPA. IN PTR puppetmaster.itmasters.local.
************/etc/named.conf************
Code: Select all
cat /etc/named.conf
# /etc/named.conf
#
# Template file for BIND labs.
# Remember to replace each X with your station number!
# Please note three different comment styles are used for
# illustrative purposes only
options {
directory "/var/named";
// We're forwarding DNS requests to server1.example.com
// and letting it talk to the root name servers; if it
// fails to respond, we *don't* want to talk to the root
// name servers directly.
forwarders { 192.168.1.175; };
forward only;
auth-nxdomain no;
};
// Magic to make rndc work
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "127.0.0.zone";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "127.0.0.zone";
};
/* REPLACE X HERE WITH YOUR STATION NUMBER
* MAKE SURE YOU RENAME THE FILE WHEN YOU ARE DONE */
zone "puppetmaster.itmasters.local" {
type master;
file "puppetmaster.itmasters.local.zone";
};
/* REPLACE X HERE WITH YOUR STATION NUMBER
* MAKE SURE YOU RENAME THE FILE WHEN YOU ARE DONE */
zone "1.168.192.IN-ADDR.ARPA" {
type master;
file "192.168.1.175.zone";
};
// Here's a commented-out example of what a slave zone for
// example.com could look like. It's possible for the same
// server to be master for some zones and slave for others
// at the same time.
# zone "itmasters.local" {
# type slave;
# masters { 192.168.1.175; };
# file "itmasters.local.zone";
# };
#
# zone "1.168.192.in-addr.arpa" {
# type slave;
# masters { 192.168.1.175; };
# file "192.168.1.zone";
# };