LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2001, 08:40 AM   #1
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
Angry DNS-server! Arrrrgh!


What am I doing wrong here? I'm trying to set up a DNS-server for my LAN. It uses the ip range 192.168.0.0/24 I have a BIND8-nameserver set up with the basic settings that came with SuSE. Works fine so far. dns-services are running. However, if I use the nameserver from any other machine it says:

DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 192.168.0.1

DNS request timed out.
timeout was 2 seconds.
Name: www.genion.de
Address: 195.182.114.93

So obviously it is not able to reverse-lookup 192.168.0.1, the machine my nameserver is running on. So I read the HOWTO and it told me to set up this reverse lookup entry in /etc/named.conf. Here it is:
options {
directory "/var/named";
# the default is to fail, if the master file is not correct
check-names master warn;

pid-file "/var/run/named.pid";

datasize default;
stacksize default;
coresize default;
files unlimited;
recursion yes;

multiple-cnames no;
};
zone "." IN {
type hint;
file "root.hint";
};

zone "localhost" IN {
type master;
file "localhost.zone";
check-names fail;
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
check-names fail;
allow-update { none; };
};

zone "192.168.0.in-addr.arpa" IN {
type master;
file "home.zone";
check-names fail;
allow-update { none; };
};

I myself added the last zone. for debugging purposes I copied the 127.0.0.zone file to home.zone. I'll post it here as well:

@ 1D IN SOA localhost. root.localhost. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS localhost.
1 1D IN PTR localhost.

Now my problem is if I issue (as said in the HOWTO)
# dig -x 192.168.0 AXFR
it doesn't return anything. But it logs the following in /var/log/messages:
denied AXFR from [127.0.0.1].1186 for "0.168.192.in-addr-arpa" (not master/slave)
I'm really stuck on this one. double-checked all the entries twice... I believe they are as told in the HOWTO
Any help is really welcome!

Steave
 
Old 09-20-2001, 08:53 AM   #2
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Original Poster
Rep: Reputation: 30
Talking

OK, posting all the output here and rereading my problem I found the mistake myself
in the zone statement, you have to swap around the Bytes of the IP address. Who would have guessed that?
Anyway, it works out fine now. finally.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
ARRRRGH!!!! Sendmail Configuration Headaches biggdady6998 Linux - Software 4 09-13-2003 02:04 AM
.bash_profile. .bashrc arrrrgh!!!!!! purpleburple Linux - General 1 08-03-2002 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration