PDA

View Full Version : bind on redhat 9.. need help


trey85stang
07-08-2004, 08:46 PM
Ive got some things I need to learn how to work with.. So I am setting up a small server at the house to get accustomed to some crap...

first thing is I need to setup bind, my first goal is to get a simple setup to actually work.. then later add some settings as needed (mainly just DDNS)... however.. I am stuck on one little corny detail on this bind setup...


I cannot get forwarders to work.. wth is the deal??

named.conf is as follows....

[root@rh9server root]# cat /etc/named.conf
options {

DIRECTORY "/var/named";
forwarders { 166.102.165.11; };
};
zone *.* in {
type hint;
file "named.root";
}:

zone "trey85stang.local" in {
type master;
file "primary/domain-info";
};

zone "2.168.192.in-addr.arpa" in {
type master;
file "primary/inverse-domain-info";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "primary/loopback-domain-info";
};


I cant figure out where the fowarders option goes :confused: , btw.. more post to come in the following weeks regarding apache NIS and BIND :)

HiTechRedneck
07-08-2004, 10:23 PM
[QUOTE=trey85stang] I cant figure out where the fowarders option goes :confused:[/QUOTE]
forwarders go in the options section like you have it. Are you behind a firewall? If so have you tried query-source address * port 53; in the options section?

[QUOTE=trey85stang] zone *.* in {[/QUOTE]
Is this a typo? should be "." instead of *.*

AbecX
07-08-2004, 10:33 PM
Install Tinydns, its much better :)

trey85stang
07-09-2004, 06:42 AM
[QUOTE=SYN/ACK]forwarders go in the options section like you have it. Are you behind a firewall? If so have you tried query-source address * port 53; in the options section?


Is this a typo? should be "." instead of *.*[/QUOTE]


yup.. I think that was a typeo.. however I did not want a root dns server.. so I deleted it.

I am going to add what you have and give it a try!
I am also going to try tindydns... and see if I can get it going any easier.

trey85stang
07-09-2004, 07:48 AM
I installed webmin and manually deleted my forwarder entry, I added it back via webmin.. and it works now.. the only thing different is it now has "port 53" after the forward address....

I have one last question though.... how can I make trey85stang.local a host?? i.e. currently if I

ping rh9server

I get a response from rh9server.trey85stang.local... Now if I

ping trey85stang.local

I get unknown host.... In MS DNS i just added a blank A (or cname??) record and this worked fine.. but this is not working with bind any ideas?

Blue88Coupe
07-09-2004, 09:03 AM
[QUOTE=trey85stang]I installed webmin and manually deleted my forwarder entry, I added it back via webmin.. and it works now.. the only thing different is it now has "port 53" after the forward address....

I have one last question though.... how can I make trey85stang.local a host?? i.e. currently if I

ping rh9server

I get a response from rh9server.trey85stang.local... Now if I

ping trey85stang.local

I get unknown host.... In MS DNS i just added a blank A (or cname??) record and this worked fine.. but this is not working with bind any ideas?[/QUOTE]

echo trey85stang.local ip.add.re.ss >> /etc/hosts

trey85stang
07-09-2004, 10:05 AM
[QUOTE=Blue88Coupe]echo trey85stang.local ip.add.re.ss >> /etc/hosts[/QUOTE]

but that will only work on the one machine.. I want all the machines to resolve trey85stang.local, that is possible right?

HiTechRedneck
07-09-2004, 10:17 AM
Just put an "A x.x.x.x" under the named server of what you want it to resolve to in your trey85stang.local zone. Like:


7130 ; serial
900 ; refresh (15 minutes)
600 ; retry (10 minutes)
86400 ; expire (1 day)
3600 ; minimum (1 hour)
)
NS ns1.trey85stang.net.

A 1.1.1.1

trey85stang
07-09-2004, 06:50 PM
ok.. i got this bad boy going... I took the webmin approach, i deleted everything and then configured with webmin.. everything works now :)

now.. to move onto NIS... new post to come soon :D