Re: Bind
- From: "Ezra Taylor" <ezra.taylor@xxxxxxxxx>
- Date: Sun, 18 Nov 2007 13:49:56 -0500
MadUnix:
How is you system suspose to know who linux1 belongs
to? You have to do a dig or nslookup on linux1.my.lan and not just linux1.
Or maybe I'm missing something here.
Ezra
On Nov 17, 2007 8:10 AM, Mad Unix <madunix@xxxxxxxxx> wrote:
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.
--
madunix
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
Ezra Taylor
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- Re: Bind
- From: Mad Unix
- Re: Bind
- References:
- Bind
- From: Mad Unix
- Bind
- Prev by Date: RAID 1 Failing
- Next by Date: Re: ipop3d process locked
- Previous by thread: Bind
- Next by thread: Re: Bind
- Index(es):
Relevant Pages
- Re: Some DNS server names will not resolve using internal servers
... DNAME do in fact redirect queries from zone A to zone ... Until you can show
the actual NSLookup responses ... DNS server (to prove that there is not some weird
interaction ... We have not rebooted the DNS server yet. ... (microsoft.public.windows.server.dns) - Re: DNS server nslookup failure
... > with nslookup and it has dns request timed out: ... > Default Server:
UnKnown ... Depending on if the zone is stored in Active Directory on the DC and
how ... (microsoft.public.windows.server.dns) - Re: Problem setting of Secondary DNS zones on Win2003 Server
... nslookup is definitely using the same DNS server (I'm typing server ... I've
deleted and recreated the zone on several occasions to no avail. ... The DNS server
is probably not a Windows machine (I have no idea to be ... In an attempt to diagnose what is
going on I run nslookup from the ... (microsoft.public.windows.server.dns) - Re: Some DNS server names will not resolve using internal servers
... If you do have the zone for any external sites ... do the nslookup on
our ISP server i get this. ... Your server didn't answer. ... We have not rebooted
the DNS server yet. ... (microsoft.public.windows.server.dns) - RE: exchange server cannot mount mailbox store
... What's the exact detailed DNS Events ... Type desired internal IP address of
your SBS server. ... it will delete the reverse lookup zone if the zone no longer
... Microsoft CSS Online Newsgroup Support ... (microsoft.public.windows.server.sbs)