Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th December 2010, 08:43
driverdave driverdave is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 5 Times in 2 Posts
Default Bind DNS Issue with Centos 5.5 Perfect Server Setup

following the setup guide below

http://www.howtoforge.com/perfect-se...64-ispconfig-3

running centos 5.5, 64bit

changes to the DNS server via ispconfig were not being reflected.

the results of "service named status" was always "number of zones: 0" and no dns requests were being resloved locally or externally.

i edited the file: /var/named/chroot/etc/named.conf

i added the line below to the end

Code:
include "/var/named/chroot/var/named/named.local";
this solved my problem of no changes being reflected.

to get bind listening to resolve outside DNS requests i did the following.

edited /var/named/chroot/etc/named.conf and changed

listen-on port 53 { 127.0.0.1; };

to

Code:
listen-on port 53 { 127.0.0.1; my.ip.address; };
and i commented out the line below to allow requests from any IP

Code:
//allow-query     { 127.0.0.1; };
just thought i'd post this in case anyone else is having this issue.
Reply With Quote
The Following 2 Users Say Thank You to driverdave For This Useful Post:
falko (21st December 2010), rzlines (21st December 2010)
Sponsored Links
  #2  
Old 21st December 2010, 19:15
rzlines rzlines is offline
Junior Member
 
Join Date: Oct 2009
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by driverdave View Post

Code:
listen-on port 53 { 127.0.0.1; my.ip.address; };
What is the ip address that you put here ? your server's public ip or its local network ip (if its behind a router i.e.)?

Logically speaking it should be the public ip but I'm asking just to be sure.

Last edited by rzlines; 22nd December 2010 at 09:11.
Reply With Quote
  #3  
Old 23rd December 2010, 21:14
akamarinos akamarinos is offline
Junior Member
 
Join Date: Jan 2009
Posts: 24
Thanks: 6
Thanked 6 Times in 5 Posts
Default

@rzlines

You should put the local ip address at a nat setup
Reply With Quote
The Following User Says Thank You to akamarinos For This Useful Post:
rzlines (24th December 2010)
  #4  
Old 23rd December 2010, 21:26
akamarinos akamarinos is offline
Junior Member
 
Join Date: Jan 2009
Posts: 24
Thanks: 6
Thanked 6 Times in 5 Posts
 
Default

by this way you are providing a free dns to the internet
and maybe you are vulnerable to attacks


my way of doing it :
at my ispconfig web-interface i have setup my
System -> Server config -> DNS
like this



and my named.conf

Code:
[root@srv ~]# cat /var/named/chroot/etc/named.conf
options {
        listen-on port 53 { 127.0.0.1; 10.10.10.10; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named/chroot/var/named";
        dump-file       "/var/named/chroot/var/named/data/cache_dump.db";
        statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};


view "localhost"
{
        match-clients           { localhost; };
        match-destinations      { localhost; };
        recursion yes;
        allow-query     { 127.0.0.1; };

      zone "." IN {
              type hint;
              file "named.root";
      };
include "/var/named/chroot/etc/named.conf.local";
};


view    "external"
{
        match-clients           { any; };
        match-destinations      { any; };
        recursion no;
        allow-query-cache { none; };

      zone "." IN {
              type hint;
              file "named.root";
      };
include "/var/named/chroot/etc/named.conf.local";
};
Reply With Quote
The Following User Says Thank You to akamarinos For This Useful Post:
rzlines (24th December 2010)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install The Perfect Server - CentOS 5.5 i386 livecd dragster HOWTO-Related Questions 1 7th November 2010 21:08
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 09:32
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig aaa999 Server Operation 8 20th December 2007 16:30
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
SuSE as master DNS server and Centos as slave DNS server... sthompson Server Operation 3 17th September 2006 13:24


All times are GMT +2. The time now is 14:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.