BIND

Taking care of your Linux box.
asim
Cadet
Posts: 2
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi
Contact:

BIND

Postby asim » Fri Jul 04, 2003 5:30 pm

SO far I have been unable to setup BIND on my Red Hat 8 box . It just doesn;t work . I have read a number of tutorials and have followed the same steps but so far it hasn;t work . When I nslookup <domain > ,it goes to a sleep and I have to ctrl+z the process .

Any clues to what might be wrong .
and does REd Hat 8.0,9.0 hava any issues/problems related to compiling. Is 7.3 better ?

zaeemarshad
Lieutenant Colonel
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Location: Islamabad
Contact:

Postby zaeemarshad » Sat Jul 05, 2003 6:43 am

well i had some problems setting up bind on redhat 8.0. in the end it turned out to be all my faults. be sure that you edit resolv.conf and set your nameserver address there. also check if the dns entries are proper in the zone file. use this command if u have a zone named zaeem.com with a forward zone file named zaeem.com.zone

named-checkconf zaeem.com /var/named/zaeem.com.zone

this should tell you that if your file works or not. mostly its either a missing ending parentheses after serial and expire values or a missing dns name server's ip address entry. it will help if you post ur named.conf and ur zone file(a small version of it) on the forum.

regards
zaeem

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: BIND

Postby lambda » Sun Jul 06, 2003 11:12 pm

read http://www.isc.org/products/BIND/docs/config/logging.html

set up your named.conf to do a lot of logging, and check the logs for errors.

daberkar
Cadet
Posts: 12
Joined: Fri Aug 22, 2003 2:55 pm
Location: United Arab Emirates
Contact:

Solution, How to configure BIND

Postby daberkar » Thu Sep 25, 2003 5:10 pm

Asalaam o Alikum

I hope this will finds you in best of health. Solution regarding to BIND in linux 8.0 is mentioned as below: -



Forward DNS

# vi /etc/named.conf

zone “daberkar.com” IN {
type master;
file “daberkar.com.zone”;
allow-update {any;};
};
<save file>

# vi /var/named/daberkar.com.zone

TTL 86400

@ IN SOA @ root.suhail.daberkar.com (

42; serial
15M; retry
1W; expiry
1D minimum

)

@ IN NS suhail.daberkar.com.

suhail IN A 192.168.0.1

client IN A 192.168.0.2


Reverse DNS


# vi /etc/named.conf

zone “0.168.192.in-addr.arpa” IN {
type master;
file “0.168.192.in-addr.arpa.zone”;
allow-update {any;};
};
<save file>

# vi /var/named/0.168.192.in-addr.arpa.zone


TTL 86400

@ IN SOA @ root.suhail.daberkar.com (

42; serial
15M; retry
1W; expiry
1D minimum

)

@ IN NS suhail.daberkar.com.

suhail IN PTR suhail.daberkar.com.

client IN PTR client.daberkar.com.




# vi /etc/resolv.conf

domain suhail.daberkar.com


---------- ---------- -------

It is 101% functional at my side, try this at your end. Inshallah it will works !!!!!!!!!!!!! :lol:


Daberkar
Suhail Tariq Moughal

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Fri Sep 26, 2003 12:05 am

Dear All PLUCian's
Salam,

Configuring Bind

Step 1:

Verify that you had installed Bind and cacheing-server pakages.

# rpm -q bind-*.*.rpm
# rpm -q chacheing-server.*.*.rpm

Step 2:

Edit your /etc/named.conf file and add entries for your ip address and for your domains..

zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa.zone";
allow-update { none; };
};

zone "example.com" IN {
type master;
file "example.zone";
allow-update { none; };
};

Save the File.

Step 3:

Create Files 0.168.192.in-addr.arpa.zone and example.zone and example.rev

# touch /var/named/0.168.192.in-addr.arpa.zone
# touch /var/named/example.zone
# touch /var/named/example.rev

Edit One by one File

# vi 0.168.192.in-addr.arpa.zone

TTL 86400

@ IN SOA @ root.localhost. (
42; Serial
15M; Retry
1W; Expiry
1D; Minimum
)

@ IN NS root.localhost.

Save the File and Edit Example.zone

# vi example.zone

TTL 86400

@ IN SOA root.example.com. (
42; Serial
15M; Retry
1W; Expiry
1D; Minimum
)

@ IN NS root.example.com.

www IN PTR www.example.com.
ftp IN PTR ftp.example.com.
mail IN PTR mail.example.com.

Save the File and edit example.rev

# vi example.rev

TTL 86400

@ IN SOA root.example.com. (
42; Serial
15M; Retry
1W; Expiry
ID; Minimum
)

@ IN NS root.example.com.

www IN A 192.168.0.1
ftp IN A 192.168.0.2
mail IN A 192.168.03

Save the File and Edit your /etc/resolve.conf

# vi /etc/resolve.conf

nameserver 192.168.0.1
domain example.com

Save the File and Start the Service.

# /etc/rc.d/init.d/named start

Hope it will Work Fine. you can also check this out www.server-resources.com

Best Regards.
Farrukh Ahmed

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: BIND

Postby lambda » Sun Sep 28, 2003 2:51 pm

asim wrote:When I nslookup <domain > ,it goes to a sleep and I have to ctrl+z the process .


control-z? that only suspends the process. why are you using that instead of control-c?

and does REd Hat 8.0,9.0 hava any issues/problems related to compiling. Is 7.3 better ?


stick with the latest releases. get 9 if you want to use redhat.

Masood
Cadet
Posts: 4
Joined: Wed Jan 15, 2003 7:16 pm
Location: Shamsabad, Rawalpindi
Contact:

Easy BIND configuration HOWTO

Postby Masood » Sun Sep 28, 2003 4:22 pm

Assalam o Alaikum

BIND can be configured to speed up your Net browsing speed
by making it as a caching name server. You can also make it
your full fledge DNS server, for your organization or home PC,
in which you can have your own domains like mylinux.pk, for
example. But to configure BIND, for simple use, it is best to
follow this excellent HOWTO;

http://www.ibiblio.org/pub/Linux/docs/H ... tml.tar.gz

In it you can find a sample domain example also.

Enjoy Linux 8)

Allah Hafiz

Masood


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 2 guests