LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2008, 08:49 AM   #1
JSkywalker
Member
 
Registered: Aug 2007
Distribution: openSUSE
Posts: 102

Rep: Reputation: 24
Dns (bind on opensuse/Windows clients)


On my Windows-XP PC, i see this, and ask mself why i get the 'Server:UnKnown'

D:\>nslookup 192.168.178.250
*** Can't find server name for address 192.168.178.250: Server failed
*** Default servers are not available
Server: UnKnown
Address: 192.168.178.250

*** UnKnown can't find 192.168.178.250: Server failed

D:\>nslookup opensuse
*** Can't find server name for address 192.168.178.250: Server failed
*** Default servers are not available
Server: UnKnown
Address: 192.168.178.250

Name: opensuse.example.com
Address: 192.168.178.250


D:\>nslookup -debug
------------
Got answer:
HEADER:
opcode = QUERY, id = 1, rcode = SERVFAIL
header flags: response, want recursion, recursion avail.
questions = 1, answers = 0, authority records = 0, additional = 0

QUESTIONS:
250.178.168.192.in-addr.arpa, type = PTR, class = IN

------------
*** Can't find server name for address 192.168.178.250: Server failed
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.178.250

>



zone-file contains:
example.com. IN NS opensuse.example.com.
opensuse IN A 192.168.178.250

reverse-file contains:
.178.168.192.in-addr.arpa IN NS opensuse.example.com.
250.178.168.192.in-addr.arpa IN PTR opensuse.example.com.
 
Old 08-23-2008, 11:27 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Post your entire named.conf and the full contents of both zone files.
 
Old 08-23-2008, 11:45 AM   #3
JSkywalker
Member
 
Registered: Aug 2007
Distribution: openSUSE
Posts: 102

Original Poster
Rep: Reputation: 24
full-config-files..

== named.conf ==
options {
directory "/var/lib/named";
# include "/etc/named.d/forwarders.conf";
};
logging {
category queries { log_file; };
category xfer-in { log_file; };
category xfer-out { log_file; };
category default { log_file; };
channel log_file { file "/var/log/dns.log" size 2048M; };
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "example.com" in {
allow-transfer { localhost; localnets; };
file "master/example.com";
type master;
};
zone "178.168.192.in-addr.arpa" in {
allow-transfer { localhost; localnets; };
file "master/178.168.192.in-addr.arpa";
type master;
};



== example.com
$TTL 2d
@ IN SOA opensuse.example.com. root.opensuse.example.com. (
2008082201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

example.com. IN NS opensuse.example.com.
example.com. IN MX 10 opensuse.example.com.
opensuse IN A 192.168.178.250
asus IN A 192.168.178.2
router IN A 192.168.178.1
medion IN A 192.168.178.30
xppro1 IN A 192.168.178.50


== 178.168.192.in-addr.arpa
$TTL 2d
@ IN SOA opensuse.example.com. root.example.com. (
2008082200 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

.178.168.192.in-addr.arpa IN NS opensuse.example.com.
250.178.168.192.in-addr.arpa IN PTR opensuse.example.com.
1.178.168.192.in-addr.arpa IN PTR router.example.com.
2.178.168.192.in-addr.arpa IN PTR asus.example.com.
30.178.168.192.in-addr.arpa IN PTR medion.example.com.
50.178.168.192.in-addr.arpa IN PTR xppro1.example.com.
 
Old 08-23-2008, 03:30 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Code:
.178.168.192.in-addr.arpa IN NS opensuse.example.com.
remove the leading period from .172...

I usually only use the last octet in reverse zones, i.e.
250
1
2
...

instead of fully-qualified, but I believe you need the trailing dot after "in-addr.arpa" if you put the fully-qualified address on the left.

You can do
Code:
$ sudo grep named /var/log/*
to see if named is generating any errors when it tries to load.
 
Old 08-24-2008, 08:11 AM   #5
JSkywalker
Member
 
Registered: Aug 2007
Distribution: openSUSE
Posts: 102

Original Poster
Rep: Reputation: 24
Yes, it works with changing thes few dots.....
(i MUST have read the manual in a wrong way

== 178.168.192.in-addr.arpa
Quote:
$TTL 2d
@ IN SOA opensuse.example.com. root.example.com. (
2008082200 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

178.168.192.in-addr.arpa. IN NS opensuse.example.com.
250.178.168.192.in-addr.arpa. IN PTR opensuse.example.com.
1.178.168.192.in-addr.arpa. IN PTR router.example.com.
2.178.168.192.in-addr.arpa. IN PTR asus.example.com.
30.178.168.192.in-addr.arpa. IN PTR medion.example.com.
50.178.168.192.in-addr.arpa. IN PTR xppro1.example.com.
and you're right about the fact that this:
Quote:
2.178.168.192.in-addr.arpa. IN PTR asus.example.com.
is equivalent to:
Quote:
2 IN PTR asus.example.com.
 
  


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
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server texmansru47 Linux - Networking 12 07-10-2008 07:06 PM
Can bind 9 (DNS) resolve names based on who's asking?? (internal vs. external clients registering Linux - Networking 3 06-16-2004 07:25 AM
Can't get bind to reslove for windows clients. bentman78 Linux - Software 3 10-25-2003 02:33 PM
Have problems with DNS(Linux)- only on windows clients... Senta Linux - Networking 4 07-02-2003 02:06 AM
BIND DNS for Windows 2000 clients narcoterrorist Linux - Networking 1 05-07-2002 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:39 PM.

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