Advertising
Paste Description for bind9 config prob
what's missing?
- bind9 config prob
- Monday, August 6th, 2007 at 11:28:57pm UTC
- Script started on Mon 06 Aug 2007 04:01:52 PM PDT
- [email protected]:/etc/bind# cat named.conf
- // This is the primary configuration file for the BIND DNS server named.
- //
- // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
- // structure of BIND configuration files in Debian, *BEFORE* you customize
- // this configuration file.
- //
- // If you are just adding zones, please do that in /etc/bind/named.conf.local
- include "/etc/bind/named.conf.options";
- // prime the server with knowledge of the root servers
- zone "." {
- type hint;
- file "/etc/bind/db.root";
- };
- // be authoritative for the localhost forward and reverse zones, and for
- // broadcast zones as per RFC 1912
- zone "localhost" {
- type master;
- file "/etc/bind/db.local";
- };
- zone "127.in-addr.arpa" {
- type master;
- file "/etc/bind/db.127";
- };
- zone "0.in-addr.arpa" {
- type master;
- file "/etc/bind/db.0";
- };
- zone "255.in-addr.arpa" {
- type master;
- file "/etc/bind/db.255";
- };
- // zone "com" { type delegation-only; };
- // zone "net" { type delegation-only; };
- // From the release notes:
- // Because many of our users are uncomfortable receiving undelegated answers
- // from root or top level domains, other than a few for whom that behaviour
- // has been trusted and expected for quite some length of time, we have now
- // introduced the "root-delegations-only" feature which applies delegation-only
- // logic to all top level domains, and to the root domain. An exception list
- // should be specified, including "MUSEUM" and "DE", and any other top level
- // domains from whom undelegated responses are expected and trusted.
- // root-delegation-only exclude { "DE"; "MUSEUM"; };
- include "/etc/bind/named.conf.local";
- // RNDC
- key "rndc-key" {
- algorithm hmac-md5;
- secret "S5LkLzwB215/+YR3PhtzFw==";
- };
- [email protected]:/etc/bind# cat named.conf.local
- //
- // Do any local configuration here
- //
- #GL.COM definition
- zone "goodkinlynch.com"{
- type master;
- file "/etc/bind/zones/goodkinlynch.com.db";
- };
- #GL.COM reverse
- zone "5.168.192.in-addr.arpa" {
- type master;
- file "/etc/bind/zones/rev.5.168.192.in-addr.arpa";
- };
- //Consider adding the 1918 zones here, if they are not used in your
- // organization
- //include "/etc/bind/zones.rfc1918";
- [email protected]:/etc/bind# cat named.conf.options
- options {
- directory "/var/cache/bind";
- // 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 and later use an unprivileged
- // port by default.
- // query-source address * port 53;
- // 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 {
- 66.51.205.100;
- };
- auth-nxdomain no; # conform to RFC1035
- listen-on-v6 { any; };
- // By default, name servers should only perform recursive domain
- // lookups for their direct clients. If recursion is left open
- // to the entire Internet, your name server could be used to
- // perform distributed denial of service attacks against other
- // innocent computers. For more information on DDoS recursion:
- // http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
- allow-recursion { localnets; };
- // If you have DNS clients on other subnets outside of your
- // server's "localnets", you can explicitly add their networks
- // without opening up your server to the Internet at large:
- // allow-recursion { localnets; 192.168.0.0/24; };
- // If your name server is only listening on 127.0.0.1, consider:
- // allow-recursion { 127.0.0.1; };
- };
- [email protected]:/etc/bind/zones# cat goodkinlynch.com.db
- $TTL 1D
- $ORIGIN goodkinlynch.com
- @ IN SOA goodkinlynch.com. gladmin.goodkinlynch.com. (
- 2006081401
- 28800
- 3600
- 604800
- 38400
- )
- @ IN NS apollo.goodkinlynch.com
- @ IN MX 10 mta.goodkinlynch.com
- @ IN A 192.168.15.5
- apollo IN A 192.168.15.5
- athena IN A 192.168.15.10
- asterisk1 IN A 192.168.55.2
- GLrtrLAN IN A 192.168.5.1
- GLrtrWAN IN A 10.50.5.1
- GL-PDC IN CNAME apollo
- [email protected]:/etc/bind/zones# exit
- exit
- Script done on Mon 06 Aug 2007 04:04:08 PM PDT
- [email protected]:/etc/bind# cat /etc/resolv.conf
- nameserver 192.168.15.5
- nameserver 4.2.2.1
- [email protected]:/etc/bind# hostname -f
- apollo.goodkinlynch.com
- [email protected]:/etc/bind# hostname
- apollo.goodkinlynch.com
- [email protected]:/etc/bind# hostname -f
- apollo.goodkinlynch.com
- [email protected]:/etc/bind# ping GLrtrLAN
- ping: unknown host GLrtrLAN
- [email protected]:/etc/bind# ping GLrtrLAN.goodkinlynch.com
- ping: unknown host GLrtrLAN.goodkinlynch.com
- [email protected]:/etc/bind# ping asterisk1.goodkinlynch.com
- ping: unknown host asterisk1.goodkinlynch.com
- [email protected]:/etc/bind# ping asterisk1
- ping: unknown host asterisk1
- [email protected]:/etc/bind# ping apollo.goodkinlynch.com
- PING apollo.goodkinlynch.com (192.168.15.5) 56(84) bytes of data.
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=1 ttl=64 time=0.015 ms
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=2 ttl=64 time=0.007 ms
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=3 ttl=64 time=0.007 ms
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=4 ttl=64 time=0.007 ms
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=5 ttl=64 time=0.007 ms
- --- apollo.goodkinlynch.com ping statistics ---
- 5 packets transmitted, 5 received, 0% packet loss, time 3996ms
- rtt min/avg/max/mdev = 0.007/0.008/0.015/0.004 ms
- [email protected]:/etc/bind# ping apollo
- PING apollo (192.168.15.5) 56(84) bytes of data.
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=1 ttl=64 time=0.018 ms
- 64 bytes from apollo.goodkinlynch.com (192.168.15.5): icmp_seq=2 ttl=64 time=0.009 ms
- --- apollo ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 999ms
- rtt min/avg/max/mdev = 0.009/0.013/0.018/0.005 ms
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.