primaxx
March 26th, 2009, 08:31 AM
Hello,
I must just admit, the more I work with networking, the more difficult I find it...
I know I have asked a more or less similar question earlier, but I never got the answer I needed, so I try again.
What I desperately need someone to tell me is how to configure /etc/hosts and the zone-files /etc/bind/db.test.no and /etc/bind/db.example.no given the following scenario:
One public, static ip 100.200.300.400
test.no and example.no are pointed to this ip-address (100.200.300.400)
IMAP, smtp and such services are routed to 192.1.2.3 in the local network
Zimbra will be installed on 192.1.2.3, (hostname: ubuntubox) and will serve the mail for both test.no and example.no. Even though all the computers in my network uses the public dns-servers 100.200.0.100 and 100.200.0.200, this machine (the ubuntubox) needs to have a local dns-server running. This is because I need the result of when I run nslookup mail.test.no, or nslookup mail.example.no to be the local ip 192.1.2.3, and not the public 100.200.300.400.
(If you understood that you are probably a professor in linguistics... :P)
This is my /etc/hosts today:
127.0.0.1 localhost.localdomain localhost
127.0.1.1 ubuntubox.test.no ubuntubox ubuntubox.example.no
192.1.2.3 mail.test.no mail mail.example.no mail
100.200.300.400 mail.test.no mail mail.example.no mail,
and this is one of my dns zone-files (/etc/bind/db.test.no):;
; BIND data file for test.no
;
$TTL 604800
@ IN SOA mail.test.no. webmaster.test.no. (
2009032502 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS mail
IN MX 10 mail
IN A 192.1.2.3
mail IN A 192.1.2.3
The Zimbra-installation fails, and I do believe my problem is related to this:
When running nslookup test.no (from 192.1.2.3) the response is 192.1.2.3 (which is what I want it to be.)
When running nslookup mail.test.no (from 192.1.2.3) the response is Host mail.test.no not found 3(NXDOMAIN).
Are there any samaritans here who understand my problem and can help me with this?
Thanks upfront! :-)
(Says one who easily understand the concept of dns, but find it incredibly hard to configure......)
I must just admit, the more I work with networking, the more difficult I find it...
I know I have asked a more or less similar question earlier, but I never got the answer I needed, so I try again.
What I desperately need someone to tell me is how to configure /etc/hosts and the zone-files /etc/bind/db.test.no and /etc/bind/db.example.no given the following scenario:
One public, static ip 100.200.300.400
test.no and example.no are pointed to this ip-address (100.200.300.400)
IMAP, smtp and such services are routed to 192.1.2.3 in the local network
Zimbra will be installed on 192.1.2.3, (hostname: ubuntubox) and will serve the mail for both test.no and example.no. Even though all the computers in my network uses the public dns-servers 100.200.0.100 and 100.200.0.200, this machine (the ubuntubox) needs to have a local dns-server running. This is because I need the result of when I run nslookup mail.test.no, or nslookup mail.example.no to be the local ip 192.1.2.3, and not the public 100.200.300.400.
(If you understood that you are probably a professor in linguistics... :P)
This is my /etc/hosts today:
127.0.0.1 localhost.localdomain localhost
127.0.1.1 ubuntubox.test.no ubuntubox ubuntubox.example.no
192.1.2.3 mail.test.no mail mail.example.no mail
100.200.300.400 mail.test.no mail mail.example.no mail,
and this is one of my dns zone-files (/etc/bind/db.test.no):;
; BIND data file for test.no
;
$TTL 604800
@ IN SOA mail.test.no. webmaster.test.no. (
2009032502 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS mail
IN MX 10 mail
IN A 192.1.2.3
mail IN A 192.1.2.3
The Zimbra-installation fails, and I do believe my problem is related to this:
When running nslookup test.no (from 192.1.2.3) the response is 192.1.2.3 (which is what I want it to be.)
When running nslookup mail.test.no (from 192.1.2.3) the response is Host mail.test.no not found 3(NXDOMAIN).
Are there any samaritans here who understand my problem and can help me with this?
Thanks upfront! :-)
(Says one who easily understand the concept of dns, but find it incredibly hard to configure......)