Hi Zentyaleros,
I'm trying to set up Zentyal 2.0-4 as a Gateway in the office of a
small business (with other Zentyal modules installed, which should not matter here).
I believe, this case could potentially be representative for many
small businesses and I'm therefore looking forward to developing a HowTo (this first post, until now, only describes the problem, but unfortunatly not the solution).
DNS configuration seems to be challenging for most non-IT-experts (like me), which is why this subjects seems to come up in this forum over and over again.
I found a good post here:
http://forum.zentyal.org/index.php/topic,1192.msg4671.html#msg4671...
but this does not completely reflect the following reality:
I'm in a small office, not a data center - meaning that my internet connection is provided by my ISP through a dynamic IP, not a static IP. I may set up dynDNS to reach my server from the outside, but hosting my public website
www.mydomain.org is not an option on our local server. The good thing: we don't need/ want to host the public website, because -probably just like most small businesses- we already have one up and running (on a server in a data center).
This includes another interesting reality:
I believe that most small businesses, who are starting to look into using Zentyal, are not starting up their businesses from scratch, but already use some sort of IT - potentially even with a server and some services running in their offices and are considering Zentyal for the convenience of easier server management.
Also:
I would like to use my routers "only" as switches and WLAN access points and use Zentyal for the routing. I don't know, how relevant this is, but it might be worth mentioning.
This is what I would like to accomplish:
I would like to use mydomain.org @ my LAN, but have subdomains, such as www.mydomain.org someplace else @ the Internet.
HowTo set up DNS with Zentyal?In my case, I'm currently running Ubuntu Server 8.04 @ 192.168.0.222 and Zentyal is @ 192.168.0.223.
On
my "old" server, one part of DNS is configuered at /etc/bind/zones/mydomain.org.db like this:
$ttl 60
@ IN SOA myoldserver root.myoldserver (
2008010403
10800
3600
432000
38400 )
@ IN NS myoldserver
router1 IN A 192.168.0.1
router2 IN A 192.168.0.2
myoldserver IN A 192.168.0.222
*.myoldserver IN A 192.168.0.222
client1 IN A 192.168.0.201
client2 IN A 192.168.0.202
client3 IN A 192.168.0.203
www IN NS ns1.first-ns.de.
www IN NS robotns2.second-ns.de.
Here is my config on
Zentyal:
-> Core -> Network -> DNSDomain Name Server Resolver List127.0.0.1
208.67.222.222
208.67.220.220
Search Domainmydomain.org
-> Infrastructure -> DNSList of Domainsmydomain.org - IP: 192.168.0.223 - Dynamic: yes
www.mydomain.org - IP: -none- - Dynamic: no
for mydomain.org:
Hostnames:
client1: 192.168.0.201
client2: 192.168.0.202
client3: 192.168.0.203
router1: 192.168.0.1
router2: 192.168.0.2
ns: 192.168.0.223; alias: server
Mail Exchangers:
none (yet)
Name Servers:
ns
for
www.mydomain.org:
Hostnames:
ns: 127.0.0.1
Mail Exchangers:
none (yet)
Name Servers:
ns
ns1.first-ns.de
robotns2.second-ns.de
The results at his point:1)
me@zentyal:~$ dig mydomain.org
; <<>> DiG 9.7.0-P1 <<>> mydomain.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 9361
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mydomain.org. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Aug 22 13:17:18 2011
;; MSG SIZE rcvd: 30
2)
me@zentyal:~$ dig client1.mydomain.org
; <<>> DiG 9.7.0-P1 <<>> client1.mydomain.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 57298
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;client1.mydomain.org. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Aug 22 13:21:35 2011
;; MSG SIZE rcvd: 40
3)
me@zentyal:~$ dig www.mydomain.org
; <<>> DiG 9.7.0-P1 <<>> www.mydomain.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31780
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;www.mydomain.org. IN A
;; AUTHORITY SECTION:
www.mydomain.org. 86400 IN SOA ns.www.mydomain.org. hostmaster.www.mydomain.org. 2011082210 28800 7200 2419200 86400
;; Query time: 31 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Aug 22 13:23:05 2011
;; MSG SIZE rcvd: 84
Means:
DNS doesn't resolve as I would like it to.OK, let's try
ping:
1)
me@zentyal:~$ ping mydomain.org
PING mydomain.org (11.22.33.44) 56(84) bytes of data.
64 bytes from remote.server.com (11.22.33.44): icmp_seq=1 ttl=47 time=290 ms
64 bytes from remote.server.com (11.22.33.44): icmp_seq=2 ttl=47 time=287 ms
64 bytes from remote.server.com (11.22.33.44): icmp_seq=3 ttl=48 time=288 ms
^C
--- mydomain.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 287.611/288.913/290.975/1.599 ms2)
me@zentyal:~$ ping client1.mydomain.org
PING client1.mydomain.org (11.22.33.44) 56(84) bytes of data.
64 bytes from remote.server.com (11.22.33.44): icmp_seq=1 ttl=47 time=290 ms
64 bytes from remote.server.com (11.22.33.44): icmp_seq=2 ttl=47 time=287 ms
64 bytes from remote.server.com (11.22.33.44): icmp_seq=3 ttl=48 time=288 ms
^C
--- client1.mydomain.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 286.871/289.089/292.293/2.320 ms3)
me@zentyal:~$ ping www.mydomain.org
PING www.mydomain.org.mydomain.org (11.22.33.44) 56(84) bytes of data.
64 bytes from remote.server.com (11.22.33.44): icmp_seq=1 ttl=47 time=290 ms
64 bytes from remote.server.com (11.22.33.44): icmp_seq=2 ttl=47 time=287 ms
64 bytes from remote.server.com (11.22.33.44): icmp_seq=3 ttl=48 time=288 ms
^C
--- www.mydomain.org.mydomain.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 289.315/290.187/290.686/0.759 msNotes:
a)
www.mydomain.org.mydomain.orgb)
The IP of the remote serve is actually resolved correctly, to where
www.mydomain.com is hosted (substituted here with 11.22.33.44).
c)
Other domains are resolved correctly. As a matter of fact, I'm writing this post from
client1@mydomain.org.
d)
Yesterday, names in the LAN were resolved correctly, but
www.mydomain.org wasn't. I've been playing with this configs for quite a while now and unfortunatly I can't recall, what I changed before it stopped working.
e)
Where are
ns.www.mydomain.org and
hostmaster.www.mydomain.org coming from?
... and at the end: 2 questions:
What do we need to include and/ or explaine better, so that all this makes sense to more non-IT-pros?
How do I solve my configuration problem?
Saludos,
El Bürger