Some help with BIND9 settings!
Tasha Smith
tashamaillist
Mon May 17 11:43:54 PDT 2004
Hi,
Ok...this is what i got im not sure what is casue the error:
1>couldn't add command channel 127.0.0.1#953: address in use. (could it be something misconfigured in in my named.conf using 127.0.0.1 twice???I will post my named.conf
2>the out from :
nslookup
server192.168.0.1
hunley.homeip.net is :
Server: 192.168.0.1
Address: 192.168.0.1#53
Non-authoritive answer:
Name: hunley.homeip.net
Address: 204.210.228.123
Here is my named.conf file right :
// This is a configuration file for named (from BIND 9.0 or later).
// It would normally be installed as /etc/named.conf.
//
// Changed to match secure example from LASG 5/17/00
// Changed to match Linux Journal example 9/17/00
// Added new "view' sections to stop fingerprinting of Bind 9.x per
// Bugtraq 1/31/00
// Added rndc key stuff per DNS & Bind (Rev. 4) Chapter 11
// added use-id-pool and more comments based on above chapter
options {
// Directory where bind should create files if
// not explicitly stated
directory "/var/named";
// whom do we allow to do zone tranfers
allow-transfer { 192.168.0.0/24; };
// new in Bind 9.x to allow RFC1886 -> RFC2874 conversion
// to support IPv6
// allow-v6-synthesis { 192.168.0.0; };
// tell Bind to check the names in zone files
// since it no longer does this by default
// (currently unimplemented)
// check-names master warn;
// sets the size of something or other to 20Mb ;)
datasize 20M;
// Bind 9.x doesn't recognize this yet :(
// deallocate-on-exit no;
// where should Bind put a dump of its cache
// if told to dump it
dump-file "named_dump.db";
// how often should bind check for new
// interfaces toi listen on. we turn
// this off by setting it to 0
interface-interval 0;
// specify what interfaces/ips to listen on
// as the default is all of them
listen-on { 192.168.0.1; 127.0.0.1; };
// define a mximum size of cached records
// new in Bind 9.x
max-cache-size 20M;
// where to right stats of memory usage
// Bind 9.x doesn't recognize this yet :(
// memstatistics-file "named.memstats";
// where to put out pid file
// absolute path since we don't want
// it in /var/named
pid-file "/var/run/named.pid";
// force Bind to use port 53 for its
// outbound queries to other DNS
// servers (Bind 9 uses high ports
// by default). Makes firewalling easier
query-source address * port 53;
// where to dump Bind server stats
statistics-file "named.stats";
// force Bind to be "more" random in assiging
// message ids
// use-id-pool yes;
// If the chaos view below doesn't work
// for some reason, still give out a bogus
// answer for Bind version requests
version "This is not the port you're looking for.";
// keep stats on a zone basis
zone-statistics yes;
};
controls {
// this allows rndc to be used from the localhost
// to talk to bind on the loopback interface
// using the key defined as 'rndc-key'
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
// the rest of the key configuration is in
// /etc/rndc.conf and the key itself is in
// /etc/rndc.key
key "rndc-key" {
// how was key encoded
algorithm hmac-md5;
// what is the pass-phrase for the key
secret "dXVxrV7Ra6nRBUZYSrwg65QP84EyP81oBvhaRij0QIw=" ;
};
logging {
channel named_info {
// log to syslog instead of a file
syslog;
// include the category of the event in the log
print-category yes;
// include the severity of the event in the log
print-severity yes;
// include the time of the event in the log
print-time yes;
};
// Processing of client requests
category client { named_info; };
// named.conf parsing and processing
category config { named_info; };
// Messages relating to internal memory structures
category database { named_info; };
// This is the default for any category not specifically defined
category default { named_info; };
// The catch-all. Anything without a category of its own
category general { named_info; };
// Uncomment if you dont want to know about lame server.
// Leave commented and it defaults to the
// value of default above
// category lame-servers { null; };
// The NOTIFY protocol
category notify { named_info; };
// Network operations
category network { named_info; };
// DNS resolution like recursive lookups, etc..
category resolver { named_info; };
// Approval and denial of requests
category security { named_info; };
// Dynamic updates
category update { named_info; };
// Queries. Duh.
category queries { named_info; };
// Zone transfers received
category xfer-in { named_info; };
// Zone transfers sent
category xfer-out { named_info; };
};
// this is where we define different versions
// of our zones based on where the client is
// coming from.
// the first view that matches a client is
// the one that gets used, so order can be
// important
view "chaos-hiding" chaos {
// you could use 'any' or even 'localnets' here
// instead of specifying each IP range
// however, it should be noted that 'localnets'
// means ANY network Bind is directly connected
// to which might include your ISP
match-clients { any; };
recursion no;
zone "." {
type hint;
// this causes a null response to queries
// about the Bind version
file "/dev/null";
};
};
view "resolve-internet-hosts" {
// you could use 'any' or even 'localnets' here
// instead of specifying each IP range
// however, it should be noted that 'localnets'
// means ANY network Bind is directly connected
// to which might include your ISP
match-clients { 192.168.0.0/24; 127/8; };
zone "." {
type hint;
file "root.hints";
};
};
view "resolve-localhost-reverse" {
// you could use 'any' or even 'localnets' here
// instead of specifying each IP range
// however, it should be noted that 'localnets'
// means ANY network Bind is directly connected
// to which might include your ISP
match-clients { 127/8; };
zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0";
allow-update { none; };
};
};
Douglas J Hunley <doug at linux-sxs.org> wrote:-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tasha Smith spewed electrons into the ether that resembled:
> This is a good thing i hope except maybe for:
> couldn't add command channel 127.0.0.1#953: address in use.
this should be investigated. nothing should be using port 53 on the localhost
address already.
>
> Soo now i should i try to change the settings of my windows
> machine and set them to the ip addy of my LAN interface:
not yet. from the linux box, type 'nslookup'
then type 'server192.168.0.1'
then type 'hunley.homeip.net'
it should respond 204.210.228.123
anything else comes back, we need to fix it before moving on
- --
Douglas J Hunley (doug at linux-sxs.org) - Linux User #174778
Admin: Linux StepByStep - http://www.linux-sxs.org
and http://jobs.linux-sxs.org
How do you know when you're out of invisible ink?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+PnJ62MO5UukaubkRAsPoAKCQLYRWKRGhjfCGRYvoYgPSLxyGKQCggmFM
MUoh5c4tvkMojYTVtYrdvKE=
=wuCc
-----END PGP SIGNATURE-----
_______________________________________________
Linux-users mailing list
Linux-users at linux-sxs.org
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.linux-sxs.org/pipermail/linux-users/attachments/20030203/d3130fc5/attachment.htm
More information about the Linux-users
mailing list