LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How To configure DNS in RHEL 5 ???? HELP.......... (https://www.linuxquestions.org/questions/linux-server-73/how-to-configure-dns-in-rhel-5-help-547819/)

abhishekabsa 04-21-2007 06:32 AM

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.

carl0ski 04-21-2007 08:04 AM

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

zaichik 04-21-2007 08:16 AM

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.

chickenjoy 04-25-2007 07:15 PM

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.

RHAPOLLO 10-25-2007 11:05 AM

BIND Packages in RHEL5 Server
 
Quote:

Originally Posted by chickenjoy (Post 2725427)
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

SentiBlue 03-13-2008 03:01 PM

zaichik: You sir... you the man!!!

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

Have a great day!

Lantzvillian 03-13-2008 09:45 PM

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.

suraj_vaidhya 06-11-2008 10:52 AM

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 .


All times are GMT -5. The time now is 04:26 PM.