Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th February 2009, 17:06
marm26 marm26 is offline
Member
 
Join Date: Jan 2009
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nameserver Problem

Hi guys.

I am trying to add a new domain on my server. I want it to have its own nameserver ns.mydomain.com

I followed the steps outlined here:
http://www.howtoforge.com/ispconfig_dns_godaddy

However I can't get my newly set up nameserver to resolve the domain correctly.

dig @ns1.mydomain.com any mydomain.com

never returns this line:
mydomain.com. 86400 IN SOA ns1.mydomain.com. hostmaster.mydomain.com. 2006060705 28800 7200 604800 86400

So I guess the domain is not properly resolved by my nameserver.

I have read somewhere that ISPConfig only allows two nameservers. Well I got another domain on an add on ip using its own nameservers. Might this be causing the problem?

Any help with this is greatly appreciated.

Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 11th February 2009, 20:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,750 Times in 2,580 Posts
Default

Quote:
Originally Posted by marm26 View Post
dig @ns1.mydomain.com any mydomain.com

never returns this line:
mydomain.com. 86400 IN SOA ns1.mydomain.com. hostmaster.mydomain.com. 2006060705 28800 7200 604800 86400
What does it return?

What's in the zone file and in named.conf?
__________________
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
  #3  
Old 12th February 2009, 17:19
marm26 marm26 is offline
Member
 
Join Date: Jan 2009
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dig @ns1.mydomain.com any mydomain.com returns the following:

Quote:
; <<>> DiG 9.3.4-P1 <<>> @ns1.mydomain.com any mydomain.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3024
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN ANY

;; ANSWER SECTION:
mydomain.com. 11893 IN SOA ns51.domaincontrol.com. dns.jomax.net. 2009020600 28800 7200 604800 86400

;; AUTHORITY SECTION:
com. 172570 IN NS I.GTLD-SERVERS.net.
com. 172570 IN NS J.GTLD-SERVERS.net.
com. 172570 IN NS K.GTLD-SERVERS.net.
com. 172570 IN NS L.GTLD-SERVERS.net.
com. 172570 IN NS M.GTLD-SERVERS.net.
com. 172570 IN NS A.GTLD-SERVERS.net.
com. 172570 IN NS B.GTLD-SERVERS.net.
com. 172570 IN NS C.GTLD-SERVERS.net.
com. 172570 IN NS D.GTLD-SERVERS.net.
com. 172570 IN NS E.GTLD-SERVERS.net.
com. 172570 IN NS F.GTLD-SERVERS.net.
com. 172570 IN NS G.GTLD-SERVERS.net.
com. 172570 IN NS H.GTLD-SERVERS.net.

;; Query time: 1 msec
;; SERVER: XXX.XXX.XXX.XXX#53(XXX.XXX.XXX.XXX)
;; WHEN: Thu Feb 12 07:10:26 2009
;; MSG SIZE rcvd: 324
/etc/named.conf contains the following

Quote:
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.root";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};


zone "somedomain.net" {
type master;
file "pri.somedomain.net";
};
zone "mydomain.com" {
type master;
file "pri.mydomain.com";
};



//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
the zone file for mydomain.com in /var/named/pri.mydomain.com looks like this:

