LinuxQuestions.org
Visit Jeremy's Blog.
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 11-17-2007, 01:47 AM   #1
madunix
LQ Newbie
 
Registered: Oct 2003
Posts: 25

Rep: Reputation: 0
Bind


I setup dns on my linux server RHEL5, on my windows client machine i still have this message, but resolve the domain name with the issue of non exixt domain
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\PONS>nslookup freebsd.org
*** Can't find server name for address 10.5.1.30: Non-existent domain

*** Default servers are not available
Server: UnKnown
Address: 10.5.1.30

Non-authoritative answer:
Name: freebsd.org
Address: 69.147.83.40


C:\Documents and Settings\PONS>nslookup freebsd.org
*** Can't find server name for address 10.5.1.30: Non-existent domain

*** Default servers are not available
Server: UnKnown
Address: 10.5.1.30

Non-authoritative answer:
Name: freebsd.org
Address: 69.147.83.40


what could be wrong?
 
Old 11-17-2007, 02:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
not a networking question. moved to Linux - Server. either way it appears to be unable to do a reverse lookup... no PTR record defined for your DNS server?

Last edited by acid_kewpie; 11-17-2007 at 02:23 AM.
 
Old 11-17-2007, 07:14 AM   #3
madunix
LQ Newbie
 
Registered: Oct 2003
Posts: 25

Original Poster
Rep: Reputation: 0
Hi linuxers

I am setting up a DNS/BIND for my local office 100 users for resolving
internal (nonroutable) and external names (internet)
for internet usage it works fine but for internal one it shows problems
am not using real name i called only my.lan
my DNS server 10.5.1.30 hostname: linux1.my.lan
my clients having 10.6.x.0/24
my servers having 10.5.0.0/16

can any one tell me what am doing wrong?

root@linuxvmware:~# cat /etc/resolv.conf
nameserver 10.5.1.30
domain my.lan
search my.lan






root@linuxvmware:~# nslookup redhat.com
Server: 10.5.1.30
Address: 10.5.1.30#53

Non-authoritative answer:
Name: redhat.com
Address: 209.132.177.50

root@linuxvmware:~# dig redhat.com

; <<>> DiG 9.4.1-P1 <<>> redhat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41276
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1

;; QUESTION SECTION:
;redhat.com. IN A

;; ANSWER SECTION:
redhat.com. 49 IN A 209.132.177.50

;; AUTHORITY SECTION:
redhat.com. 370 IN NS ns1.redhat.com.
redhat.com. 370 IN NS ns2.redhat.com.
redhat.com. 370 IN NS ns3.redhat.com.

;; ADDITIONAL SECTION:
ns3.redhat.com. 90304 IN A 66.187.229.10

;; Query time: 11 msec
;; SERVER: 10.5.1.30#53(10.5.1.30)
;; WHEN: Sun Nov 4 20:58:54 2007
;; MSG SIZE rcvd: 114



root@linuxvmware:~# dig linux1

; <<>> DiG 9.4.1-P1 <<>> linux1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2535
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;linux1. IN A

;; AUTHORITY SECTION:
. 5874 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2007111601 1800 900 604800 86400

;; Query time: 2 msec
;; SERVER: 10.5.1.30#53(10.5.1.30)
;; WHEN: Sun Nov 4 20:59:23 2007
;; MSG SIZE rcvd: 99



root@linuxvmware:~# nslookup linux1
Server: 10.5.1.30
Address: 10.5.1.30#53

** server can't find linux1: NXDOMAIN

root@linuxvmware:~#







/etc/named.caching-nameserver.conf


//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//

acl my-lan { 10.5.0.0/16; 10.6.40.0/24; 127.0/8; };

options {
forwarders { X.X.X.X; Y.Y.Y.Y; }; #IP of upstream ISP nameserver(s)
forward only; #rely completely on our upstream nameservers
listen-on port 53 { 127.0.0.1; 10.5.1.30;};
listen-on { 10.5.1.30; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; my-lan; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." {
type hint;
file "named.root";
};


# Forward Zone for my.lan domain
zone "my.lan" IN {
type master;
file "my.lan.zone";
allow-query { localhost; my-lan; };
};

# Reverse Zone for my.lan domain
zone "0.10.in-addr.arpa" IN {
type master;
// file "10.0.zone";
file "10.in-addr.arpa";
//file "0.10.in-addr.arpa";
allow-query { localhost; my-lan; };
};


view localhost_resolver {
match-clients { localhost; 10.5.0.0/16; 10.6.40.0/24; 127.0/8; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
~



------------------------------
my.lan.zone

$TTL 12h

@ IN SOA linux1.my.lan. pons.my.lan. (
2007052500 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum
; Name servers
IN NS linux1.my.lan.
; Mail servers
IN MX 5 linux1.my.lan.
; Individual servers
linux1 IN A 10.5.1.30
linuxvmware IN A 10.6.40.81
mailhost IN CNAME linux1
www IN CNAME linux1


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


10.in-addr.arpa

$TTL 24h
; 10.0.rev
@ IN SOA linux1.my.lan pons.my.lan. (
2007052500
10800
3600
604800
86400 )

IN NS linux1.my.lan.

10 IN PTR linux1.my.lan.
1 IN PTR linuxvmware.my.lan.
 
  


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
bind 9.4.0 bind other ports ? kaixa Linux - Server 2 02-28-2007 12:33 PM
How do I import bind ".hosts" files into another BIND server chantman Linux - Software 0 06-30-2006 11:51 AM
LXer: DNS: The Bind Leading the Bind LXer Syndicated Linux News 0 06-15-2006 10:33 PM
How to update BIND ./etc/bind/db.coaxcables AndeAnderson Debian 0 03-03-2006 09:35 AM
To 'Bind' or not to 'Bind' that is the question jsurgeson Linux - Newbie 2 03-24-2002 03:10 AM

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

All times are GMT -5. The time now is 07:15 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