Im trying to set up a webserver with Bind9, apache2 on Debian 6.
I am trying to learn to do it manualy so I do not have any control panels or anything just the command line.
I have a domain name lets call it www.example.com
I want a virtual host setup so that I can have multiple websites with different names on my server. I have ns1.example.com and ns2.example.com registered at my servers IP (123.456.789.12).
Below is my Bind9 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 http://www.kb.cert.org/vuls/id/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 {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
This is the default I'm not sure if i was supposed to edit it. I didn't.
Here is my named.conf.default-zones:
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "example.com.com" {
type master;
file "etc/bind/example.com.db";
};
named.conf.local Is an empty file with a comment saying to do local configuration here.
example.com.db looks like this:
; BIND data file for mywebsite.com
;
$ORIGIN example.com.
$TTL 604800
@ IN SOA ns1.example.com.
[email protected]. (
2009120101 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS ns1.example.com.
IN NS ns2.example.com.
IN MX 10 mail.example.com.
localhost IN A 127.0.0.1
example.com. IN A 123.456.789.12
ns1 IN A 123.456.789.12
ns2 IN A 123.456.789.12
www IN A 123.456.789.12
ftp IN A 123.456.789.12
mail IN A 123.456.789.12
boards IN CNAME www
These are all settings I've found from various tutorials.
Now when i go to intodns I get:
You should already know that your NS records at your nameservers are
missing, so here it is again: ns1.example.com ns2.example.com
Can someone help me? I'm not sure what Im doing wrong.