LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-08-2008, 06:40 PM   #1
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Rep: Reputation: 15
Smile BIND9 help


Hi linux folks, I want to host some php-mysql websites. I figure that a LAMP server will be a great choice.

I've researched into the procedure and it looks easy enough at first: register mydomain.com. Point mydomain.com to ns1.mydomain.com and ns2.mydomain.com. Install linux on server with 2 static IP addresses. Setting up the appropriate software doesn't look too hard either: just install apache, php5, mysql.

Then comes the hard part: how to make your linux box mydomain.com. So I googled around and realized that you need to configure a name server/DNS/BIND9. http://www.yolinux.com/TUTORIALS/Lin...onfig.html#DNS
But at the end of the day, I got totally confused by things like the master server, slave server, and nodes, and zones.

I only have one domain and I just need to host a simple php-mysql server. Do I really need a slave? What is a slave? nodes and zones? help!

LAMP servers are supposed to be really popular. Anyone here with experience want to help me out here? I'd really appreciate it.

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:35 PM.
 
Old 06-08-2008, 09:16 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You don't necessarily need to setup the secondary name server as a slave. You can in fact setup two master servers. The slave just makes it easier to keep your updates intact. Say for instance with Bind, if you update the master with DNS changes, the slave will pick up those changes, no need to edit on both servers.

Now in the case if you just setup two master servers, everytime you need to update some DNS changes, you have to edit both name servers.
 
Old 06-08-2008, 11:21 PM   #3
javaroast
Member
 
Registered: Apr 2005
Posts: 131

Rep: Reputation: 19
I may not understand entirely, but if the 2 static IP's is for the purpose of running the two nameservers I wouldn't go that route. It is highly recommended that at the very least the 2 name servers are running on seperate servers in the event that one of the servers goes down.
 
Old 06-09-2008, 01:18 PM   #4
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Original Poster
Rep: Reputation: 15
thanks

Thanks. This is what I understand from what you guys said: Master is the primary name server: ns1.mydomain.com. Slave is the secondary name server: ns2.mydomain.com. The slave tries to synchronize with the master and also act as a backup. Both are physically different servers on different computers.

In this case, I think name servers are way too complicated to maintain, and my best course of action is to rent professional name servers like easyDNS.

Even with easydns, I still need to configure the bind9 in my linux box to point at the easydns name servers, right?

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:35 PM.
 
Old 06-09-2008, 11:16 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You trivially configure your *resolver* (via /etc/resolv.conf) to query your chosen DNS server.

Consider setting up a simple caching DNS server on your system to reduce the number of external queries.
 
Old 06-10-2008, 10:22 AM   #6
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Original Poster
Rep: Reputation: 15
tks for the tip. I'll look out for resolv.conf when my server is ready.

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:35 PM.
 
Old 06-10-2008, 10:47 AM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by Mr. C. View Post
You trivially configure your *resolver* (via /etc/resolv.conf) to query your chosen DNS server.

Consider setting up a simple caching DNS server on your system to reduce the number of external queries.
I agree with Mr. C

Setting up a caching DNS server is the easiest way to go...

But if you are unsure about DNS servers (and I know it can be daunting); and want it to "just work"; then I would recommend something like easyDNS...

-C
 
Old 06-17-2008, 09:32 PM   #8
shahnn28
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
bind9 help

Ok. I am completely new to linux and attempting to manager bind9 DNS for corporate. I have a external DNS mydomain.com and have several zones within that domain. The zone im particularly having problems with is staging.mydomain.com.

At times most sites resolve and can be access. Other times these same sites cannot be accessed or resolved via ping. What can possibly cause this. The sites that do not work tend to come back up eventually, give or take 15-30 minutes.

Pls advise.
 
Old 06-17-2008, 11:17 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You are confusing name resolution with the ability to send/receive ICMP packets to and from a host. Focus on one or the other.

If you are trying to diagnose network connectivity, ping an IP address to remove DNS from the equation.

If you are trying to diagnose DNS hostname to IP translation, ping is the wrong tool - use dig, host, or nslookup.
 
Old 06-19-2008, 03:14 PM   #10
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Why bother with a slave? The user's need seems simple, just backup your conf files...Especially the zone files.

Also DNS takes time to replicate, sometimes between 30 minutes to 3 hours. Be patient if you make a change, and don't forget to update the serial numbers everytime you make a change in the zone files.


Might help:

http://orangespike.ca/?q=node/53
 
  


Reply



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
a little help with BIND9 rockmanchile Debian 3 05-22-2007 06:40 PM
Bind9.3 MX Help Fredstar Linux - Networking 1 04-15-2007 10:57 PM
Bind9 help!! Fredstar Linux - Newbie 10 08-30-2005 09:47 PM
Bind9 tandre Linux - Software 1 04-08-2003 09:29 AM
bind9 unixkid Linux - Networking 3 08-30-2002 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 PM.

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
Open Source Consulting | Domain Registration