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
  #11  
Old 16th November 2011, 20:37
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hello,

Saw this old post.

It also helped me with a nameserver issue.

Basically, I am using the ISPConfig API to create nameserver entries. At first all was not working even though as far as I could tell, the entries in the DB were correct.

Then I saw this thread and it mentioned the /etc/resolv.conf file.

I looked there and saw that an entry for the zone created (using the API) was not there. After I put it in, everything worked.

So, my question is if there is some requirement that one has to place an entry into /etc/resolv.conf manually when creating new DNS entries?

TIA
Reply With Quote
Sponsored Links
  #12  
Old 17th November 2011, 08:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,483
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

The file /etc/resolv.conf contains one or more external nameservers which the system can use to resolve domains, it shall not contain any local domains. So DNS entries of local domains should not be added to /etc/resolf.conf and you should remove the domain that you added manually.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 27th November 2011, 07:03
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Quote:
So DNS entries of local domains should not be added to /etc/resolf.conf and you should remove the domain that you added manually.
If I remove them then nothing will work.

From what I saw online, if I create a virtual host, (with a different domain name), then I would place an entry into /etc/hosts mapping to the IP address (for testing purposes).

Under ISPConfig, if I add the create a virtual host with the Site functionality AND create a matching mail domain to go with it, what records would I place in the DNS for these 2 items? My guesses are a MX record for mail and a CNAME record for the website.

Can you confirm?
Reply With Quote
  #14  
Old 29th November 2011, 07:54
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hi again - made a mistake with the info above.

Above I mentioned:
Quote:
Then I saw this thread and it mentioned the /etc/resolv.conf file.

I looked there and saw that an entry for the zone created (using the API) was not there. After I put it in, everything worked.
This was not correct.

It was not /etc/resolv.conf

but

/etc/named.conf

For /etc/named.conf had to add:

Quote:
zone "faafaa.com" {
type master;
allow-transfer {none;};
file "/var/named/pri.faafaa.com";
};

/var/named/pri.faafaa.com looks like:

Quote:
$TTL 86400
@ IN SOA ns1.pridelands.com. administrator.faafaa.com. (
2011111601 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;

a0555m001 86400 A 192.168.1.70
faafaa.com. 86400 A 192.168.1.70
faafaa.com. MX 0 mail.faafaa.com.
faafaa.com. NS ns1.pridelands.com.
faafaa.com. NS ns2.pridelands.com.
mail 86400 A 192.168.1.70
www 86400 A 192.168.1.70
Why is it that when a domain is created, the information is not added to named.conf? The program creates: pri.faafaa.com but does not add it to /etc/named.conf does it manually have to be added?

Does this have to be done for EVERY new domain that is added? So, 80 customers with different domains means 80 entries in the /etc/named.conf file?

TIA

Last edited by dgmufasa; 29th November 2011 at 07:56.
Reply With Quote
  #15  
Old 29th November 2011, 07:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,483
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

The info has to be in the file named.conf.local and not named.conf, as nnamed.conf is managed by the package manager and additional zones have to be in named.conf.local and thats where ISPConfig adds this information. named.conf.local is included into named.conf. I guess you installed named after ispconfig was installed or you have overwritten the named.conf somehow so that the include is missing now. To correct your setup, remove everything that you added manually to the named.conf file, then run the ispconfig 3 update and choose to reconfigure services so that you named gets configured again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #16  
Old 29th November 2011, 09:20
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hi and thanks so much for the quick response

There was a problem with one of the domains and someone had configured it this way to solve the problem.

Quote:
Originally Posted by till View Post
To correct your setup, remove everything that you added manually to the named.conf file, then run the ispconfig 3 update and choose to reconfigure services so that you named gets configured again.
I found information here:
http://www.faqforge.com/linux/contro...e-ispconfig-3/

This will not affect the current DNS entries - correct? Only the /etc/named.conf and /etc/named.local.conf files will be changed?

I believe below was the original before changes were made.
Quote:
//
// 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 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

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

include "/etc/named.rfc1912.zones";
Reply With Quote
  #17  
Old 29th November 2011, 09:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,483
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

A update will not affect current dns entries. You should update your system on a regular basis to keep it safe.

But if you dont want to update, you can restore the named.conf file by using the one you posted above and then add this line at the end:

include "/etc/named.conf.local";

and then restart named.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #18  
Old 5th December 2011, 01:13
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
 
Default

Hi again and thanks for the continued responses

Above you mentioned:
Quote:
You should update your system on a regular basis to keep it safe.
How so?
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
name server and dns not working properly theleech1 Installation/Configuration 5 12th July 2010 10:41
Mail and DNS troubles with ISPconfig 3 in Ubuntu 10.04 hakimus HOWTO-Related Questions 11 16th June 2010 14:56
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
DNS problem with ubuntu altaibskt Server Operation 6 25th January 2009 19:40
ISP-Ubuntu breezy ispconfig dns email e-mail working finally yellowjelly HOWTO-Related Questions 0 19th November 2005 20:30


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


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