LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-21-2007, 06:32 AM   #1
abhishekabsa
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
How To configure DNS in RHEL 5 ???? HELP..........


Hello Frnds , i am newbie,
plz help me , how to configure dns in rhel 5.
n how to make a client of that.
Thanx in advance.
 
Old 04-21-2007, 08:04 AM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by abhishekabsa
Hello Frnds , i am newbie,
plz help me , how to configure dns in rhel 5.
n how to make a client of that.
Thanx in advance.
I'd suggest installing a pacjkage called Webmin

it has a nice wizard Gui for configuring a DNS server
and many other server functions

http://www.webmin.com/
http://prdownloads.sourceforge.net/w...0-1.noarch.rpm
 
Old 04-21-2007, 08:16 AM   #3
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
In a nutshell, you need to install the latest version of BIND (if you haven't, I assume you have).

Start the service:
Code:
/etc/init.d/named start
Set it to always start on boot:
Code:
chkconfig --levels 2345 named on
You tell named how to run in the configuration file /etc/named.conf, and you also put the information about which zones it will be authoritative for. An example named.conf:
Code:
options {
   directory "/var/named";
   dump-file "/var/named/data/cache_dump.db";
   statistics-file "/var/named/data/named_stats.txt";
   recursion no;
   /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below.  Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
   inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
   type hint;
   file "named.ca";
};

include "/etc/rndc.key";

zone "mydomain.com" {
   type master;
   file "/var/named/mydomain.com.db";
};
And then, at /var/named/mydomain.com.db, you have the zone file, which might look like this:
Code:
; Zone File for mydomain.com
$TTL 14400
@       14440   IN      SOA     ns1.your-authoritative-NS.com. your.email.address. ( 2006102400
                                        14400
                                        7200
                                        3600000
                                        86400
                                        )

mydomain.com.  14400   IN      NS      ns1.your-authoritative-NS.com.
mydomain.com.  14400   IN      NS      ns2.your-other-nameserver.com.

mydomain.com.  14400   IN      A  1.2.3.4

mydomain.com.  14400   IN      MX      0       mail.mydomain.com.

mail    14400   IN      A   1.2.3.4
www     14400   IN      CNAME   mydomain.com.
There's much, much more. That should get you started, but I highly recommend you give a read to DNS and BIND by Paul Albitz and Cricket Liu.
 
Old 04-25-2007, 07:15 PM   #4
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 200

Rep: Reputation: 30
I have a question:
currently I'm following this guide for RHEL4, it says that it needs caching-nameserver package but I'm using RHEL5 and I looked into all the CDs and even over at rpmfind.net and couldn't find one that is compatible with ver5. Did the package name change for ver5?

thanks for the inputs.
 
Old 10-25-2007, 11:05 AM   #5
RHAPOLLO
LQ Newbie
 
Registered: Oct 2006
Location: TX, US
Distribution: Fedora12
Posts: 13

Rep: Reputation: 0
BIND Packages in RHEL5 Server

Quote:
Originally Posted by chickenjoy View Post
I have a question:
currently I'm following this guide for RHEL4, it says that it needs caching-nameserver package but I'm using RHEL5 and I looked into all the CDs and even over at rpmfind.net and couldn't find one that is compatible with ver5. Did the package name change for ver5?

thanks for the inputs.
Hi,

Under RHEL5, these are the packages that I have. I am in the same process since two weeks .. want to configure a simple DNS at mydomain.net Home LAN and I could not get the new bind to work under RHEL5 .. Please make sure that these packages are installed:

bind-9.3.3-9.0.1.el5
system-config-bind-4.0.3-2.el5
bind-libs-9.3.3-9.0.1.el5
bind-chroot-9.3.3-9.0.1.el5
bind-utils-9.3.3-9.0.1.el5


I will also post here in case I got my DNS to work .. --Good Luck

rhapollo
 
Old 03-13-2008, 03:01 PM   #6
SentiBlue
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
zaichik: You sir... you the man!!!

Thanks for such a detailed, informative and direct instruction post....

Have a great day!
 
Old 03-13-2008, 09:45 PM   #7
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Heh doesn't zaichik mean somethign like little bunny in some dialect of Russian?

Yea Zaichik is right though, there is much more for you to configure. I think when you said "client" did you mean slave??

Anyways have a look at this tutorial I did in Fedora, its basically the same thing once you get the packages.

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

Just a note though:

Code:
allow-transfer { 10.0.0.10; 142.25.97.40; 127.0.0.1; }; 

allow-recursion { 10.0.0.10/24; 142.25.97.0/24; 127.0.0.1; }; 

forwarders { 142.25.97.254; 142.25.115.12; 142.25.115.1; 127.0.0.1; };
These guys allow the use of slaves.. if your slaves are going to use global naming.
 
Old 06-11-2008, 10:52 AM   #8
suraj_vaidhya
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
About Mail Server

I have Configure Mail Service which is in Public Ip. I want to configure DNS for mail . I have Public IP . With that ip I browse my mail server from anywhere. but how do i configure DNS for name base ? like : dwss.gov.np/mail . I want this domain for mail server so please help to configure DNS . Waiting .
 
  


Reply


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
RHEL-4 missing dns mobius Linux - Enterprise 7 11-29-2006 10:20 PM
RHEL WS as DNS Server dipuasks Linux - General 1 11-05-2006 11:09 AM
Configure wireless network in RHEL WS 4 ninad Linux - Wireless Networking 1 02-17-2006 04:46 PM
How to configure AUTOFS in RHEL 4 sunnyanthony Linux - Networking 1 12-19-2005 04:24 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


All times are GMT -5. The time now is 02:40 AM.

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