You are not logged in.

#1 2011-06-14 13:31:20

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Bind: zone and subdomains on same IP

Hello everyone,


I have a dedicated server running Archlinux and I am having some troubles with bind.

My zone file might be wrong as I apparently cannot access my subdomains... sometimes... Actually, it seems to depend from where I try to connect. So if I dig:

[robin@vidar ~] % dig blog.rolinh.ch

; <<>> DiG 9.8.0-P2 <<>> blog.rolinh.ch
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 37156
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;blog.rolinh.ch.            IN    A

;; AUTHORITY SECTION:
rolinh.ch.        6389    IN    SOA    ks369178.kimsufi.com. root.rolinh.ch. 2006020201 604800 86400 2419200 604800

;; Query time: 13 msec
;; SERVER: 129.194.4.32#53(129.194.4.32)
;; WHEN: Tue Jun 14 15:29:08 2011
;; MSG SIZE  rcvd: 93

It says no answer. But if I dig from somewhere else:

[robin@odin ~] % dig blog.rolinh.ch

; <<>> DiG 9.8.0-P2 <<>> blog.rolinh.ch
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49960
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;blog.rolinh.ch.            IN    A

;; ANSWER SECTION:
blog.rolinh.ch.        202568    IN    A    94.23.42.46

;; Query time: 16 msec
;; SERVER: 10.0.0.2#53(10.0.0.2)
;; WHEN: Tue Jun 14 15:27:05 2011
;; MSG SIZE  rcvd: 48

Now it gives me an answer...
As bind has been on since two weeks now, what could the problem be?

And one more question: as my subdomains are all on the same server, so same IP, should I use "A" or "CNAME" in the zone file?

blog    IN        CNAME    www.

OR

blog    IN        A        94.23.42.46

Do you have any explanation? If so, I'd be pleased to read it smile

Last edited by Rolinh (2011-06-14 13:32:37)

Offline

Board footer

Powered by FluxBB