HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Fedora Core 2 - DNS Not updating (http://www.howtoforge.com/forums/showthread.php?t=3359)

jackaltx 27th March 2006 10:47

Fedora Core 2 - DNS Not updating
 
I have the laters vers 2.2.0 installon a Fedora Core 2 box

THe DNS does not seem be be updating. THe bind is chrorrted

I tried to change the /etc/bind to /var/named/chroot/var/named but it would not change in the setup area. So I put a symbolic link in and made sure the I was 777'd from the /var/named/chroot down to the directory.

The Sendmail and Apache stuff looks good.

Suggestions please? How do I look at the error messages? Nothing is showing up in the /var/log/message or in /root/ispconfig/httpd/logs. I am not sure what even would cause it to try to write the DNS out again.


my comments so far are perhaps make you links in the "/home/www" betwween your internal key and the site name relative links. that would allow simpler transport.

till 27th March 2006 10:54

Quote:

Originally Posted by jackaltx
I have the laters vers 2.2.0 installon a Fedora Core 2 box

THe DNS does not seem be be updating. THe bind is chrorrted

I tried to change the /etc/bind to /var/named/chroot/var/named but it would not change in the setup area. So I put a symbolic link in and made sure the I was 777'd from the /var/named/chroot down to the directory.

The Sendmail and Apache stuff looks good.

Suggestions please? How do I look at the error messages? Nothing is showing up in the /var/log/message or in /root/ispconfig/httpd/logs. I am not sure what even would cause it to try to write the DNS out again.

The logfile you are searching for is /home/admispconfig/ispconfig/lib/ispconfig.log

Did you got any errors during installation or do you modify the ispconfig database manually. The error you describe appears when the setup did not finish completely and the setup values where not written to the database correctly.

Quote:

my comments so far are perhaps make you links in the "/home/www" betwween your internal key and the site name relative links. that would allow simpler transport.
Thats exactly what ISPConfig is doing.

jackaltx 27th March 2006 11:39

Thanks for the quck reply
 
hmm...no log file there

root@daddy lib]# pwd
/home/admispconfig/ispconfig/lib
[root@daddy lib]# ls
app.inc.php banner.inc.php classes config.inc.php copyright.inc.php go_info.inc.php help index.php lang plugins preload.inc.php session.inc.php
[root@daddy lib]#

No I have not edited this one by hand. I did a test install on a RC4 and tried to get familiar with it before this.

as for the links....this one appears to be absolute.

[root@daddy lib]# ls -l /home/www
total 80
lrwxrwxrwx 1 apache web7 14 Mar 27 01:23 forums.g2interactive.com -> /home/www/web7
drwxr-xr-x 3 root root 4096 Mar 27 00:30 localhost

I would appreciate any help. I have not edited any of the configuration files. I set some defaults in the isp_isp_user table .

I am sure I have cocked up something, Suggestions Please????

till 27th March 2006 11:46

Sorry, the correct log path is: /home/admispconfig/ispconfig/ispconfig.log

jackaltx 27th March 2006 11:51

it is late here...i found that fle
 
grep WARN ispconfig/ispconfig.log
18.02.2006 - 18:18:48 => WARN - Cannot Open File: F:\server\www\ispconfig\install_ispconfig\ispconfi g/users
26.03.2006 - 23:47:15 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: WARNING: could not /etc/rc.d/init.d/httpd restart &> /dev/null

The only thing I see is a bunch of "symbolic link failures", which does surprise me

and a few of these
27.03.2006 - 01:22:52 => INFO - Signalfile Set: insert
27.03.2006 - 01:23:08 => INFO - Signalfile Set: update

jackaltx 27th March 2006 13:08

ok .... got it and this will affect all users of a chrooted named
 
well, this was one of those experiences.....you know the ones you think you come away smater, but you are not sure.

first...you cannot use the webform to change that place were the dns stores the name files. Not sure why, but I had to edit it in the "isp_server" table.

Then after I changes one of the soa values in a record the files were generated...butttttttt named will not start the /etc/named.conf has absolute path variables in it and named is jailed ina chroot.

to make that work I did this

from the /root/ispconfig
find . -exec grep "/var/named" {} \; -print
directory "/var/named";
./isp/conf/named.conf.master

I edited that file (removeing the {BINDDIR} variable to

options {
pid-file "/var/run/named/named.pid";
directory "/var/named";
auth-nxdomain no;

and now I got named working

THe earlier issues with symbolic links are becuase webilizer ran and reduces logs for the domains I had on their just before I installed the software.

ALSO...those links are NOT being made relative by the program. It is probably not an issue for most people.

As I have given help...I sure could use a little tutoria on how to read/traverse these "tree" tables. They look really cool and I would like to see if they might be usefull in another effort.

Thanks
Jackal

falko 27th March 2006 14:58

Quote:

Originally Posted by jackaltx
I tried to change the /etc/bind to /var/named/chroot/var/named but it would not change in the setup area. So I put a symbolic link in and made sure the I was 777'd from the /var/named/chroot down to the directory.

I'm sure this is a permissions problem. The ISPConfig web interface uses PHP's realpath() function to validate the path you put in. The web interface runs as an unpriviledged user; if the directory/file you put in is readable only by root, then realpath() will return FALSE, and ISPConfig continues to use the old value.

jackaltx 30th March 2006 08:50

Thanks!!!
 
You were absolutely correct.

the /var/named directory was 750.....put it to 755 and now the DNS is just as happy as can be and the field in the database updates correctly.

Thanks!

Blu 27th November 2006 13:33

named.conf.master
 
Erm, can anyone post their copy of this... have deleted it by mistake trying to fix my FC5 DNS not updating issue :rolleyes:

Blu 28th November 2006 01:27

named.conf.master
 
Quote:

Originally Posted by Blu
Erm, can anyone post their copy of this... have deleted it by mistake trying to fix my FC5 DNS not updating issue :rolleyes:

Ok, fixed it guys ... updated ISP Config and it seems to have reappeared. Still having this DNS update issue tho .... it seems to create the httpd vhosts file, however, does not update the DNS records. Anyone got any ideas? ..... the permissions are changed to 755 in the chroot jail.

If it helps, my mysql database seems to be updating ok, just the DNS records are not writing. Can't find any clues in the /var/log/message file either - only a load of samba report messages.


Cheers.


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

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