This file is indexed.

/usr/share/doc/HOWTO/hr-html/DNS-KAKO-6.html is in doc-linux-hr 20000416.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.11">
 <TITLE>DNS KAKO: Odr¾avanje.</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2">
 <LINK HREF="DNS-KAKO-7.html" REL=next>
 <LINK HREF="DNS-KAKO-5.html" REL=previous>
 <LINK HREF="DNS-KAKO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="DNS-KAKO-7.html">Sljedeæi dio</A>
<A HREF="DNS-KAKO-5.html">Prethodni dio</A>
<A HREF="DNS-KAKO.html#toc6">Sadr¾aj</A>
<HR>
<H1><A NAME="odrzavanje"></A> <A NAME="s6">6. Odr¾avanje.</A></H1>

<P><B>Samo neka radi.</B>
<P>Jedna je zadaæa potrebna za odr¾avanje <CODE>named</CODE>a, osim da ih pu¹ta¹ da
rade. To je redovno mijenjanje root.hints datoteke. Najlak¹i naèin je
kori¹tenje programa `<CODE>dig</CODE>'. Prvo pokreni <CODE>dig</CODE> bez parametara, i
dobit æe¹ root.hints svog servera. Onda pitaj jedan od izlistanih
korijenskih servera sa 'dig @rootserver'. Vidjet æe¹ da izlazni podaci jako
slièe onima u root.hints datoteci. Saèuvaj ih u datoteku (<CODE>dig
@e.root-servers.net . ns > root.hints.new</CODE>) i zamijeni staru
root.hints datoteku s novom (root.hints.new).
<P>Zapamti da treba restartati <CODE>named</CODE> nakon promjene cache datoteke.
<P>Al Longyear mi je poslao ovu skriptu koja se mo¾e pokrenuti automatski da
obnovi root.hints, unesena u crontab da se pokrene jednom
mjeseèno i zaboravi. Ova skripta pretpostavlja da ima¹ pode¹en i radeæi
e-mail, te da je alias `<CODE>hostmaster</CODE>' definiran. Mora¹ je hackirati da je
uskladi¹ sa svojim postavkama. (saèuvati kao izvr¹nu datoteku
/etc/cron.monthly/hints.new op.prev.)
<P>
<HR>
<PRE>
#!/bin/sh
#
# Update the nameserver cache information file once per month.
# This is run automatically by a cron entry.
#
(
 echo "To: hostmaster &lt;hostmaster>"
 echo "From: system &lt;root>"
 echo "Subject: Automatic update of the named.conf file"
 echo

 export PATH=/sbin:/usr/sbin:/bin:/usr/bin:
 cd /var/named

 dig @rs.internic.net . ns >root.hints.new

 echo "The named.conf file has been updated to contain the following information:"
 echo
 cat root.hints.new

 chown root.root root.hints.new
 chmod 444 root.hints.new
 rm -f root.hints.old
 mv root.hints root.hints.old
 mv root.hints.new root.hints
 ndc restart
 echo
 echo "The nameserver has been restarted to ensure that the update is complete."
 echo "The previous root.hints file is now called /var/named/root.hints.old."
) 2>&amp;1 | /usr/lib/sendmail -t
exit 0
</PRE>
<HR>
<P>Neki su mo¾da vidjeli root.hints datoteku koja je dostupna FTP-om od
InterNIC-a. Molim vas, <B>nemojte</B> koristiti FTP da obnovite
root.hints, jer je gornja metoda puno sklonija mre¾i.
<P>
<HR>
<A HREF="DNS-KAKO-7.html">Sljedeæi dio</A>
<A HREF="DNS-KAKO-5.html">Prethodni dio</A>
<A HREF="DNS-KAKO.html#toc6">Sadr¾aj</A>
</BODY>
</HTML>