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)
-   -   DNS not being created (http://www.howtoforge.com/forums/showthread.php?t=5397)

djtremors 7th July 2006 06:38

DNS not being created
 
Can someone tell me at what point does the master dns domain files get created?

I'm using FC4 with ispc 2.2.3 and created a reseller and then a client. Now created a test domain of blah.com to the clients and clicked the Create DNS and MX yet after the save it doesn't appear to create the DNS records.

I went into the properties of the Site and clicked on the co-domain and selected it. I noticed another set of "Create DNS/MX" which I ticked and saved that too.
Still no DNS created.

where else can it be to create master dns records?

till 7th July 2006 10:48

Is the DNS file written when you create it in the DNS manager?
Does other changes like email accounts or websites get written?

djtremors 7th July 2006 11:34

Looking at this (below), I assume the site works fine and if I put it in my own hosts file an entry for www.blah.com to point to the server. I can browse the "welcome" new site page.

ls -l /var/www/
total 24
drwxr-xr-x 2 root root 4096 Jan 17 22:37 cgi-bin
drwxr-xr-x 3 root root 4096 Jul 7 09:51 error
drwxr-xr-x 2 root root 4096 Jan 17 22:37 html
drwxr-xr-x 3 root root 4096 Jul 7 09:52 icons
drwxr-xr-x 2 root root 4096 Jul 7 10:28 sharedip
drwxr-xr-x 8 apache web1 4096 Jul 7 13:44 web1
lrwxrwxrwx 1 root root 13 Jul 7 13:44 www.blah.com -> /var/www/web1

Wow, I created an email and 2 minutes later the /etc/passwd account FINALLY was created..lol.. i saw this on my test machine at home but didn't expect it on a P4 3Ghz server.

falko 8th July 2006 11:54

Do you see the zone file for the domain in /var/named/chroot/var/named/?

djtremors 8th July 2006 14:22

Hmm checking this out.

damn it. it's now working and there IS a /var/named/chroot folder where I was sure there wasn't one. I can see the chrooted folder now.. Argh!

sorry for the trouble.

djtremors 8th July 2006 14:52

FAR OUT!!

I really got to stop working on multiple servers.

The problem wasn't my home environment it was the machine at work. Grr (time for bed really).

There is no chroot folder. I don't think FC4 out of the box is setup in an chrooted environment.

[root@warlock install_ispconfig]# ls -l /var/named/
total 72
drwxrwx--- 2 named named 4096 May 18 2005 data
-rw-r--r-- 1 named named 198 Aug 26 2004 localdomain.zone
-rw-r--r-- 1 named named 195 Aug 26 2004 localhost.zone
-rw-r--r-- 1 named named 415 Aug 26 2004 named.broadcast
-rw-r--r-- 1 named named 2518 Aug 26 2004 named.ca
-rw-r--r-- 1 named named 432 Aug 26 2004 named.ip6.local
-rw-r--r-- 1 named named 433 Aug 26 2004 named.local
-rw-r--r-- 1 named named 416 Aug 26 2004 named.zero
drwxrwx--- 2 named named 4096 May 18 2005 slaves

the data/ and slaves/ folder are empty.

falko 9th July 2006 13:59

Quote:

Originally Posted by djtremors
There is no chroot folder. I don't think FC4 out of the box is setup in an chrooted environment.

[root@warlock install_ispconfig]# ls -l /var/named/
total 72
drwxrwx--- 2 named named 4096 May 18 2005 data
-rw-r--r-- 1 named named 198 Aug 26 2004 localdomain.zone
-rw-r--r-- 1 named named 195 Aug 26 2004 localhost.zone
-rw-r--r-- 1 named named 415 Aug 26 2004 named.broadcast
-rw-r--r-- 1 named named 2518 Aug 26 2004 named.ca
-rw-r--r-- 1 named named 432 Aug 26 2004 named.ip6.local
-rw-r--r-- 1 named named 433 Aug 26 2004 named.local
-rw-r--r-- 1 named named 416 Aug 26 2004 named.zero
drwxrwx--- 2 named named 4096 May 18 2005 slaves

the data/ and slaves/ folder are empty.

Did you follow this tutorial: http://www.howtoforge.com/perfect_setup_fedora_core_4 for your FC4 machine?

djtremors 9th July 2006 15:03

yes sort of. I followed it in another FC4 install and from memory it failed on installing apt

PHP Code:

rpm -ivh http://ftp.freshrpms.net/pub/fedora/linux/extras/4/i386/apt-0.5.15cnc7-6.fc4.i386.rpm


 

But I browsed the url and managed to find the new name of the file.
Then there was another part which failed so now I've been working without it though didn't noticed that ispc required the chroot path to do it's work.

I've done the yum install bind-chroot and it's now running a chroot version but tried to update the dns and still not creating files.

any other minimum requirements to create the zone files or could you tell me where the DNS is created or updated in the php code and I'll find it myself?

djtremors 10th July 2006 07:34

Would setting the path to server_bind_zonefile_dir in isp_server db entry make any difference?

djtremors 10th July 2006 08:34

OK fixed.

I noticed in the server settings section the zone path dir was somehow set to /etc/bind which doesn't exist. That explains the missing zone files.

I set it to /var/named/chroot/var/named/ and saved it then made a change to the DNS and it recorded the entry.. yippie :D

server_bind_zonefile_dir in the config DB now shows /var/named/chroot/var/named/ and works fine now ;)


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

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