Hello,
I recently purchased a VPS package from a service provider. I have Debian 3.1 system and BIND as the DNS server. And, I need help setting up DNS on it!! I have a static IP assigned to my server - let us pretend it to be 55.23.63.134
Now, I also have was provided with two DNS server IPs by my host.
My domain names are registered with a different registrar than my host. Let us assume my domain is mydomain.com
I have provided a copy of the two config files (which I think are significant) for setting up DNS server. Please review and suggest if I need to add or remove any information to setup my own DNS - Basically, where my domain names are registerd I want to give NS1.MYDOMAIN.COM and NS2.MYDOMAIN.COM as my DNS servers for my domain name (which is MYDOMAIN.COM). So, when I ping MYDOMAIN.COM or go to
WWW.MYDOMAIN.COM i want that domain to resolve to my statically assigned ip which is 55.23.63.134
Thank you in advance with any help you can provide.
The following is the copy of my named.conf file
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind/README.Debian for information on the
// structure of BIND configuration files in Debian for BIND versions 8.2.1
// and later, *BEFORE* you customize this configuration file.
//
include "/etc/bind/named.conf.options";
// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
category cname { null; };
};
// 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";
};
// add local zone definitions here
include "/etc/bind/named.conf.local";
// bind Data BEGIN.
// dmn [mydomain.com] cfg entry BEGIN.
zone "mydomain.com" {
type master;
file "/var/cache/bind/mydomain.com.db";
};
// dmn [mydomain.com] cfg entry END.
// dmn [{DMN_NAME}] cfg entry BEGIN.
// dmn [{DMN_NAME}] cfg entry END.
// bind Data END.
And, this is what my /var/cache/bind/mydomain.com.db file looks like:
/etc/bind# cat /var/cache/bind/mydomain.com.db
$TTL 86400
@ IN SOA ns.mydomain.com. root.mydomain.com. (
; dmn [mydomain.com] timestamp entry BEGIN.
2006110500
; dmn [mydomain.com] timestamp entry END.
8H
2H
4W
1D )
IN NS ns.mydomain.com.
IN MX 10 mail.mydomain.com.
mydomain.com. A 55.23.63.134
ns IN A 55.23.63.134
mail IN A 55.23.63.134
www CNAME mydomain.com.
ftp CNAME mydomain.com.
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.