Escolar Documentos
Profissional Documentos
Cultura Documentos
2. Setting Computer NS1 With IP 192.168.0.1 As Nameserver And Domain Name yourdomain.com
[root@server ~]# cat /etc/resolv.conf
nameserver192.168.0.1
Copyright (c) 2012 Permission is granted to copy, distribute and/or modify the content ofthis page under the terms of the GNU Free Documentation License, Version 1.2or any later version published byPageFree Software Foundation; with n HowtoForge the 1 of 6
BIND Installation On CentOS // // named.conf for Red Hat caching-nameserver // options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; /* * 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; };
http://www.howtoforge.com/
// // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; };
Copyright (c) 2012 Permission is granted to copy, distribute and/or modify the content ofthis page under the terms of the GNU Free Documentation License, Version 1.2or any later version published byPageFree Software Foundation; with n HowtoForge the 2 of 6
http://www.howtoforge.com/
include "/etc/rndc.key";
86400 IN SOA ; serial ; refresh ; retry ; expiry ; minimum IN NS IN A IN A IN MX 10 IN A IN A ns1.yourdomain.com. 192.168.0.1 192.168.0.1 mail.yourdomain.com. 192.168.0.1 192.168.0.1 yourdomain.com. root.yourdomain.com. (
Copyright (c) 2012 Permission is granted to copy, distribute and/or modify the content ofthis page under the terms HowtoForgeFree Documentation License, Version 1.2or any later version published by the Free Software Foundation; with no Invaria of the GNU Page 3 of 6
http://www.howtoforge.com/
86400 IN SOA ; serial ; refresh ; retry ; expiry ; minimum IN NS IN PTR ns1.yourdomain.com. binggo.yourdomain.com. yourdomain.com. root.yourdomain.com. (
6. nslookupyourdomain.com
[root@server ~]# nslookup yourdomain.com
Server: Address:
192.168.0.1 192.168.0.1#53
7. dig yourdomain.com
[root@server ~]# dig yourdomain.com
Copyright (c) 2012 Permission is granted to copy, distribute and/or modify the content ofthis page under the terms HowtoForgeFree Documentation License, Version 1.2or any later version published by the Free Software Foundation; with no Invaria of the GNU Page 4 of 6
http://www.howtoforge.com/
DiG 9.2.4 yourdomain.com ;;global options: printcmd ;; Got answer: ;; ->>HEADER<<-opcode: QUERY, status: NOERROR, id: 10576 ;; flags: qr aa rd ra;QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;yourdomain.com. ;; ANSWER SECTION: yourdomain.com.
IN
86400
IN
192.168.0.1
IN
NS
ns1.yourdomain.com.
;; ADDITIONAL SECTION: ns1.yourdomain.com. 86400 IN A ;; Query time: 8 msec ;; SERVER:192.168.0.1#53(192.168.0.1) ;; WHEN: Sat Aug 2 10:56:162008 ;; MSG SIZE rcvd: 85
192.168.0.1
mode of`/var/named/(TM) changed to 0777 (rwxrwxrwx) mode of `/var/named/named.zero(TM) changed to 0777 (rwxrwxrwx) mode of `/var/named/localhost.zone(TM) changed to 0777 (rwxrwxrwx) mode of `/var/named/198.99.208.rev(TM) changed to 0777 (rwxrwxrwx)
Copyright (c) 2012 Permission is granted to copy, distribute and/or modify the content ofthis page under the terms HowtoForgeFree Documentation License, Version 1.2or any later version published by the Free Software Foundation; with no Invaria of the GNU Page 5 of 6
http://www.howtoforge.com/
of `/var/named/data(TM) changed to 0777 (rwxrwxrwx) of `/var/named/named.local(TM) changed to 0777 (rwxrwxrwx) of `/var/named/named.ca(TM) changed to 0777 (rwxrwxrwx) of `/var/named/named.ip6.local(TM) changed to 0777 (rwxrwxrwx) of `/var/named/localdomain.zone(TM) changed to 0777 (rwxrwxrwx) of `/var/named/yourdomain.com.zone(TM) changed to 0777 (rwxrwxrwx) of `/var/named/named.broadcast(TM) changed to 0777 (rwxrwxrwx) of `/var/named/slaves(TM) changed to 0777 (rwxrwxrwx)
Aug 2 10:53:57 server named[20094]: listening on IPv4 interface venet0:0, 192.168.0.1#53 Aug 2 10:53:57 server named[20094]: command channel listening on 127.0.0.1#953 Aug 2 10:53:57 server named[20094]: zone 0.168.192.in-addr.arpa/IN: loaded serial 100 Aug 2 10:53:57 server named[20094]: zone yourdomain.com/IN: loaded serial 100 Aug 2 10:53:57 server named[20094]: zone localhost/IN: loaded serial 42 Aug 2 10:53:57 server named[20094]: running Aug 2 10:53:57 server named[20094]: zone yourdomain.com/IN: sending notifies (serial 100) Aug 2 10:53:57 server named[20094]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 100) Aug 2 10:53:57 server named[20094]: received notify for zoneyourdomain.com(TM) Aug 2 10:53:57 server named[20094]: received notify for zone 0.168.192.in-addr.arpa(TM)
Copyright (c) 2012 Permission is granted to copy, distribute and/or modify the content ofthis page under the terms HowtoForgeFree Documentation License, Version 1.2or any later version published by the Free Software Foundation; with no Invaria of the GNU Page 6 of 6