setting up bind

Hi everyone,

Sorry for the long post , but I don't think I could've done it in less.....
I'm trying to setup a name server using bind 9 and have run into a
peculiar problem:

The computers on my lan have hostnames like xxx.pcm.com and this
nameserver is an internal one to
serve these machines.
so i wrote a zone for "pcm.com" and made my server the master for the zone.
the records look somthing like this:
xxx.pcm.com IN A 192.xx.xx.xx (is this right?)

to test it ,I ran dig for one of the hostnames and it appears that
there is already a master for pcm.com somewhere else
which (obviously) does not have a record for my machine.
To make my machine not query other nameservers, I made my nameserver the
only one in resolv.conf.
and made it a slave for queries on zone "com" with the main NS outside
as the master.
however this causes dig to give a timed out error.

Am I missing something here?

What I feel is that dig first tries to resolve "." (root)zone and is
not able to because my NS does not hold any info on it.
Am I right in thinking so?

My NS had a different hostname before and dig could return a valid
ip.However, my employer insists
that the hostnames end with pcm.com (for some administrtive reasons )

So, my question is,
how do I make dig search for xxx.pcm.com on my NS before forwarding it
to the outside?

Also,
Do I need to to write the PTR records for every A record I add?

Thanx (a lot ) in advance,
Joy.M.M
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
joy [ Fr, 02 Juli 2004 16:12 ] [ ID #64321 ]

Re: setting up bind

joy wrote:

> The computers on my lan have hostnames like xxx.pcm.com and this
> nameserver is an internal one to
> serve these machines.
> so i wrote a zone for "pcm.com" and made my server the master for the zone.
> the records look somthing like this:
> xxx.pcm.com IN A 192.xx.xx.xx (is this right?)

No. Fully-qualified domains must end in a dot, otherwise they will be
treated as relative to the root of the zone. E.g. if the above line
occured in a zone file for pcm.com, it would correspond to
xxx.pcm.com.pcm.com.

Usually, you use relative names, so the line should look like:

xxx IN A 192.xx.xx.xx

> to test it ,I ran dig for one of the hostnames and it appears that
> there is already a master for pcm.com somewhere else
> which (obviously) does not have a record for my machine.
> To make my machine not query other nameservers, I made my nameserver the
> only one in resolv.conf.
> and made it a slave for queries on zone "com" with the main NS outside
> as the master.
> however this causes dig to give a timed out error.
>
> Am I missing something here?

Probably.

> What I feel is that dig first tries to resolve "." (root)zone and is
> not able to because my NS does not hold any info on it.
> Am I right in thinking so?

Probably.

If named has been configured to allow recursive queries, it should
attempt to forward queries for other domains (ones which don't have an
entry in named.conf) to other DNS servers.

However, such queries (or, more likely, the replies) may be blocked if
your server is behind a firewall. In that situation, you would need to
forward such queries to a DNS server from which you can receive
replies (e.g. the one which was previously listed in resolv.conf).

> My NS had a different hostname before and dig could return a valid
> ip.However, my employer insists
> that the hostnames end with pcm.com (for some administrtive reasons )

Are these names supposed to be resolvable from outside of the LAN?

If so, the only solution is to update the authoritative nameserver
(the one to which the ".com" domain has delegated authority over the
"pcm.com" domain) with the additional hosts.

If not, you need to configure the local nameserver(s) (the one(s) to
which hosts on your LAN send DNS queries) to answer queries for the
pcm.com zone. These nameservers will already be configured to answer
general DNS queries.

However:

1. If you aren't running your own local nameserver(s) (e.g. you're
just pointing the hosts at your ISP's DNS servers), you will have to
do so; your ISP certainly isn't going to add the pcm.com zone to their
recursive nameservers. You should be doing this anyhow.

2. The local pcm.com zone file will need to include any public DNS
records for that zone (e.g. www.pcm.com) as well as any local ones
(e.g. xxx.pcm.com).

> Do I need to to write the PTR records for every A record I add?

Probably not.

Most programs don't care whether PTR records exist or if they are
accurate; i.e. they either don't bother to look them up, or if they do
look them up, don't care whether the query succeeds.

The main exception is for access control. If you are accessing a
service which is restricted to specific hosts, access may be denied if
the PTR records can't be found or if they don't contain the expected
values.

--
Glynn Clements <glynn.clements [at] virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Glynn Clements [ Sa, 03 Juli 2004 00:23 ] [ ID #64324 ]

Re: setting up bind

Glynn pretty much covered everything.

There is one thing though - you are saying you added pcm.com to your
named.conf as a slave zone. This is wrong - because if you create a
slave zone, you then need to define a master where it will transfer
the zone across from and place it on your system in the zone file you
specify. You cant directly edit zones on a slave because by definition
the slave zone is a copy of the zone from the master.

You need to create a master zone and copy across any records such as
www etc you need from it into your local zone file (which for your
server is a master because its the only one that matters to your
organization) and then you need to add all your local machines to it.

If you have a $ORIGIN defined as pcm.com (default is the name of the
zone/domain) then any hostname that does not end with a . will have
this appended to it. You should avoid using the . as it will make your
file less cluttered and easier to rename the zone if you ever need to.

Once that is done and you have the forward lookup file ready, you can
use a script to generate the reverse zones if you like. I prefer using
proper reverse zones whenever possible as many applications do a
hostname lookup on an IP when accepting connections and in a scenario
where DNS is improperly configured the application can seem to "hang"
for a while as the dns query times out.

You can use the mkrdns script [http://freshmeat.net/projects/mkrdns/]
to do this automatically. It seems to do a pretty decent job.

Hope this helped!

-Ahsan

On Fri, 2 Jul 2004 23:23:19 +0100, Glynn Clements
<glynn.clements [at] virgin.net> wrote:
>
> joy wrote:
>
> > The computers on my lan have hostnames like xxx.pcm.com and this
> > nameserver is an internal one to
> > serve these machines.
> > so i wrote a zone for "pcm.com" and made my server the master for the zone.
> > the records look somthing like this:
> > xxx.pcm.com IN A 192.xx.xx.xx (is this right?)
>
> No. Fully-qualified domains must end in a dot, otherwise they will be
> treated as relative to the root of the zone. E.g. if the above line
> occured in a zone file for pcm.com, it would correspond to
> xxx.pcm.com.pcm.com.
>
> Usually, you use relative names, so the line should look like:
>
> xxx IN A 192.xx.xx.xx
>
> > to test it ,I ran dig for one of the hostnames and it appears that
> > there is already a master for pcm.com somewhere else
> > which (obviously) does not have a record for my machine.
> > To make my machine not query other nameservers, I made my nameserver the
> > only one in resolv.conf.
> > and made it a slave for queries on zone "com" with the main NS outside
> > as the master.
> > however this causes dig to give a timed out error.
> >
> > Am I missing something here?
>
> Probably.
>
> > What I feel is that dig first tries to resolve "." (root)zone and is
> > not able to because my NS does not hold any info on it.
> > Am I right in thinking so?
>
> Probably.
>
> If named has been configured to allow recursive queries, it should
> attempt to forward queries for other domains (ones which don't have an
> entry in named.conf) to other DNS servers.
>
> However, such queries (or, more likely, the replies) may be blocked if
> your server is behind a firewall. In that situation, you would need to
> forward such queries to a DNS server from which you can receive
> replies (e.g. the one which was previously listed in resolv.conf).
>
> > My NS had a different hostname before and dig could return a valid
> > ip.However, my employer insists
> > that the hostnames end with pcm.com (for some administrtive reasons )
>
> Are these names supposed to be resolvable from outside of the LAN?
>
> If so, the only solution is to update the authoritative nameserver
> (the one to which the ".com" domain has delegated authority over the
> "pcm.com" domain) with the additional hosts.
>
> If not, you need to configure the local nameserver(s) (the one(s) to
> which hosts on your LAN send DNS queries) to answer queries for the
> pcm.com zone. These nameservers will already be configured to answer
> general DNS queries.
>
> However:
>
> 1. If you aren't running your own local nameserver(s) (e.g. you're
> just pointing the hosts at your ISP's DNS servers), you will have to
> do so; your ISP certainly isn't going to add the pcm.com zone to their
> recursive nameservers. You should be doing this anyhow.
>
> 2. The local pcm.com zone file will need to include any public DNS
> records for that zone (e.g. www.pcm.com) as well as any local ones
> (e.g. xxx.pcm.com).
>
> > Do I need to to write the PTR records for every A record I add?
>
> Probably not.
>
> Most programs don't care whether PTR records exist or if they are
> accurate; i.e. they either don't bother to look them up, or if they do
> look them up, don't care whether the query succeeds.
>
> The main exception is for access control. If you are accessing a
> service which is restricted to specific hosts, access may be denied if
> the PTR records can't be found or if they don't contain the expected
> values.
>
> --
> Glynn Clements <glynn.clements [at] virgin.net>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo [at] vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Ahsan Ali [ Mi, 07 Juli 2004 09:00 ] [ ID #64339 ]

Re:setting up bind

--Boundary_(ID_l52p95kIgF21PcomLMrRsA)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Content-disposition: inline

Hi everyone,

Ahsan, thanks for the help.
Anyways, I did what ever you guys instructed me to do.However,
named just refuses to get off the ground.
the other computers on my network just refuse to connect to my NS and exit with a ":timed out, no servers reached" error
I've attached my config files (please don't laugh at them :-( ). Could anyone have a look at them and tell me what I'm doing wrong here

When I stop named , I get an error rndc :connect failed : connection refused

Thanks,
Joy.M.M

--Boundary_(ID_l52p95kIgF21PcomLMrRsA)
Content-type: application/octet-stream; name=named.conf
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=named.conf
Content-description: Attached file: 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";
//# Use with the following in named.conf, adjusting the allow list as needed
key "rndc-key" {
algorithm hmac-md5;
secret "XXXX";

};
//secret is the same in rndc.conf and here

controls {
inet 192.168.2.16 port 953
allow { localnets; } keys { "rndc-key"; };
};

// 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 "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";

--Boundary_(ID_l52p95kIgF21PcomLMrRsA)
Content-type: application/octet-stream; name=db.local
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=db.local
Content-description: Attached file: db.local

;
; BIND data file for local loopback interface
;
$TTL 604800
[at] IN SOA localhost. root.localhost. (
1 ; Serial
6048 ; Refresh
864 ; Retry
2419 ; Expire
6048 ) ; Negative Cache TTL
;
[at] IN NS localhost.
[at] IN A 127.0.0.1

PCM.COM. IN NS PARROT.PCM.COM.
PARROT.PCM.COM. IN A 192.168.2.16

EAGLE.PCM.COM. IN A 192.168.2.11
SWAN1.PCM.COM. IN A 192.168.2.14
SWAN2.PCM.COM. IN A 192.168.2.15

;got this one from dig.
pcm.com. 7155 IN A 209.233.130.34

;; AUTHORITY SECTION:
pcm.com. 7155 IN NS ns1.pbi.net.
pcm.com. 7155 IN NS ns2.pbi.net.

;; ADDITIONAL SECTION:
ns1.pbi.net. 164758 IN A 206.13.28.11
ns2.pbi.net. 164758 IN A 206.13.29.11



; <<>> DiG 9.2.4rc2 <<>> vitelsystems.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48987
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;vitelsystems.com. IN A

;; ANSWER SECTION:
vitelsystems.com. 604745 IN A 216.17.101.50

;; AUTHORITY SECTION:
vitelsystems.com. 604745 IN NS ns2.imindia.net.
vitelsystems.com. 604745 IN NS ns1.imindia.net.

;; ADDITIONAL SECTION:
ns1.imindia.net. 172743 IN A 216.17.101.50
ns2.imindia.net. 172742 IN A 65.214.160.50

;; Query time: 0 msec
;; SERVER: 203.129.242.66#53(203.129.242.66)
;; WHEN: Tue Jul 6 18:04:39 2004
;; MSG SIZE rcvd: 129


--Boundary_(ID_l52p95kIgF21PcomLMrRsA)
Content-type: application/octet-stream; name=named.conf.local
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=named.conf.local
Content-description: Attached file: 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";

acl local-net{localnets;};

zone "pcm.com" {
type master;
file "db.local";
allow-query{localnets;};
also-notify{XX.XX.XX.XX;};
};
//Do I need the also-notify part? its the name server for all companies in our
//area
//pardon me for XX'ing some stuff

--Boundary_(ID_l52p95kIgF21PcomLMrRsA)
Content-type: application/octet-stream; name=named.conf.options
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=named.conf.options
Content-description: Attached file: 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 {
// 0.0.0.0;
// };

allow-query {all;};

auth-nxdomain no; # conform to RFC1035

};


--Boundary_(ID_l52p95kIgF21PcomLMrRsA)
Content-type: application/octet-stream; name=rndc.conf
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=rndc.conf
Content-description: Attached file: rndc.conf

# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "XXXXX";
};

options {
default-key "rndc-key";
default-server 192.168.2.16;
default-port 953;
};
# End of rndc.confa
server 192.168.2.16{
key "rndc-key";
};




--Boundary_(ID_l52p95kIgF21PcomLMrRsA)--
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
joy [ Do, 08 Juli 2004 06:46 ] [ ID #64343 ]

Re:setting up bind

--Boundary_(ID_Y3Ckc9Z3EXvV6ct7HJKtPg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Content-disposition: inline


Hi, now I found out that my named isn't even starting up...

even if I manually run /etc/init.d/bind9 start
it says starting named
but ps ax|grep named tells me otherwise.....
any suggestions based on my configs. If you need anything else other than my root password, feel free to ask :-)

Thanx in advance,
Joy.M.M

--Boundary_(ID_Y3Ckc9Z3EXvV6ct7HJKtPg)--
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
joy [ Do, 08 Juli 2004 09:21 ] [ ID #64344 ]

Re: setting up bind

Your named isnt starting because of errors in your named.conf. You can
look in /var/log/messages for more information on whats going wrong.

I am pasting my previous reply to you here on the list.

==========================================================
In /etc/named.conf

zone "com" {type delegation-only;};

Should look something like this:
=======================
zone "pcm.com" IN {
type master;
file "/var/named/pcm.com.zone";
};

zone "10.in-addr.arpa" IN {
type master;
file "/var/named/10.in-addr.arpa.zone";
};
=======================

In your file /var/named/pcm.com.zone you should have:

==================================================
$TTL 86400
$ORIGIN pcm.com.
[at] 1D IN SOA ns.pcm.com. root (
2004070703 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS 10.0.1.2
nms 1D IN A 10.0.1.25
ns 1D IN A 10.0.1.2
(and so on for each host)
==================================================

In your /var/named/10.in-addr.arpa.zone
==================================================
[at] IN SOA ns.pcm.com. root.pcm.com. (
2004070702 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

[at] NS ns.pcm.com.
NS nms.pcm.com.
$ORIGIN 1.0.10.in-addr.arpa.
2 PTR ns.pcm.com.
25 PTR nms.pcm.com.
(and so on for each host)
==================================================
I hope this helped.

Sorry I dont have time right now to go through all your zone files as
I am in a bit of a rush at the moment. I think you can customize the
above examples to suit your needs. I tend to keep my zone files in
/var/named whereas from your config it looks like you keep them in
/etc/bind. Please adjust to suit your needs.

Regards,

Ahsan Ali
State Bank of Pakistan
======================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Ahsan Ali [ Do, 08 Juli 2004 09:34 ] [ ID #64345 ]

Re:setting up bind

--Boundary_(ID_wln1qAAQPfbotDyeFbdxvQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Content-disposition: inline

I straced /etc/init.d/bind9 start
and i've attached the o/p
Enjoy!;-)

Joy.M.M

--Boundary_(ID_wln1qAAQPfbotDyeFbdxvQ)
Content-type: application/octet-stream; name=log
Content-transfer-encoding: 7bit
Content-disposition: attachment; filename=log
Content-description: Attached file: log

execve("/etc/init.d/bind9", ["/etc/init.d/bind9", "start"], [/* 27 vars */]) = 0
uname({sys="Linux", node="parrot.pcm.com", ...}) = 0
brk(0) = 0x80e6000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=36801, ...}) = 0
old_mmap(NULL, 36801, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\342"... , 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=252592, ...}) = 0
old_mmap(NULL, 257868, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
old_mmap(0x40057000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x35000) = 0x40057000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9432, ...}) = 0
old_mmap(NULL, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40060000
old_mmap(0x40062000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40062000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340X\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1279044, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40063000
old_mmap(NULL, 1289356, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40064000
old_mmap(0x40194000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12f000) = 0x40194000
old_mmap(0x4019d000, 7308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4019d000
close(3) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x40063900, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40018000, 36801) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3) = 0
brk(0) = 0x80e6000
brk(0) = 0x80e6000
brk(0x80e7000) = 0x80e7000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1181152, ...}) = 0
mmap2(NULL, 1181152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4019f000
close(3) = 0
brk(0) = 0x80e7000
brk(0x80e8000) = 0x80e8000
brk(0) = 0x80e8000
brk(0x80e9000) = 0x80e9000
getuid32() = 0
getgid32() = 0
geteuid32() = 0
getegid32() = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
time(NULL) = 1089292691
brk(0) = 0x80e9000
brk(0x80ea000) = 0x80ea000
open("/etc/mtab", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=326, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402c0000
read(3, "/dev/hda6 / ext3 rw 0 0\nproc /pr"..., 4096) = 326
close(3) = 0
munmap(0x402c0000, 4096) = 0
open("/proc/meminfo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402c0000
read(3, "MemTotal: 247340 kB\nMemFre"..., 1024) = 572
close(3) = 0
munmap(0x402c0000, 4096) = 0
brk(0) = 0x80ea000
brk(0x80eb000) = 0x80eb000
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="parrot.pcm.com", ...}) = 0
brk(0) = 0x80eb000
brk(0x80ec000) = 0x80ec000
stat64("/root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getpid() = 4491
getppid() = 4490
getpgrp() = 4490
rt_sigaction(SIGCHLD, {0x8076f50, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
open("/etc/init.d/bind9", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbffff7a0) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR) = 0
read(3, "#!/bin/sh\n\nPATH=/sbin:/bin:/usr/"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
dup2(3, 255) = 255
close(3) = 0
fcntl64(255, F_SETFD, FD_CLOEXEC) = 0
fcntl64(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=1272, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR) = 0
brk(0) = 0x80ec000
brk(0x80ed000) = 0x80ed000
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
brk(0) = 0x80ed000
brk(0x80ee000) = 0x80ee000
open("/usr/lib/gconv/gconv-modules", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=45278, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402c0000
read(3, "# GNU libc iconv configuration.\n"..., 4096) = 4096
brk(0) = 0x80ee000
brk(0x80ef000) = 0x80ef000
read(3, ".B1.002//\nalias\tJS//\t\t\tJUS_I.B1."..., 4096) = 4096
brk(0) = 0x80ef000
brk(0x80f0000) = 0x80f0000
brk(0) = 0x80f0000
brk(0x80f1000) = 0x80f1000
brk(0) = 0x80f1000
brk(0x80f2000) = 0x80f2000
read(3, "859-3\t1\nmodule\tINTERNAL\t\tISO-885"..., 4096) = 4096
brk(0) = 0x80f2000
brk(0x80f3000) = 0x80f3000
brk(0) = 0x80f3000
brk(0x80f4000) = 0x80f4000
brk(0) = 0x80f4000
brk(0x80f5000) = 0x80f5000
read(3, "9-14//\nalias\tLATIN8//\t\tISO-8859-"..., 4096) = 4096
brk(0) = 0x80f5000
brk(0x80f6000) = 0x80f6000
brk(0) = 0x80f6000
brk(0x80f7000) = 0x80f7000
brk(0) = 0x80f7000
brk(0x80f8000) = 0x80f8000
read(3, "CSEBCDICES//\t\tEBCDIC-ES//\nalias\t"..., 4096) = 4096
brk(0) = 0x80f8000
brk(0x80f9000) = 0x80f9000
brk(0) = 0x80f9000
brk(0x80fa000) = 0x80fa000
read(3, "IBM284//\nalias\tEBCDIC-CP-ES//\t\tI"..., 4096) = 4096
brk(0) = 0x80fa000
brk(0x80fb000) = 0x80fb000
brk(0) = 0x80fb000
brk(0x80fc000) = 0x80fc000
brk(0) = 0x80fc000
brk(0x80fd000) = 0x80fd000
read(3, "ias\t864//\t\t\tIBM864//\nalias\tCSIBM"..., 4096) = 4096
brk(0) = 0x80fd000
brk(0x80fe000) = 0x80fe000
brk(0) = 0x80fe000
brk(0x80ff000) = 0x80ff000
brk(0) = 0x80ff000
brk(0x8100000) = 0x8100000
read(3, "\tIBM937\t\t1\nmodule\tINTERNAL\t\tIBM9"..., 4096) = 4096
brk(0) = 0x8100000
brk(0x8101000) = 0x8101000
brk(0) = 0x8101000
brk(0x8102000) = 0x8102000
brk(0) = 0x8102000
brk(0x8103000) = 0x8103000
read(3, "UC-JP//\nmodule\tEUC-JP//\t\tINTERNA"..., 4096) = 4096
brk(0) = 0x8103000
brk(0x8104000) = 0x8104000
brk(0) = 0x8104000
brk(0x8105000) = 0x8105000
brk(0) = 0x8105000
brk(0x8106000) = 0x8106000
read(3, "143IECP271//\tIEC_P27-1//\nalias\tI"..., 4096) = 4096
brk(0) = 0x8106000
brk(0x8107000) = 0x8107000
brk(0) = 0x8107000
brk(0x8108000) = 0x8108000
read(3, "\nmodule\tINTERNAL\t\tISO_10367-BOX/"..., 4096) = 4096
brk(0) = 0x8108000
brk(0x8109000) = 0x8109000
brk(0) = 0x8109000
brk(0x810a000) = 0x810a000
brk(0) = 0x810a000
brk(0x810b000) = 0x810b000
read(3, "\t\tto\t\t\tmodule\t\tcost\nmodule\tShift"..., 4096) = 222
read(3, "", 4096) = 0
close(3) = 0
munmap(0x402c0000, 4096) = 0
brk(0) = 0x810b000
brk(0x810c000) = 0x810c000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "#!/bin/sh\n\nPATH=/sbin:/bin:/usr/"..., 1272) = 1272
brk(0) = 0x810c000
brk(0x810d000) = 0x810d000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/etc/default/bind9", {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64("/etc/default/bind9", {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
open("/etc/default/bind9", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
read(3, "OPTIONS=\"-u bind\"\n", 18) = 18
close(3) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/usr/sbin/rndc", {st_mode=S_IFREG|0755, st_size=19384, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
brk(0) = 0x810d000
brk(0x810e000) = 0x810e000
brk(0) = 0x810e000
brk(0x810f000) = 0x810f000
write(1, "Starting domain name service: na"..., 35Starting domain name service: named) = 35
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/sbin/modprobe", {st_mode=S_IFREG|0755, st_size=21428, ...}) = 0
stat64("/sbin/modprobe", {st_mode=S_IFREG|0755, st_size=21428, ...}) = 0
brk(0) = 0x810f000
brk(0x8110000) = 0x8110000
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -8, [1264], SEEK_CUR) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x40063948) = 4492
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) [at] 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG) = 4492
waitpid(-1, 0xbfffed6c, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075fd0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], 0}, 8) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/sbin/mkdir", 0xbffff1d0) = -1 ENOENT (No such file or directory)
stat64("/bin/mkdir", {st_mode=S_IFREG|0755, st_size=19448, ...}) = 0
stat64("/bin/mkdir", {st_mode=S_IFREG|0755, st_size=19448, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x40063948) = 4493
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) [at] 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 4493
waitpid(-1, 0xbfffeeac, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075fd0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], 0}, 8) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/sbin/chmod", 0xbffff270) = -1 ENOENT (No such file or directory)
stat64("/bin/chmod", {st_mode=S_IFREG|0755, st_size=17976, ...}) = 0
stat64("/bin/chmod", {st_mode=S_IFREG|0755, st_size=17976, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x40063948) = 4494
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) [at] 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 4494
waitpid(-1, 0xbfffef4c, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075fd0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], 0}, 8) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/sbin/chown", 0xbffff270) = -1 ENOENT (No such file or directory)
stat64("/bin/chown", {st_mode=S_IFREG|0755, st_size 024, ...}) = 0
stat64("/bin/chown", {st_mode=S_IFREG|0755, st_size 024, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x40063948) = 4495
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075fd0, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 4495
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) [at] 0 (0) ---
waitpid(-1, 0xbffff00c, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/usr/sbin/named", {st_mode=S_IFREG|0755, st_size=256952, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/sbin/start-stop-daemon", {st_mode=S_IFREG|0755, st_size=18424, ...}) = 0
stat64("/sbin/start-stop-daemon", {st_mode=S_IFREG|0755, st_size=18424, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x40063948) = 4496
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) [at] 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 4496
waitpid(-1, 0xbffff0ac, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075fd0, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/sbin/resolvconf", 0xbffff380) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(1, ".\n", 2.
) = 2
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nexit 0\n", 1272) = 8
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0) = ?

