I purchased a domain though godaddy.com, and need to setup bind on a Debian based VPS to be authoritative NS server for that domain. I have never dealt with bind so I am a little confused with this..
So far I have registered the IP address of the server to point to NS1.mydomain.com at godaddy.com. Now I'm trying to configure bind9, and I'm am not even sure if what I have done so far is even correct.
Here is the /etc/bind/named.conf file...
And here is the /etc/bind/db.mydomain file..
When I start bind I get this error in the log file..
It looks like a problem with /etc/bind/db.mydomain file, but I can't really find any good beginner documentation on setting up bind, so any help with this would be cool.
Thanks.
So far I have registered the IP address of the server to point to NS1.mydomain.com at godaddy.com. Now I'm trying to configure bind9, and I'm am not even sure if what I have done so far is even correct.
Here is the /etc/bind/named.conf file...
Code:
# Primary Configuration file for BIND
options {
directory "/var/cache/bind";
version "None to see here";
auth-nxdomain no; # conform to RFC1035
};
// 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 "mydomain.com" {
type master;
file "/etc/bind/db.mydomain";
};
And here is the /etc/bind/db.mydomain file..
Code:
$ttl 38400
mydomain.com. IN SOA ns1mydomain.com.
webmaster.mydomain.com. (
1055026205
6H
1H
5D
20M )
mydomain.com. IN A 66.199.228.108
[url]www.mydomain.com.[/url] IN CNAME mydomain.com.
ns1.mydomain.com. IN CNAME mydomain.com.
mydomain.com. IN NS ns1.mydomain.com.
mail.mydomain.com. IN MX 1 mydomain.com.
108.228.199.66.IN-ADDR.ARPA. PTR ns1.mydomain.com.
When I start bind I get this error in the log file..
Apr 11 16:31:38 sugoc named[2762]: dns_rdata_fromtext: /etc/bind/db.mydomain:2: near eol: unexpected end of input
Apr 11 16:31:38 sugoc named[2762]: zone mydomain.com/IN: loading master file /etc/bind/db.mydomain: unexpected end of input
It looks like a problem with /etc/bind/db.mydomain file, but I can't really find any good beginner documentation on setting up bind, so any help with this would be cool.
Thanks.