Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
resolved in the world
IP (external): 84.255.0.0 - mail.zimbra.si
DNS (external): 84.0.0.1 and 84.0.0.2
my named.conf
options {
forwarders { 84.0.0.1; 84.0.0.2; };
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
include "/etc/rndc.key";
// We are the master server for server.example.com
zone "mail4.zimbra.si" {
type master;
file "/etc/bind/db.mail4.zimbra.si";
};
include "/etc/named.conf.include";
db.mail4.zimbra.si
;
; Addresses and other host information.
;
@ IN SOA mail4.zimbra.si. root.mail4.zimbra.si. (
10119 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS 192.168.2.22
IN MX 10 mail.zimbra.si.
mail IN A 192.168.2.22
LOGS
cat /etc/hosts I don't now way I have 127.0.0.2 -> I commet !!
You don't say what exactly is your problem. Note that the dig results from here, are completely different from those you've posted. You can check them here.
Anyway in the zone file you've posted, the zone name should be zimbra.si (and not mail4.zimbra.si) and the the NS record is wrong
Quote:
IN NS 192.168.2.22
It should be something like:
Code:
IN NS mail4.zimbra.si.
mail4 IN A 192.168.2.22
Another thing that is not correct, is the external IP of mail.zimbra.si (84.255.0.0). It cannot be a host IP, as the 1st IP is reserved for the network/subnet to where that host belongs.
Last edited by bathory; 07-29-2011 at 07:54 AM.
Reason: Wrong URL
How do you thing that my external IP of mail.zimbra.si (84.255.0.0.) is not correct. I don't use this IP, this only means that my Provider has MX and A record for mail.zimbra.si (84.255.0.0).
Could I become your private e-mail, then i can sand your my real data, new I change some (only the names)
;
; Addresses and other host information.
;
@ IN SOA mail4.zimbra.si. root.mail4.zimbra.si. (
10119 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
@ IN A 192.168.2.22
IN NS mail4.zimbra.si.
mail4 IN A 192.168.2.22
IN MX 10 mail.zimbra.si.
mail IN A 192.168.2.22
This I don't anderstand As I told you 84.255.0.0 is not a valid host IP, as the first IP of a subnet is reserved to the subnet itself.
I don't use this IP (84.255.0.0) this is from my Provider. What is my valid IP ? What I have to change ?
The Zimbra mail server would not work if I can't do nslookup zimbra.si (my domain).
You didn't increase the serial (it's still 10119 as in your 1st post). Here is the updated zone file, formatted inside CODE tags for better readability:
Code:
@ IN SOA mail4.zimbra.si. root.mail4.zimbra.si. (
10120 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS mail4.zimbra.si.
IN MX 10 mail.zimbra.si.
@ IN A 192.168.2.22
mail4 IN A 192.168.2.22
mail IN A 192.168.2.22
Note that blank space(s) in the beginning of the lines above are important.
Also you still insist to use the mail4.zimbra.si zone. You need just the zone zimbra.si, and in that zone you define the mail4.zimbra.si host.
Quote:
I don't use this IP (84.255.0.0) this is from my Provider. What is my valid IP ? What I have to change ?
You mentioned that IP in your 1st post. I cannot tell what IPs/subnet your ISP has assigned to you.
Once again though, your domain from outside looks ok according to this. Only that the various IPs are different from those mentioned by you.
Also you still insist to use the mail4.zimbra.si zone. You need just the zone zimbra.si, and in that zone you define the mail4.zimbra.si host.
Where I have to change this ?? from mail4.zimbra.si to zimbra.si
You should change it in named.conf:
Code:
zone "zimbra.si" {
type master;
file "/etc/bind/db.mail4.zimbra.si";
};
Quote:
Could I wrote to your private e-mail, then can I tell you precise informaction about my IP, about Provider,..
You can if you want, but I don't see any reason to do so. You're trying to setup a mail server using private IPs, that are not reachable from the internet, so the info posted here cannot do any harm.
Non-authoritative answer:
*** Can't find zimbra.si: No answer
NEW DATA
Server Linux suse 11
IP 192.168.2.22 /24 mail4.zimbra.si - in DMZ
gateway 192.168.2.1
hostname: mail4
domain name: zimbra.si
resolved in the world
IP (external): 84.255.0.0 - mail.zimbra.si
DNS (external): 84.0.0.1 and 84.0.0.2
my named.conf
options {
forwarders { 84.0.0.1; 84.0.0.2; };
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
include "/etc/rndc.key";
// We are the master server for server.example.com
zone "zimbra.si" {
type master;
file "/etc/bind/db.mail4.zimbra.si";
};
include "/etc/named.conf.include";
db.mail4.zimbra.si
;
; Addresses and other host information.
;
@ IN SOA mail4.zimbra.si. root.mail4.zimbra.si. (
10659 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS mail4.zimbra.si.
IN MX 10 mail.zimbra.si.
@ IN A 192.168.2.22
mail4 IN A 192.168.2.22
mail IN A 192.168.2.22
if you have configured rndc (which I don't see in your named.conf). Or else depending on distro you can use
Code:
service named restart
Code:
Are my A in MX record OK ?
How should I know if they are ok? If you run "dig mx zimbra.si", replacing zimbra.si with your real domain and you get an answer with the MX RR and its A RR, like
Code:
dig mx zimbra.si
...
;; ANSWER SECTION:
zimbra.si. 86400 IN MX mail.zimbra.si
...
mail.zimbra.si. 86400 IN A 192.168.2.22
then it's ok
Quote:
But when I nslookup my hostname (mail4), then is a problem
Non-authoritative answer:
*** Can't find zimbra.si: No answer
Your server thinks it's not authoritative for that domain and no answer means it can't find the host in question. Run
Code:
dig -t axfr zimbra.si
and check the output.
Maybe you're editing the wrong zone file, since you cannot see the changes you're doing to the zone file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.