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=27)
-   -   Subdomain as domain & dns things (http://www.howtoforge.com/forums/showthread.php?t=56629)

sumfvm 21st March 2012 15:44

Subdomain as domain & dns things
 
Hi all,

Since about one week I met a serious problem with my dns server: no-one of the subdomain are accessible (sometimes it works, sometimes no).

ns1.super-hebergement.fr is my ISPconfig host (dns host of this domain is not ISPconfig host itself but managed by OVH.net DNS)

ns2.super-hebergement.fr point to the secondary dns service provide by Oneline.net, my dedicated server provider.

Exemple with clips.super-h.fr:

Quote:

dig clips.super-h.fr

; <<>> DiG 9.7.0-P1 <<>> clips.super-h.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 100
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;clips.super-h.fr. IN A

;; AUTHORITY SECTION:
super-h.fr. 9855 IN SOA ns1.super-hebergement.fr. stephane.grillot.gmail.com. 2012031804 28800 7200 604800 86400

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 20 06:47:26 2012
;; MSG SIZE rcvd: 118
Not ambigous status: NXDOMAIN

Another one:

Quote:

dig @ns1.super-hebergement.fr clips.super-h.fr

; <<>> DiG 9.7.0-P1 <<>> @ns1.super-hebergement.fr clips.super-h.fr
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23672
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;clips.super-h.fr. IN A

;; ANSWER SECTION:
clips.super-h.fr. 86400 IN A 88.190.230.134

;; AUTHORITY SECTION:
clips.super-h.fr. 86400 IN NS ns1.super-hebergement.fr.
clips.super-h.fr. 86400 IN NS ns2.super-hebergement.fr.

;; Query time: 4 msec
;; SERVER: 88.190.230.134#53(88.190.230.134)
;; WHEN: Tue Mar 20 06:47:14 2012
;; MSG SIZE rcvd: 104
Quote:

dig @ns2.super-hebergement.fr clips.super-h.fr

; <<>> DiG 9.7.0-P1 <<>> @ns2.super-hebergement.fr clips.super-h.fr
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52391
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;clips.super-h.fr. IN A

;; AUTHORITY SECTION:
super-h.fr. 86400 IN SOA ns1.super-hebergement.fr. stephane.grillot.gmail.com. 2012031804 28800 7200 604800 86400

;; Query time: 4 msec
;; SERVER: 88.191.254.71#53(88.191.254.71)
;; WHEN: Tue Mar 20 06:50:42 2012
;; MSG SIZE rcvd: 118
Better but doesn't explain the first result...

Quote:

dig @ns2.super-hebergement.fr clips.super-h.fr

; <<>> DiG 9.7.0-P1 <<>> @ns2.super-hebergement.fr clips.super-h.fr
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52391
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;clips.super-h.fr. IN A

;; AUTHORITY SECTION:
super-h.fr. 86400 IN SOA ns1.super-hebergement.fr. stephane.grillot.gmail.com. 2012031804 28800 7200 604800 86400

;; Query time: 4 msec
;; SERVER: 88.191.254.71#53(88.191.254.71)
;; WHEN: Tue Mar 20 06:50:42 2012
;; MSG SIZE rcvd: 118
My zone:
Quote:

zone "clips.super-h.fr" {
type master;
allow-transfer {88.191.254.71;};
file "/etc/bind/pri.clips.super-h.fr";
};
My /etc/bind/pri.clips.super-h.fr:
Quote:

$TTL 86400
@ IN SOA ns1.super-hebergement.fr. stephane.grillot.gmail.com. (
2012032001 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;

clips.super-h.fr. 86400 A 88.190.230.134
clips.super-h.fr. 86400 MX 10 mail.clips.super-h.fr.
clips.super-h.fr. 86400 NS ns1.super-hebergement.fr.
clips.super-h.fr. 86400 NS ns2.super-hebergement.fr.
mail 86400 A 88.190.230.134
www 86400 A 88.190.230.134
Nothing special so...

In doubt:
Quote:

dig ns1.super-hebergement.fr

; <<>> DiG 9.7.0-P1 <<>> ns1.super-hebergement.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26757
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4

;; QUESTION SECTION:
;ns1.super-hebergement.fr. IN A

;; ANSWER SECTION:
ns1.super-hebergement.fr. 85175 IN A 88.190.230.134

;; AUTHORITY SECTION:
super-hebergement.fr. 171575 IN NS dns18.ovh.net.
super-hebergement.fr. 171575 IN NS ns18.ovh.net.

;; ADDITIONAL SECTION:
ns18.ovh.net. 85175 IN A 213.251.128.138
ns18.ovh.net. 85175 IN AAAA 2001:41d0:1:198a::1
dns18.ovh.net. 85175 IN A 213.251.188.138
dns18.ovh.net. 85175 IN AAAA 2001:41d0:1:4a8a::1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 20 06:52:05 2012
;; MSG SIZE rcvd: 192
Sorry about my very poor english written, as you can see it, I'm a french guy ;)

sumfvm 21st March 2012 15:48

Quote:

ping clips.super-h.fr
ping: unknown host clips.super-h.fr
The problem appear with all my customers (about 60 subdomains), all others domains are ok.

Example:
Code:

dig lescrapaudsdegigo.fr

; <<>> DiG 9.7.0-P1 <<>> lescrapaudsdegigo.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57054
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;lescrapaudsdegigo.fr. IN A

;; ANSWER SECTION:
lescrapaudsdegigo.fr. 86400 IN A 88.190.230.134

;; AUTHORITY SECTION:
lescrapaudsdegigo.fr. 86400 IN NS ns2.super-hebergement.fr.
lescrapaudsdegigo.fr. 86400 IN NS ns1.super-hebergement.fr.

;; ADDITIONAL SECTION:
ns1.super-hebergement.fr. 84302 IN A 88.190.230.134
ns2.super-hebergement.fr. 84302 IN A 88.191.254.71

;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 20 07:06:38 2012
;; MSG SIZE rcvd: 140

Configuration of the parent zone:
Code:

zone "super-h.fr" {
type master;
allow-transfer {88.191.254.71;};
also-notify {88.191.254.71;};
file "/etc/bind/pri.super-h.fr";
};

/etc/bind/pri.super-h.fr:
Code:

$TTL 86400
@ IN SOA ns1.super-hebergement.fr. stephane.grillot.gmail.com. (
2012031804 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;

ftp.super-h.fr. 86400 A 88.190.230.134
mail 86400 A 88.190.230.134
ns1.super-h.fr. 86400 NS 88.190.230.134
super-h.fr. 86400 A 88.190.230.134
super-h.fr. 86400 MX 10 mail.super-h.fr.
super-h.fr. 86400 NS ns1.super-hebergement.fr.
super-h.fr. 86400 NS ns2.super-hebergement.fr.
www 86400 A 88.190.230.134

dig super-h.fr:
Code:

dig super-h.fr

; <<>> DiG 9.7.0-P1 <<>> super-h.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54033
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;super-h.fr. IN A

;; ANSWER SECTION:
super-h.fr. 84138 IN A 88.190.230.134

;; AUTHORITY SECTION:
super-h.fr. 84138 IN NS ns2.super-hebergement.fr.
super-h.fr. 84138 IN NS ns1.super-hebergement.fr.

;; ADDITIONAL SECTION:
ns1.super-hebergement.fr. 84091 IN A 88.190.230.134
ns2.super-hebergement.fr. 84091 IN A 88.191.254.71

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 20 07:10:09 2012
;; MSG SIZE rcvd: 130

The only thing I plan to do is adding "IN A" entry in super-h.fr zone for all subdomains (one client = one subdomain) but until last week it works perfectly...

Any idea?

sumfvm 21st March 2012 16:01

Examples of sub-domains who didn't work:

http://jdp2012.super-h.fr
http://btslarochelle.super-h.fr
http://websansfin.super-h.fr
http://cercle-histoi...nies.super-h.fr
http://aeevb.super-h.fr
http://lessagittaires.super-h.fr
http://sos-animaux.super-h.fr
http://3bach-elec.super-h.fr
http://ericf.super-h.fr
http://tmm.super-h.fr
http://cd31-tiralarc.super-h.fr
http://redmine.super-h.fr
http://cla.super-h.fr
http://my-logo.super-h.fr
http://e-a-j-d-burundi.super-h.fr
http://fasolidaire.super-h.fr
http://lecourrierdebovet.super-h.fr

falko 22nd March 2012 16:35

Quote:

dig @ns2.super-hebergement.fr clips.super-h.fr

; <<>> DiG 9.7.0-P1 <<>> @ns2.super-hebergement.fr clips.super-h.fr
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52391
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;clips.super-h.fr. IN A

;; AUTHORITY SECTION:
super-h.fr. 86400 IN SOA ns1.super-hebergement.fr. stephane.grillot.gmail.com. 2012031804 28800 7200 604800 86400

;; Query time: 4 msec
;; SERVER: 88.191.254.71#53(88.191.254.71)
;; WHEN: Tue Mar 20 06:50:42 2012
;; MSG SIZE rcvd: 118
Your ns2 has no answer, so that looks to me as if the zone wasn't transferred to ns2.

sumfvm 23rd March 2012 10:48

Hello Falko,

The problem is solved, my DNS provider was faulty, now I host my own two DNS servers but I have one more questions: I bought the ISPconfig guide to know more about mirror setup for DNS, I saw few things about it and it is not a slave/master cluster so, how does it work? Is it the good practice to configure a second dns server by this way (dns service with mirrir setrup of my first ISPconfig server?)?

Regards,

till 23rd March 2012 13:29

Quote:

Is it the good practice to configure a second dns server by this way (dns service with mirrir setrup of my first ISPconfig server?)?
Thats the recommended way when both servers run ispconfig. The dns records between the servers are synced internally by ispconfig, so this setup is asier then using the normal bind synchronisation.

sumfvm 24th March 2012 23:00

Thanks for all, all is working now perfectly :)


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

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