LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2010, 10:48 AM   #1
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Rep: Reputation: 0
BIND/NAMED Configuration - CentOS5.5


hi all!

I need a dns server. I've successfully installed "named" in my machine.
Now i need to configure it.

can anyone tell me the steps i should make, or point me a topic already started in this forum?

thank u very much!
 
Old 08-18-2010, 10:50 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
You can start from here

Bind Configuration

HTH
 
Old 08-18-2010, 10:51 AM   #3
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
wow, what a super fast reply!
thank u!i'll go check it out right now!

big thx!
 
Old 08-18-2010, 10:53 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by nibau View Post
wow, what a super fast reply!
thank u!i'll go check it out right now!

big thx!
You are always wel-come
 
Old 08-20-2010, 06:09 AM   #5
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
hi there!
i'm having a small problem...named is running in 127.0.0.1 (loopback), but i want it to run in my machine server (192.168.100.22).
how can i change that?

thx

Last edited by nibau; 08-20-2010 at 06:43 AM.
 
Old 08-20-2010, 06:25 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

Either comment out the "listen-on ..." line in named.conf or use:
Code:
listen-on {any;};
 
1 members found this post helpful.
Old 08-20-2010, 06:42 AM   #7
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
hi there.

humm....my /etc/named/named.conf has this:

Code:
options {
   directory "/var/named";
   dump-file "/var/named/data/cache_dump.db";
   statistics-file "/var/named/data/named_stats.txt";
};

controls {
 inet 127.0.0.1  allow { localhost; } keys { rndckey; };
};

zone "localhost" IN {
   type master;
   file "localhost.zone";
   allow-update { none; };
};


include "/etc/rndc.key";
where, in here, i should put the code you suggested?
just one more question: this named.conf should be in the /var/named/chroot/var/named right?

thank u
 
Old 08-20-2010, 06:56 AM   #8
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Add listen-on in options section

Code:
options {
   directory "/var/named";
   dump-file "/var/named/data/cache_dump.db";
   statistics-file "/var/named/data/named_stats.txt";
   listen-on port 53 { 192.168.100.22; };
};

controls {
 inet 127.0.0.1  allow { localhost; } keys { rndckey; };
};

zone "localhost" IN {
   type master;
   file "localhost.zone";
   allow-update { none; };
};


include "/etc/rndc.key";
Quote:
just one more question: this named.conf should be in the /var/named/chroot/var/named right?
named.conf file location is
Code:
/var/named/chroot/etc/
HTH
 
Old 08-20-2010, 07:40 AM   #9
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
thank u!

i'll go give it a try!
 
Old 08-20-2010, 10:58 AM   #10
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
thank u all! i got it!
 
Old 08-20-2010, 11:08 AM   #11
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
glad you find solution

Regards,
 
Old 08-20-2010, 11:13 AM   #12
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
this is all very new and confusion to me. but i think it happens to every one who starts/tries to use linux.

big thank u all
 
  


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
Centos5 server named service problem lin_myworld Linux - Server 2 05-05-2010 11:42 AM
Bind + CentOS5.3 UltraSoul Linux - Software 3 07-10-2009 02:06 PM
(bind) named: couldn't open pid file '/var/run/named/named.pid' - any help? samengr Linux - Server 6 04-01-2009 07:22 AM
BIND/named Startup Error - named.root:1: '}' expected near ';' acutchin Linux - Server 4 11-10-2008 10:43 AM
reg named.conf configuration file of BIND DNS bzlaskar Linux - Server 1 12-27-2007 02:40 PM


All times are GMT -5. The time now is 06:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration