› Foros › PC › Software libre
carlos@tierra:~$ dig @localhost sistema.sol ANY
; <<>> DiG 9.7.0-P1 <<>> @localhost sistema.sol ANY
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29612
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;sistema.sol. IN ANY
;; ANSWER SECTION:
sistema.sol. 38400 IN SOA tierra.sistema.sol. carlos.sistema.sol. 1383335283 10800 3600 604800 10800
sistema.sol. 38400 IN NS tierra.sistema.sol.
;; ADDITIONAL SECTION:
tierra.sistema.sol. 38400 IN A 192.168.1.103
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Nov 4 15:51:50 2013
;; MSG SIZE rcvd: 109
carlos@tierra:~$ dig @localhost marte.sistema.sol ANY
; <<>> DiG 9.7.0-P1 <<>> @localhost marte.sistema.sol ANY
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21576
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;marte.sistema.sol. IN ANY
;; ANSWER SECTION:
marte.sistema.sol. 38400 IN MX 1 marte.sistema.sol.
marte.sistema.sol. 38400 IN A 192.168.1.104
;; AUTHORITY SECTION:
sistema.sol. 38400 IN NS tierra.sistema.sol.
;; ADDITIONAL SECTION:
marte.sistema.sol. 38400 IN A 192.168.1.104
tierra.sistema.sol. 38400 IN A 192.168.1.103
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Nov 4 15:54:21 2013
;; MSG SIZE rcvd: 120
carlos@tierra:~$ dig @localhost sistema.sol ANY +trace
; <<>> DiG 9.7.0-P1 <<>> @localhost sistema.sol ANY +trace
; (2 servers found)
;; global options: +cmd
. 501244 IN NS f.root-servers.net.
. 501244 IN NS c.root-servers.net.
. 501244 IN NS k.root-servers.net.
. 501244 IN NS g.root-servers.net.
. 501244 IN NS a.root-servers.net.
. 501244 IN NS h.root-servers.net.
. 501244 IN NS b.root-servers.net.
. 501244 IN NS e.root-servers.net.
. 501244 IN NS d.root-servers.net.
. 501244 IN NS m.root-servers.net.
. 501244 IN NS l.root-servers.net.
. 501244 IN NS j.root-servers.net.
. 501244 IN NS i.root-servers.net.
;; Received 512 bytes from 127.0.0.1#53(127.0.0.1) in 0 ms
. 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2013110400 1800 900 604800 86400
;; Received 104 bytes from 199.7.91.13#53(d.root-servers.net) in 90 ms
carlos@tierra:~$ cat /var/lib/bind/sistema.sol.hosts
$ttl 38400
sistema.sol. IN SOA tierra.sistema.sol. carlos.sistema.sol. (
1383335283
10800
3600
604800
10800 )
sistema.sol. IN NS tierra.sistema.sol.
mercurio.sistema.sol. IN A 192.168.1.101
venus.sistema.sol. IN A 192.168.1.102
tierra.sistema.sol. IN A 192.168.1.103
marte.sistema.sol. IN A 192.168.1.104
ns1.sistema.sol. IN CNAME tierra.sistema.sol.
mail.sistema.sol. IN CNAME marte.sistema.sol.
marte.sistema.sol. IN MX 1 marte.sistema.sol.
carlos@tierra:~$ cat /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "sistema.sol" {
type master;
file "/var/lib/bind/sistema.sol.hosts";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/var/lib/bind/192.168.1.rev";
};