DNS Server problem

Fuzz009

Distinguished
Aug 15, 2001
74
0
18,630
Greetings!
After browsing a WHOLE lot of websites I turn to you for help. The community here has been great. But, if know of a linux forum that I Should seeking more detail then please refer me.

Here is my problem. I am student in a Masters program. I had the ability to choose what kind of hands on project I want to do. SO i picked a DNS and Mail server which will be all ran on one machine. I am just trying to make DNS work internally. I am not worried about getting it registered and all that jazz.

I installed Red Hat 8. Bind version 9.2.1 I believe. I added a zone to the named.conf file. Took the file that was already there and added that zone along with of course creating the db file in the var/named directory.

I can dig. I can do reverse lookups all on the local machine. Seems to work fine.

So on my windowsxp machine I change the dns server to the Internal IP of the DNS server. (Just a LAN I am working on)

I pull up dos prompt. Try nslookup to see if I can bring up the name server and possibly ping the domain name.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Amy>nslookup
*** Can't find server name for address 192.168.1.101: No response from server
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.1.101

My host name for the server is buck1.gotawayranch.com
(I couldn't think of what to call it)

When I log in I see buck1

A weird thing about it is..well maybe not for you. If I dig the domain or list everything associated blah blah I get everything listed with the authorative as buck1.gotawayranch.com

Now if I type in dnsdomainname I get

dnsdomainname: Unknown host

I am missing the link here I guess. Please give me some ideas.I will pull out the rest of the hair I have left!
 

poorboy

Distinguished
Jan 17, 2002
634
0
18,980
Did you get that sorted yet?

It looked like the dns server wasn't accepting queries from external hosts...

<i>Knock Knock, Neo</i>
 

lapazzo

Distinguished
Sep 5, 2002
6
0
18,510
I don't know how is the situation with the docs on RedHat, but as I know they are good at it. Here is a working solution:
#/etc/named.conf
....
options {
....
directory "/var/named";
forwarders { ip.of.isp.dns1; ip.of.isp.dns2; };
...
# comment the following
#forward first
....
};
# at the end of the document add
zone "your.domain.local" in {
type master;
file "your.domain.local.zone";
};
# if your inner ips are 192.168.1.0/24
zone "1.168.192.in-addr.arpa" in {
type master;
file "192.168.1.zone";
};
#========================
#then add in /var/named these two files
#/var/named/192.168.1.zone
$TTL 2D
1.168.192.in-addr.arpa. IN SOA the_name_of_the_machine.local. root.localhost. (
1999092901 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum

IN NS ip_or_name_of_th_machine.local.

1 IN PTR ip_or_name_of_th_machine.local.
# if your machine is 192.168.1.1 (NOTE 1 at the end)
2 IN PTR some_other_machine_with_192.168.1.2.local.

# and the file
# /var/your.domain.local
$TTL 2D
local. IN SOA the_name_of_the_machine root.localhost. (
1999092901 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum

IN NS ip_or_name_of_the_machine
IN MX 10 ip_or_name_of_the_machine

ip_or_name_of_the_machine IN A 192.168.1.1
# if your machine is with 192.168.1.1
some_other_machine IN A 192.168.1.2

www IN CNAME ip_or_name_of_the_machine
ftp IN CNAME ip_or_name_of_the_machine

# that's it.
# all that can be found in /usr/share/doc/packages/named (i think)

hope it will work for you