Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-07-2006, 09:04 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
setting up my own DNS on my new VPS system

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
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

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

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 "" {
type master;
file "/etc/bind/db.127";

zone "" {
type master;
file "/etc/bind/db.0";

zone "" {
type master;
file "/etc/bind/db.255";

// add local zone definitions here
include "/etc/bind/named.conf.local";

// bind Data BEGIN.

// dmn [] cfg entry BEGIN.
zone "" {
type master;
file "/var/cache/bind/";
// dmn [] 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/ file looks like:

/etc/bind# cat /var/cache/bind/
$TTL 86400
@ IN SOA (
; dmn [] timestamp entry BEGIN.
; dmn [] timestamp entry END.
1D )
IN MX 10 A
ns IN A
mail IN A
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM
setting up DNS Tamara Linux - Newbie 4 04-05-2005 08:14 AM
Setting up DNS UnknownFear Linux - Networking 3 04-10-2004 01:39 AM
How to setup DNS on a VPS ? fur Linux - Networking 9 04-06-2004 03:35 PM
Help with setting up DNS gomer1701ems Linux - Networking 1 06-02-2001 07:54 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration