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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th December 2008, 07:30
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default DNS issues - ISP server settings

Hello,

I had an issue today where a new zone record would not take on my DNS server. I could create the record but the record would not become active on the server and I could not query the new record via nslookup.
I then tried to delete the DNS record, but I cannot remove it from the recycle bin, even though it appears to go, it is still there.

I had to create the primary DNS record on the secondary DNS server, which isnt ideal. I then noticed that under ISP Server the Zonefiles Dir was set to /etc/bind and not /var/named/chroot/var/named as it is on the secondary DNS server. I tried to change it to the correct path, but it reverts back to /etc/bind when I click save. I then compared the permissions between the secondary and the primary servers and the permissions on the primary were different for the directories /var/named/chroot and below. I modified the permissions so that they are the same on both systems but I still cannot change the path under Zonefiles Dir.

Also I now see in the recycle bins under ISP Manager and DNS Manager that is says the system is updating files - it has been like this for over an hour. The server is still handling DNS queries correctly I just cannot add new zones or delete old ones.

I have restarted the ISPCONFIG service but to no avail.

I am running CENTOS 5.2 and the latest release of ISPCONFIG. Server has been fine until I noticed this today.

Any help greatly appreciated

Regards
Matt
Reply With Quote
Sponsored Links
  #2  
Old 4th December 2008, 10:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Please redor the steps for the named installation from the perfect setup guide for centos 5.2 and then you can change the path again in ispconfig. The problem occured because centos messes up the bind directory permissions when you unstall a bind update with yum.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
punto (4th December 2008)
  #3  
Old 4th December 2008, 11:52
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Thanks a bunch Till, that did the trick!

Should I expect the same to happen to the other box? That is also CENTOS 5.2

Cheers
Matt
Reply With Quote
  #4  
Old 24th July 2009, 08:09
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default Fedora Core 10 - Same Problem with YUM

I had the same experience when I updated Fedora Core 10 with YUM, the ownnership of /var/named/chroot/var/named and /var/named/chroot/var/run were both changed to "root".

The solution was to

chown -R named /var/named/chroot/var/named
and
chown -R named /var/named/chroot/var/run

then reload named with

/etc/init.d/named force-reload

Richard
Reply With Quote
  #5  
Old 25th July 2009, 02:31
korbynn korbynn is offline
Member
 
Join Date: May 2009
Posts: 81
Thanks: 2
Thanked 4 Times in 4 Posts
Default

I seem to be missing something here.
I did all the steps above but no success. What gives?
CentOS 5.2
ISPConfig 2.2.32
I really need the DNS entries to work.
Reply With Quote
  #6  
Old 27th July 2009, 00:23
Turbanator Turbanator is offline
Senior Member
 
Join Date: Jun 2008
Posts: 218
Thanks: 22
Thanked 16 Times in 16 Posts
Default

I too am stuck with this. just did a perfect install fedora 10 and my domains all go to the sharedip page. Everything that I can see is identical to the original server. What am I missing? all pri. zones are the same. I did the bind reload from perfect and the chown trick but nothing. I'll pull a windows ritual and reboot the server but I'm lost now.
Reply With Quote
  #7  
Old 27th July 2009, 13:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in Vhosts_ispconfig.conf, and what's the output of
Code:
ifconfig
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 27th July 2009, 16:22
Turbanator Turbanator is offline
Senior Member
 
Join Date: Jun 2008
Posts: 218
Thanks: 22
Thanked 16 Times in 16 Posts
Default

Code:
[root@ns1 vhosts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:0A:01:66
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe0a:166/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:45323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3235931 (3.0 MiB)  TX bytes:2259215 (2.1 MiB)
          Interrupt:19 Base address:0x2000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2010 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2010 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1822742 (1.7 MiB)  TX bytes:1822742 (1.7 MiB)

/etc/httpd/conf/vhosts/Vhosts_ispconfig.conf

Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.5:80
<VirtualHost 192.168.1.5:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
#
#
######################################
# Vhost: www.keystononline.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
ServerName www.keystononline.com:80
ServerAdmin webmaster@keystononline.com
DocumentRoot /var/www/web1/web
ServerAlias keystononline.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias  /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web1/phptmp/
php_admin_value session.save_path /var/www/web1/phptmp/
Alias /error/ "/var/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#

ISP Manager shows local ip as the server address.
DNS Manager is showing public ip as the addresses.
DNS settings show /var/named/chroot/etc/named.conf and /var/named/chroot/var/named

This was done as a new install of f10 in a VM with repo loads during install as a duplicate of an existing machine so I tried (twice) to make sure that I duplicated everythign exactly as the original machine is set (at least in terms is ispconfig 2) The only files I altered were httpd.conf to alow for rewrite options.
Reply With Quote
  #9  
Old 28th July 2009, 14:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Does
Code:
dig @localhost www.keystononline.com
show the correct IP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 28th July 2009, 16:57
Turbanator Turbanator is offline
Senior Member
 
Join Date: Jun 2008
Posts: 218
Thanks: 22
Thanked 16 Times in 16 Posts
 
Default

yep
Code:
[root@ns1 ~]# dig @localhost www.keystononline.com

; <<>> DiG 9.5.1-P2-RedHat-9.5.1-2.P2.fc10 <<>> @localhost www.keystononline.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33606
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;www.keystononline.com.         IN      A

;; ANSWER SECTION:
www.keystononline.com.  86400   IN      A       12.233.110.51

;; AUTHORITY SECTION:
keystononline.com.      86400   IN      NS      ns1.keystondns.com.

;; Query time: 45 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jul 28 07:54:11 2009
;; MSG SIZE  rcvd: 84

[root@ns1 ~]#
I may setup an fc9 perfecr setup and see if that works since my current fc9 server has been running great and has been yum'd without any issue. but I wonder why the fc10 doesn't.
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
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 16:30
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01


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


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