Quote:
$TTL 86400
@ IN SOA ns1.mydomain.com. name.mydomain.com. (
2009021009 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS ns1.mydomain.com. ; Inet Address of name server 1
NS server1.mydomain.com. ; Inet Address of name server 2
;

MX 10 mail.mydomaina.com.

mydomain.com. A XXX.XXX.XXX.XXX
mail A XXX.XXX.XXX.XXX
www A XXX.XXX.XXX.XXX
mydomain.com. A XXX.XXX.XXX.XXX

mydomain.com. TXT "v=spf1 a mx ptr ~all"

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
I hope that helps.
Reply With Quote
  #4  
Old 12th February 2009, 17:27
marm26 marm26 is offline
Member
 
Join Date: Jan 2009
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

after I added ns1.mydomain.com as an A record again the dig command now returns this:

Quote:
; <<>> DiG 9.3.4-P1 <<>> @ns1.mydomain.com any mydomain.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32646
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;mydomain.com. IN ANY

;; ANSWER SECTION:
mydomain.com. 172800 IN NS ns1.mydomain.com.
mydomain.com. 172800 IN NS ns52.domaincontrol.com.

;; AUTHORITY SECTION:
mydomain.com. 172800 IN NS ns52.domaincontrol.com.
mydomain.com. 172800 IN NS ns1.mydomain.com.

;; ADDITIONAL SECTION:
ns1.mydomain.com. 172800 IN A XXX.XXX.XXX.XXX
ns52.domaincontrol.com. 172800 IN A 208.109.255.26

;; Query time: 101 msec
;; SERVER: XXX.XXX.XXX.XXX#53(XXX.XXX.XXX.XXX)
;; WHEN: Thu Feb 12 07:23:00 2009
;; MSG SIZE rcvd: 146
Still doesnt look like this is right.
Reply With Quote
  #5  
Old 13th February 2009, 15:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,750 Times in 2,580 Posts
Default

What do
Code:
dig @ns1.mydomain.com mydomain.com
dig @ns1.mydomain.com www.mydomain.com
dig @ns1.mydomain.com mail.mydomain.com
display?
__________________
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
  #6  
Old 13th February 2009, 16:13
marm26 marm26 is offline
Member
 
Join Date: Jan 2009
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dig @ns1.mydomain.com mydomain.com

Quote:
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33098
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;mydomain.com. IN A

;; ANSWER SECTION:
mydomain.com. 3600 IN A 68.178.232.100

;; AUTHORITY SECTION:
mydomain.com. 3600 IN NS ns52.domaincontrol.com.

;; ADDITIONAL SECTION:
ns52.domaincontrol.com. 90904 IN A 208.109.255.26

;; Query time: 42 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 13 06:07:56 2009
;; MSG SIZE rcvd: 100
dig @ns1.mydomain.com www.mydomain.com

Quote:
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40015
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1

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

;; ANSWER SECTION:
www.mydomain.com. 3600 IN CNAME mydomain.com.
mydomain.com. 3487 IN A 68.178.232.100

;; AUTHORITY SECTION:
mydomain.com. 3487 IN NS ns52.domaincontrol.com.

;; ADDITIONAL SECTION:
ns52.domaincontrol.com. 90791 IN A 208.109.255.26

;; Query time: 41 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 13 06:09:49 2009
;; MSG SIZE rcvd: 118
dig @ns1.mydomain.com mail.mydomain.com

Quote:
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64837
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com. IN A

;; ANSWER SECTION:
mail.mydomain.com. 3600 IN CNAME pop.secureserver.net.
pop.secureserver.net. 3600 IN CNAME pop.where.secureserver.net.
pop.where.secureserver.net. 300 IN A 64.202.165.92

;; AUTHORITY SECTION:
where.secureserver.net. 3600 IN NS gns3.secureserver.net.
where.secureserver.net. 3600 IN NS gns1.secureserver.net.
where.secureserver.net. 3600 IN NS gns2.secureserver.net.

;; Query time: 359 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 13 06:11:24 2009
;; MSG SIZE rcvd: 171
The all seem to refer to the godaddy nameserver not my own???
Reply With Quote
  #7  
Old 14th February 2009, 14:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,750 Times in 2,580 Posts
Default

Did you tell GoDaddy that you want to use your own nameservers for that domain?
__________________
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 15th February 2009, 13:10
marm26 marm26 is offline
Member
 
Join Date: Jan 2009
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes I did. I made added the new nameserver in a record. I added them in Host Summary, then pointed the domain to this new nameserver.

After this didnt work i tried something else. I have reset all the abouve changes. Now i am simply pointing the domain to an already established nameserver on ISPConfig. (I use this for another domain, actually I wanted those domains to be complety sepertated, hence I tried to add another nameserver)

But I am getting the same result. The nameserver does not properly resolve the new domain. Why is this not working? Everything in ISPCOnfig is set up 100% correctly. At least the things I can see inside the graphical interface...
Reply With Quote
  #9  
Old 16th February 2009, 14:05
marm26 marm26 is offline
Member
 
Join Date: Jan 2009
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok I seem to have found the problem but I have no idea how to fix it.

I restarted BIND and checked my server logs. BIND is loading the zone file for the first domain on my server but not the zone file for the new domain I wanted to add.

Any ideas on how to fix this?
Reply With Quote
  #10  
Old 16th February 2009, 18:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,750 Times in 2,580 Posts
 
Default

Any errors or warnings in /home/admispconfig/ispconfig/ispconfig.log?
What's the output of
Code:
ls -la /root/ispconfig
?
__________________
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
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
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
saslauthd problem: bind: Address already in use fitti70 Server Operation 4 14th May 2007 22:51
BIND problem rvarkevisser Installation/Configuration 1 23rd April 2007 18:37
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 05:40
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 02:56


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


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