csh.login hosts manpath.config opieaccess rc rmt wall_cmos_clock csh.logout hosts.allow manpath.config.bak opiekeys rc.bsdextended rpc defaults hosts.equiv master.passwd pam.d rc.conf security devd.conf hosts.lpd motd passwd rc.d services devfs.conf inetd.conf mtree pccard_ether rc.firewall shells dhclient.conf isdn namedb periodic rc.firewall6 skel disktab localtime netconfig pf.conf rc.initdiskless snmpd.config newinst# cd named named: No such file or directory. newinst# cd namedb newinst# ls PROTO.localhost-v6.rev dynamic master named.root slave PROTO.localhost.rev make-localhost named.conf rndc.key newinst# pico named.root UW PICO(tm) 4.10 File: named.root G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 ; ; formerly AOS.ARL.ARMY.MIL ; . 3600000 NS H.ROOT-SERVERS.NET. H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 ; ; formerly NIC.NORDU.NET ; . 3600000 NS I.ROOT-SERVERS.NET. I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 ; ; operated by VeriSign, Inc. ; . 3600000 NS J.ROOT-SERVERS.NET. J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 ; ; operated by RIPE NCC ; . 3600000 NS K.ROOT-SERVERS.NET. K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 ; ; operated by ICANN ; . 3600000 NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 ; ; operated by WIDE ; . 3600000 NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 ; End of File newinst# ls PROTO.localhost-v6.rev dynamic master named.root slave PROTO.localhost.rev make-localhost named.conf rndc.key newinst# make-localhost make-localhost: Command not found. newinst# cd master newinst# ls phrost.net newinst# pico phrost.net UW PICO(tm) 4.10 File: phrost.net $TTL 3600 ; 1 hour phrost.net. IN SOA ns1.phrost.net. grateful.phrost.net. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ; Minimum TTL ) ; DNS Servers IN NS ns1.phrost.net. IN NS ns2.phrost.net. ; Machine Names localhost IN A 127.0.0.1 ns1 IN A 72.232.213.74 ns2 IN A 72.232.213.75 ; Aliases www IN CNAME @ newinst# ls phrost.net newinst# ls phrost.net newinst# ls phrost.net newinst# /etc/rc.d/named forcestart apache22_enable: not found named already running? (pid=32052). newinst# pico /etc/rc.conf UW PICO(tm) 4.10 File: /etc/rc.conf Modified # -- sysinstall generated deltas -- # Tue Jun 26 11:23:49 2007 # Created: Tue Jun 26 11:23:49 2007 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname="phrost.net" ifconfig_bge0="DHCP" sshd_enable="YES" usbd_enable="YES" ntpd_enable="YES" # -- sysinstall generated deltas -- # Tue Jun 26 19:55:42 2007 ifconfig_bge0="inet 72.232.213.74 netmask 255.255.255.248" ifconfig_bge0_alias0="inet 72.232.213.75 netmask 255.255.255.255" ifconfig_bge0_alias1="inet 72.232.213.76 netmask 255.255.255.255" ifconfig_bge0_alias2="inet 72.232.213.77 netmask 255.255.255.255" ifconfig_bge0_alias3="inet 72.232.213.78 netmask 255.255.255.255" defaultrouter="72.232.213.73" hostname="phrost.net" apache22_enable="YES" [ Wrote 21 lines ] newinst# ls phrost.net newinst# pico phrost.net UW PICO(tm) 4.10 File: phrost.net Modified $TTL 3600 ; 1 hour phrost.net. IN SOA ns1.phrost.net. grateful.phrost.net. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ; Minimum TTL ) ; DNS Servers IN NS ns1.phrost.net. IN NS ns2.phrost.net. ; Machine Names localhost IN A 127.0.0.1 ns1 IN A 72.232.213.74 ns2 IN A 72.232.213.75www IN CNAME obsidian.co.za. Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? No newinst# pico phrost.net UW PICO(tm) 4.10 File: phrost.net Modified $TTL 3600 ; 1 hour phrost.net. IN SOA ns1.phrost.net. grateful.phrost.net. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ; Minimum TTL ) ; DNS Servers IN NS ns1.phrost.net. IN NS ns2.phrost.net. ; Machine Names localhost IN A 127.0.0.1 * IN A 72.232.213.74 ns1 IN A 72.232.213.74 ns2 IN A 72.232.213.75 ; Aliases www IN CNAME ns1 [ Wrote 21 lines ] newinst# ps ax | grep named 32052 ?? Ss 0:00.01 /usr/sbin/named -t /var/named -u bind newinst# kill 32052 newinst# /etc/rc.d/named forcestart Starting named. newinst# pico phrost.net UW PICO(tm) 4.10 File: phrost.net Modified $TTL 3600 ; 1 hour phrost.net. IN SOA ns1.phrost.net. grateful.phrost.net. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ; Minimum TTL ) ; DNS Servers IN NS ns1.phrost.net. IN NS ns2.phrost.net. ; Machine Names ns1 IN A 72.232.213.74 ns2 IN A 72.232.213.75 empty IN A 72.232.213.76 ; Aliases www IN CNAME ns1 [ Wrote 20 lines ] newinst# /etc/rc.d/named --help newinst# /etc/rc.d/named stop newinst# /etc/rc.d/named forcestop Stopping named. newinst# /etc/rc.d/named forcestart Starting named. newinst# pico /etc/named.conf UW PICO(tm) 4.10 File: /etc/named.conf [ Unknown command: ^Z ] newinst# pico /etc/namedb/named.conf UW PICO(tm) 4.10 File: /etc/namedb/named.conf // $FreeBSD: src/etc/namedb/named.conf,v 1.21.2.1 2005/09/10 08:27:27 dougb Exp $ // // Refer to the named.conf(5) and named(8) man pages, and the documentation // in /usr/share/doc/bind9 for more details. // // If you are going to set up an authoritative server, make sure you // understand the hairy details of how DNS works. Even with // simple mistakes, you can break connectivity for affected parties, // or cause huge amounts of useless Internet traffic. options { directory "/etc/namedb"; pid-file "/var/run/named/pid"; dump-file "/var/dump/named_dump.db"; statistics-file "/var/stats/named.stats"; // If named is being used only as a local resolver, this is a safe default. // For named to be accessible to the network, comment this option, specify // the proper IP address, or delete this option. listen-on { 72.232.213.74; }; // If you have IPv6 enabled on this system, uncomment this option for // use as a local resolver. To give access to the network, specify // an IPv6 address, or the keyword "any". // listen-on-v6 { ::1; }; // In addition to the "forwarders" clause, you can force your name // server to never initiate queries of its own, but always ask its // forwarders only, by enabling the following line: // // forward only; // If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { 127.0.0.1; }; */ /* * 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 versions 8 and later * use a pseudo-random unprivileged UDP port by default. */ // query-source address * port 53; }; // If you enable a local name server, don't forget to enter 127.0.0.1 // first in your /etc/resolv.conf so this server will be queried. // Also, make sure to enable it in /etc/rc.conf. zone "." { type hint; file "named.root"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "master/localhost.rev"; }; // RFC 3152 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" { type master; file "master/localhost-v6.rev"; }; // NB: Do not use the IP addresses below, they are faked, and only // serve demonstration/documentation purposes! // // Example slave zone config entries. It can be convenient to become // a slave at least for the zone your own domain is in. Ask // your network administrator for the IP address of the responsible // primary. // // Never forget to include the reverse lookup (IN-ADDR.ARPA) zone! // (This is named after the first bytes of the IP address, in reverse // order, with ".IN-ADDR.ARPA" appended.) // // Before starting to set up a primary zone, make sure you fully // understand how DNS and BIND works. There are sometimes // non-obvious pitfalls. Setting up a slave zone is simpler. // // NB: Don't blindly enable the examples below. :-) Use actual names // and addresses instead. zone "phrost.net" { type master; file "master/phrost.net"; };