LinuxQuestions.org
Review your favorite Linux distribution.
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 09-26-2011, 04:40 AM   #1
splinux
Member
 
Registered: Jun 2011
Location: Sri Lanka
Distribution: centos,redhat,ubuntu
Posts: 90

Rep: Reputation: Disabled
Please help to configure DNS


i would like to configure the DNS master and slave

in my organization i have 3 web servers

eg
www.aaa.com
www.bbb.com
www.ccc.com

i need to create single DNS(master and slave) for all these web servers.

Is it possible ?

please give me a idea to sove this issue..
 
Old 09-26-2011, 04:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it is VERY possible, but we can't just recite standard documentation to you. You've asked for nothing specific or abnormal, so you really need to follow one of the many many guides on getting BIND running (assuming you choose bind over powerdns etc.) and ask here again if you have *SPECIFIC* queries we can help with.
 
Old 09-26-2011, 05:09 AM   #3
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
Are all three on the same server?
What OS is running on each?
Lots of questions...........
Like are they headless (no GUI)?
webmin installed?
Static or DHCP?
What kind of internet connection?
 
Old 09-26-2011, 05:16 AM   #4
splinux
Member
 
Registered: Jun 2011
Location: Sri Lanka
Distribution: centos,redhat,ubuntu
Posts: 90

Original Poster
Rep: Reputation: Disabled
hi acid_kewpie

Thank for your replying

i would like to set up name server ns1.spdot.com 192.168.5.10 (master )
ns2.spdot.com 192.168.5.11 (slave)

the web servers ip www.aaa.com 192.168.5.21
www.bbb.com 192.168.5.22
www.ccc.com 192.168.5.23

i would like to setup bind-chroot
all the server centos 5.6

we have adsl connection with two public static ip
assume 1.1.1.1
2.2.2.2
 
Old 09-26-2011, 05:22 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
OK, so what specific problem are you having?
 
Old 09-26-2011, 05:27 AM   #6
splinux
Member
 
Registered: Jun 2011
Location: Sri Lanka
Distribution: centos,redhat,ubuntu
Posts: 90

Original Poster
Rep: Reputation: Disabled
how to create named.conf file for these three web server
all are different domain names. ?

i dont know how to map the web server with external ip ?

Last edited by splinux; 09-26-2011 at 05:31 AM.
 
Old 09-26-2011, 05:32 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
These are not specific issues, you really need to read some documentation about this. 3 seconds on google shows this, which looks fine to me. http://www.madboa.com/geek/soho-bind/

I will say that you do realise you are using private addresses there, which can never be reached over the internet, right?

Last edited by acid_kewpie; 09-26-2011 at 05:33 AM.
 
Old 09-26-2011, 05:36 AM   #8
splinux
Member
 
Registered: Jun 2011
Location: Sri Lanka
Distribution: centos,redhat,ubuntu
Posts: 90

Original Poster
Rep: Reputation: Disabled
yeah i have done configuration in DNS server.. this is for single domain..

//
// Sample named.conf BIND DNS server 'named' configuration file
// for the Red Hat BIND distribution.
//
// See the BIND Administrator's Reference Manual (ARM) for details, in:
// file:///usr/share/doc/bind-*/arm/Bv9ARM.html
// Also see the BIND Configuration GUI : /usr/bin/system-config-bind and
// its manual.
//
options
{
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;

// Put files that named is allowed to write in the data/ directory:
directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";

};
logging
{
/* If you want to enable debugging, eg. using the 'rndc trace' command,
* named will try to write the 'named.run' file in the $directory (/var/named).
* By default, SELinux policy does not allow named to modify the /var/named directory,
* so put the default debug log file in data/ :
*/
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "spdot.com" in{
type master;
file "data/spdot.zone.db";
};

zone "5.168.192.in-addr.arpa" in{
type master;
file "data/spdot.rev.db";
};



where i need to add the www.aaa.com,www.bbb.com,www.ccc.com

i tried to add in the spdot.zone.db those web server name and ips..
but not resolving..

for single domain, my DNS is working

Last edited by splinux; 09-26-2011 at 05:37 AM.
 
Old 09-26-2011, 05:41 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
so what does the zone file look like? What is the debug output from named when you restart it? is it happily loading the zone file or is it complaining?
 
Old 09-26-2011, 05:43 AM   #10
splinux
Member
 
Registered: Jun 2011
Location: Sri Lanka
Distribution: centos,redhat,ubuntu
Posts: 90

Original Poster
Rep: Reputation: Disabled
in the named.conf file we dont need enter www.aaa.com, www.bbb.com, www.ccc.com entries ?

without it will work ?
 
Old 09-26-2011, 05:45 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
please please just read a document. You already have a zone defined there, additional ones need to go in the named.conf just like that one.
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
How to configure DNS Server & DNS Client in RHEL4 chanakkya Linux - Networking 1 07-05-2009 01:41 PM
how to configure another dns server to combine use with primary current dns server. hocheetiong Linux - Newbie 1 05-29-2008 06:57 PM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
How to configure DNS for a local LAN (at least I think I want DNS) FlyingPenguin128 Linux - Networking 8 12-11-2005 04:15 PM

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

All times are GMT -5. The time now is 07:40 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
Open Source Consulting | Domain Registration