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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th December 2010, 19:17
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default Second nameserver cannot connect to the internet.

Hello to you all,

I have set up my Centos 5.5 server with ISPConfig 3 as a nameserver and as a router.
This server has two networkcards eth0 which connects directly to the internet and has the following set up:
IP 192.168.2.10
Netmask 255.255.255.0
Gateway 192.168.2.254.
The second networkcard connects to a switch for my internal network this has:
IP 10.0.0.0.10
Netmask 255.255.255.0
Gateway 192.168.2.10
Master nameserver has ip 10.0.0.10
Slave nameserver has ip 10.0.0.15
After setting up the router I'm able to connect to the internet with my xp-computer using a static ip-adres
IP 10.0.0.40
netmask 255.255.255.0
gateway 192.168.2.10

I also would like my secondary nameserver to connect to the internet to use yum etc.
So I set up eth0 on this Centos 4.8 computer as follows:
IP 10.0.0.15
netmask 255.255.255.0
gateway 192.168.2.10

Unfortunally I cannot get a connection to the internet on the second nameserver. I can ping the computers in the 10.0.0.x range but I cannot ping 192.168.2.10. Do I also have to make some settings on the IPtables, or is this a problem due to Bind, and do I have to correct my named.conf.

With kind regards,

Ad.
Reply With Quote
Sponsored Links
  #2  
Old 10th December 2010, 19:21
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default

This is the named.conf file on the slave:

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { any; };
# listen-on-v6 port 53 { ::1; };
listen-on-v6 port 53 { 127.0.0.1;10.0.0.10;10.0.0.15;10.0.0.20;10.0.0.30; 10.0.0.40;10.0.0.50; };
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";
allow-query { 127.0.0.1;10.0.0.10;10.0.0.15;10.0.0.20;10.0.0.30; 10.0.0.40;10.0.0.50; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
#zone "." IN {
# type hint;
# file "named.root";
#};
acl "mylan" {
127/8; 10.0.0.0/24;
};

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

view "inside" {
match-clients { "mylan"; };
recursion yes;

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

zone "0.0.10.in-addr.arpa" IN {
type slave;
file "yourlan.db";
masters { 10.0.0.10; };
};

zone "amtand.nl" {
type slave;
file "db.amtand.nl.inside";
masters { 10.0.0.10; };
};

};

view "outside" {
match-clients { any; };
recursion no;

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

zone "amtand.nl" {
type slave;
file "db.amtand.nl.outside";
allow-transfer { 192.168.2.10; };
masters { 10.0.0.10; };
};
};

include "/var/named/chroot/etc/rndc.key";
include "/var/named/chroot/etc/named.conf.local";

SELinux and firewall options are both disabled.

Last edited by Showa; 11th December 2010 at 09:57.
Reply With Quote
  #3  
Old 12th December 2010, 13:33
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default

Is no bind problem, stopping named has no effect,

I did a complete reinstall, and also then I wasn't able to connect through the Centos router. Connecting the computer directly to to the gateway, I was only able to connect by DHCP. Using a fixed IP was no succes.

Using netstat -r there is no gateway with a fixed adress.

Anybody has a clue?
Reply With Quote
  #4  
Old 13th December 2010, 19:30
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
 
Default

Problem solved!

The answer was quit simple. I thought the gateway had to point to eth0 which is connected to the internet (this functioned on the windows computers) in my case 192.168.2.10. The solution was putting the gateway at 10.0.0.10 the ip of eth1, and after a network restart I was able to connect to the internet.

My next task building a samba server for my internal network.

With kind regards,

Ad.
Reply With Quote
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
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 10:37
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
can't send/receive mail fedora 12 - ispconfig 3 ev0css Installation/Configuration 9 17th May 2010 21:44
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
Mail not working epicuniversal General 5 13th June 2009 08:24


All times are GMT +2. The time now is 08:27.


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