Gentoo Archives: gentoo-user

From: Hiren Dave <hiren2k4@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] DNS Expert Required
Date: Sun, 26 Mar 2006 13:17:27
Message-Id: a944a7520603260510m1c9bb20ey28db76b6f58d8cd5@mail.gmail.com
In Reply to: Re: [gentoo-user] DNS Expert Required by Uwe Thiem
1 Hi Uwe,
2
3 The main problem in my configuration was this:
4 > search server1.guru.com server2.guru.com
5 search guru.com
6 > zone "server1.guru.com" IN {
7 make this: zone "guru.com" IN {
8
9 After changing this, my dns server is working fine. Thanks a lot dude.
10
11 Hiren
12
13 On 3/26/06, Uwe Thiem <uwix@××××.na> wrote:
14
15 > On 26 March 2006 10:01, Hiren Dave wrote:
16 >
17 > Alright, I'll bite. ;-)
18 >
19 > Some small errors.
20 >
21 > > server1.guru.com (192.168.0.2) Primary DNS Server
22 > > server2.guru.com (192.168.0.3) Secondary DNS Server
23 > >
24 > > => Here is my configuration file for server1.guru.com machine.
25 > >
26 > > #######################/etc/resolve.conf##############################
27 > > domain guru.com
28 > > search server1.guru.com server2.guru.com
29 >
30 > search guru.com
31 >
32 > (the search string gets appended to non-qualified names)
33 >
34 > > nameserver 192.168.0.2
35 > > nameserver 192.168.0.3
36 > > ######################################################################
37 > > ####################/var/named/chroot/etc/named.conf##################
38 > > options {
39 > > directory "/var/named";
40 > > dump-file "/var/named/data/cache_dump.db";
41 > > statistics-file "/var/named/data/named_stats.txt";
42 > > allow-transfer { 192.168.0.3; 192.168.0.1; };
43 > > allow-query { 192.168.0.0/24; localhost; };
44 > > allow-recursion { 192.168.0.0/24; localhost; };
45 > > };
46 >
47 > allow-tansfer: take out 192.168.0.1; it's unnecessary.
48 >
49 > [ snip ]
50 >
51 > > zone "server1.guru.com" IN {
52 >
53 > make this: zone "guru.com" IN {
54 >
55 > > type master;
56 > > file "server1.guru.com.zone";
57 >
58 > make this: file "guru.com"; (not strictly necessary)
59 >
60 > > allow-query { any; };
61 >
62 > In the general options, you restrict queries to your local network. Why do
63 > you
64 > now allow queries from anywhere?
65 >
66 > > allow-update { key rndckey; };
67 > > };
68 >
69 >
70 >
71 > > #include "/etc/rndc.key";
72 > > ######################################################################
73 > > #######/var/named/chroot/var/named/server1.guru.com.zone##############
74 >
75 > make the file "guru.co"
76 >
77 > > $TTL 86400
78 > > @ IN SOA server1.guru.com. root.server1.guru.com. (
79 >
80 > BTW, *not* a good idea to make "root" the technical contact for your
81 > domain.
82 >
83 > Now most stuff below can be much easier.
84 > > 1 ; serial
85 > > 300 ; refresh (5 minutes)
86 > > 10 ; retry (10 seconds)
87 > > 86400 ; expire (1 day)
88 > > 600 ; minimum (10 minutes)
89 > > )
90 > >
91 > > @ IN NS server1.guru.com.
92 > > @ IN MX 10 server1.guru.com.
93 > >
94 > > server1.guru.com. IN A 192.168.0.2
95 > > server2.guru.com. IN A 192.168.0.3
96 > > win2k.guru.com. IN A 192.168.0.1
97 > >
98 > > www1 CNAME server1.guru.com.
99 > > www2 CNAME server2.guru.com.
100 > > www3 CNAME win2k.guru.com.
101 > >
102 > > server2 IN MX 0 server1.guru.com.
103 > > win2k IN MX 0 server1.guru.com.
104 >
105 > The lines above can now look this way:
106 >
107 > IN NS server1.guru.com.
108 > IN NS server2.guru.com.
109 >
110 > IN MX 10 server1.guru.co.
111 > *.guru.com IN MX 10 server1.guru.com.
112 >
113 > server1 IN A 192.168.0.2
114 > server2 IN A 192.168.0.3
115 > win2k IN A 192.168.0.1
116 >
117 > www1 CNAME server1
118 > www2 CNAME server2
119 > www3 CNAME win2k
120 >
121 > (Note where I put a fullstop at the end of a name and where not. It's
122 > important. Your MX statements above are contradictory. So I don't know
123 > exactly which box your email server is and if you really have more than
124 > one.
125 > If so you have to adjust my two MX entries above.)
126 >
127 > Adjust server2 accordingly.
128 >
129 > I cannot guarantee that I caught all mistakes. Just try it out.
130 >
131 > Uwe
132 >
133 > --
134 > Why do consumers keep buying products they will live to curse?
135 > --
136 > gentoo-user@g.o mailing list
137 >
138 >

Replies

Subject Author
Re: [gentoo-user] DNS Expert Required Bryan Whitehead <driver@×××××××××.net>