Πρόβλημα με το DNS
Dark Kernel
galanisstelios at hotmail.com
Wed Jul 4 00:33:01 EEST 2001
Άκουσα ότι εγκαθιστώντας έναν caching DNS server θα μπορούσα να βελτιώσω
την ταχύτητά μου στο Internet. Εγκατέστησα λοιπόν το BIND 9.1.1, το πακέτο
caching-nameserver και το bind-utils. Ενημέρωσα και το αρχείο
/etc/resolv.conf ότι ο server τρέχει τοπικά δίνοντας από το Linuxconf
127.0.0.1 ως τον πρώτο nameserver. Ξεκίνησα το bind δίνοντας
/etc/rc.d/init.d/named start (χρησιμοποιώ Mandrake 8.0, σε κάποιους
ενδέχεται να διαφέρει) και δοκίμασα να δω αν όλα λειτουργούσαν σωστά με την
εντολή nslookup, και είδα ότι χρησιμοποιούσα τον dns server του ISP μου. Τι
μπορεί να φταίει;
Με tail /var/log/messages παίρνω τα εξής:
Jul 3 14:33:11 localhost named: named startup succeeded
Jul 3 14:33:11 localhost named[568]: starting BIND 9.1.1 -u named
Jul 3 14:33:11 localhost named[568]: using 1 CPU
Jul 3 14:33:11 localhost named[576]: loading configuration from
'/etc/named.conf'
Jul 3 14:33:11 localhost named[576]: the default for the 'auth-nxdomain'
option is now 'no'
Jul 3 14:33:11 localhost named[576]: no IPv6 interfaces found
Jul 3 14:33:11 localhost named[576]: listening on IPv4 interface lo,
127.0.0.1#53
Jul 3 14:33:11 localhost named[576]: command channel listening on
127.0.0.1#953
Jul 3 14:33:11 localhost named[576]: dns_master_load: named.local:1: no TTL
specified
Jul 3 14:33:11 localhost named[576]: dns_zone_load: zone
0.0.127.in-addr.arpa/IN: loading master file named.local: no ttl
Jul 3 14:33:11 localhost named[576]: running
Αυτό είναι το named.conf:
// generated by named-bootconf.pl
// secret must be the same as in /etc/rndc.conf
key "key" {
algorithm hmac-md5;
secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
controls {
inet 127.0.0.1 allow { any; } keys { "key"; };
};
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
Και αυτό είναι το nsswitch.conf:
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the local database (.db) files
# compat Use NIS on compat mode
# hesiod Use Hesiod for user lookups
# [NOTFOUND=return] Stop searching if not found so far
#
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd: db files nisplus nis
#shadow: db files nisplus nis
#group: db files nisplus nis
passwd: files nisplus nis
shadow: files nisplus nis
group: files nisplus nis
#hosts: db files nisplus nis dns
hosts: files dns nisplus nis
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus
Αν χρειάζεστε και κάποιο άλλο αρχείο ή οτιδήποτε πήτε μου.
Ευχαριστώ προκαταβολικά
More information about the Linux-greek-users
mailing list