Δημοσιεύτηκε: 15 Απρ 2015, 22:22
Δεν μπορς να καταλαβω πως το ενοεισ να μεταφερω το DNS record file sto home folder. DNS χρειαζομαι γιατι μετα θα πρεπει να ορισω τις ip απο τα access point's σε domain name...για πες αγορινα την ιδεα σου για virtyal host......τι εκανα ως τωρα
στο /etc/network/interfaces συμπληρωσα
στο /etc/bind/named.conf.options
συμπληρωσα τα
ολο το αρχειο ειναι ετσι
και τελος ξανα εφτιαξ το /var/lib/bind/Dailynews.lan.hosts
κσι πσλι τιποτα
στο /etc/network/interfaces συμπληρωσα
- Κώδικας: Επιλογή όλων
dns-nameservers 127.0.0.1
dns-search Dailynews.local
dns-domain Dailynews.local
ολο το αρχειο ειναι ετσι
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
dns-nameservers 127.0.0.1
dns-search Dailynews.local
dns-domain Dailynews.local
στο /etc/bind/named.conf.options
συμπληρωσα τα
- Κώδικας: Επιλογή όλων
forwarders {
8.8.8.8;
8.8.4.4;
};
ολο το αρχειο ειναι ετσι
- Κώδικας: Επιλογή όλων
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
8.8.8.8;
8.8.4.4;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no;
listen-on-v6 { any; };
recursion no;
listen-on port 53 {
any;
};
allow-query {
any;
};
also-notify {
};
};
και τελος ξανα εφτιαξ το /var/lib/bind/Dailynews.lan.hosts
- Κώδικας: Επιλογή όλων
$ttl 38400
Dailynews.lan. IN SOA localhost. chris_rerfsaf.msn.com. (
1429124748
10800
3600
604800
38400 )
Dailynews.lan. IN NS localhost.
Dailynews.lan. IN A 192.168.0.100
http://www.Dailynews.lan. IN A 192.168.0.100
mail.Dailynews.lan. IN A 192.168.0.100
ns1.Dailynews.lan. IN A 192.168.0.100
ns2.Dailynews.lan. IN A 192.168.0.100
Dailynews.lan. IN A 192.168.1.3
http://www.Dailynews.lan. IN A 192.168.1.3
mail.Dailynews.lan. IN A 192.168.1.3
ns1.Dailynews.lan. IN A 192.168.1.3
ns2.Dailynews.lan. IN A 192.168.1.3
Dailynews.lan. IN NS ns1.Dailynews.lan.
Dailynews.lan. IN NS ns2.Dailynews.lan.
Dailynews.lan. IN MX 10 mail.Dailynews.lan.
κσι πσλι τιποτα