LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



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

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


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.
 
  


Reply

Tags
bind


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 11:00 AM
setting up DNS Tamara Linux - Newbie 4 04-05-2005 09:14 AM
Setting up DNS UnknownFear Linux - Networking 3 04-10-2004 02:39 AM
How to setup DNS on a VPS ? fur Linux - Networking 9 04-06-2004 04:35 PM
Help with setting up DNS gomer1701ems Linux - Networking 1 06-02-2001 08:54 AM


All times are GMT -5. The time now is 10:58 AM.

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