Så här ser named.conf ut.
------------------------------------------------------------------------------
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
------------------------------------------------------------------------------
named.conf.options
------------------------------------------------------------------------------
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See US-CERT Vulnerability Note VU#800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
130.244.127.161;
130.244.127.169;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
------------------------------------------------------------------------------
named.conf.local
------------------------------------------------------------------------------
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
# This is the zone definition. replace example.com with your domain name
zone "emileriksson.net" {
type master;
file "/etc/bind/emileriksson.net.db";
};
# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in
#reverse notation - e.g my network address is 192.168.0
zone "0.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};
logging {
channel query.log {
file "/var/log/query.log";
severity debug 3;
};
category queries { query.log; };
------------------------------------------------------------------------------
emileriksson.net.db (min zone fil)
------------------------------------------------------------------------------
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.emileriksson.net. root.emileriksson.net. (
279 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.emileriksson.net.
@ IN A 192.168.0.193
@ IN AAAA ::1
ns IN A 192.168.0.193
emileriksson.net IN NS ns1.emileriksson.net
www IN A 83.177.64.147
------------------------------------------------------------------------------
db.192
------------------------------------------------------------------------------
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.emileriksson.net. root.emileriksson.net. (
8 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.
10 IN PTR ns1.emileriksson.net
11 IN PTR www
Min ISP servar: 130.244.127.161, 130.244.127.169
Min server IP: 192.168.0.193
Mitt golbala ip: 83.177.64.147
Det var nog allt...