8, September 2008

DNS with bind - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: DNS with bind
« previous next »
Pages: [1] Print

Author Topic: DNS with bind  (Read 1918 times)
Where are my glasses?
*
Posts: 22
212 credits
Members referred : 0



« on: Sep 02, 2005, 01:12:39 PM »

I've just bought a dedicated server account(linux), which comes with BIND. I would like to create a subdomain in my site, but I don't know nothing about bind.

Can you please help me on this?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8037
41179 credits
Members referred : 3



« Reply #1 on: Sep 02, 2005, 01:26:30 PM »

Well here is what you have to do. Having root access on your server go to the directory where the domain records are stored

eg.

Code:
cd /var/named/domains

There must be a file with your domain name. eg. something.com

Edit this file with a text editor:

Code:
vi something.com

The file contents is like this:

Code:
$ORIGIN something.com.
@ 86400 IN SOA something.com. (
                          2005083100 ; serial
                          8H         ; refresh
                          2H         ; retry
                          1W         ; expire
                          1D         ; minimum
                          )
@                         1D IN NS     ns2.dnsprovider.com.
@                         1D IN NS     ns1.dnsprovider.com.
@                         1D IN MX 10  mail
mail                      1D IN A      62.38.134.112
www                       1D IN A      62.103.148.30
ftp                       1D IN CNAME  www
something.com.          1D IN A      62.103.148.30

To explain a little bit the ip (62.103.148.30) is the ip of your server. What you have to do is add a line to the end of the file with this:

Code:
subdomain            1D IN A      62.103.148.30

Then you have to replace the date in this line :

Code:
                          2005083100 ; serial

with the current date(year, month, day). eg
Code:
                          2005090200 ; serial

After that save the file and restart the service.

Code:
service named restart

Of course after that you should setup the virtual host to Apache (or whatever web server you are using)
« Last Edit: Sep 02, 2005, 01:28:52 PM by Nikolas »

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Where are my glasses?
*
Posts: 22
212 credits
Members referred : 0



« Reply #2 on: Sep 02, 2005, 01:34:01 PM »

Hey Nikolas I really apreciate this!

Thank you very much

Smiley
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8037
41179 credits
Members referred : 3



« Reply #3 on: Dec 28, 2005, 01:48:38 AM »

I forgot to mention something.

When you make a new domain entry you should allways edit your named.conf file adding these lines :

Code:
zone "something.com" {
    type master;
    file "domains/something.com";
}

Also a small tip. If you are creating a DNS entry in your server and your pc don't 'see' the updates, you can flush the DNS cache using this command in the command prompt (windows)

Code:
ipconfig /flushdns


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #4 on: Dec 28, 2005, 02:05:30 AM »

ipconfig/ flushdns, very nifty. thx nik

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Magus computerista
General's Aide
***
Gender: Male
Posts: 129
86 credits
Members referred : 0



« Reply #5 on: Dec 28, 2005, 02:12:17 AM »

Hehe. I was rebooting my pc to do that.....
Supreme Overlord
***
Gender: Male
Posts: 148
900 credits
Members referred : 0


www.centos.org


« Reply #6 on: Feb 16, 2006, 01:24:07 PM »

 Its probbaly not the answer your looking for but why not use a paid DNS service like www.dnsmadeeasy.com Visit through proxy. I have 5 name servers per domain. And they have 100% uptime. You get 25 domains for $59.95 per year. And you never have to worry about your dns ever going down.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8037
41179 credits
Members referred : 3



« Reply #7 on: Feb 16, 2006, 01:27:56 PM »

Its probbaly not the answer your looking for but why not use a paid DNS service like www.dnsmadeeasy.com Visit through proxy. I have 5 name servers per domain. And they have 100% uptime. You get 25 domains for $59.95 per year. And you never have to worry about your dns ever going down.

I don't think a service like that is really usefull.

I mean that as I have one server holding all the services (dns, mail, web, mysql) if the dns has some downtime, then the whole server is down, so it doesn't matter.

I suppose that kind of service is usefull only for decreasing the server load, but anyway the DNS(at least BIND) is not produces much overhead on the server.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Supreme Overlord
***
Gender: Male
Posts: 148
900 credits
Members referred : 0


www.centos.org


« Reply #8 on: Feb 16, 2006, 01:37:50 PM »


I don't think a service like that is really usefull.

I mean that as I have one server holding all the services (dns, mail, web, mysql) if the dns has some downtime, then the whole server is down, so it doesn't matter.

I suppose that kind of service is usefull only for decreasing the server load, but anyway the DNS(at least BIND) is not produces much overhead on the server.

 Ya your right if the DNS goes down the server is probbaly down. But if I had a back up server I could auto direct the traffic to that server untill my server was up.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=79
Tags : apache domains dedicated server dns email Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: DNS with bind
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep 08, 2008, 05:46:00 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.302
Total Topics: 7.479
Total Members: 3.907
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: phpprofit

22 Guests, 3 Users online :

6 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.