--Boundary_(ID_wln1qAAQPfbotDyeFbdxvQ)--
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
joy [ Do, 08 Juli 2004 09:51 ] [ ID #64346 ]

Re: Re:setting up bind

gracecott [at] sancharnet.in wrote:

> Anyways, I did what ever you guys instructed me to do. However, named
> just refuses to get off the ground.

Do you mean that named doesn't start?

> the other computers on my network just refuse to connect to my NS and
> exit with a ":timed out, no servers reached" error

> When I stop named , I get an error rndc :connect failed : connection refused

Both of which suggests that named isn't starting.

I suggest that you check the log files for the messages which named
prints at startup.

--
Glynn Clements <glynn.clements [at] virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Glynn Clements [ Do, 08 Juli 2004 10:30 ] [ ID #64349 ]

Re: Re:setting up bind

gracecott [at] sancharnet.in wrote:

> I straced /etc/init.d/bind9 start
> and i've attached the o/p

That doesn't help at all. You're strace'ing the script which starts
named, not named itself.

Check the log files.

--
Glynn Clements <glynn.clements [at] virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Glynn Clements [ Fr, 09 Juli 2004 05:57 ] [ ID #64357 ]

Re: setting up bind

Thanks a lot for all the help and advice.

I did whatever you guys guys told me to , stopping short only of copying
whatever Ahsan had sent .

However, bind STILL refuses to start.
Got my 4th Sem., exams in three days and cannot spend any time on this
right now.
When I return to work, however, I will try to solve it myself else run
to you guys for help.
So,

I'll be back.

Thanx a lot,

Joy.M.M

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
joy [ Sa, 10 Juli 2004 09:02 ] [ ID #64362 ]
Linux » gmane.linux.admin » setting up bind

Vorheriges Thema: Re:setting up bind(sorry)
Nächstes Thema: parport_pc problems/strange behavior