DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 29th, 2004, 05:18 PM
Keith_Ng Keith_Ng is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 Keith_Ng User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 39 sec
Reputation Power: 0
BIND server doesn't resolve private domain

Hi,

I am trying to setup a private domain zone (e.g. mydomain.local) on a BIND 9.2.2 server. This server is just a caching-only name server (not authorized for any zones.).

I created a zone entry in the named.conf file and also the zone file mydomain.local.zone for this private domain.

When I use nslookup or dig to query the server, every public domain is queryable except this private domain (and it is the only one). I did use named-checkconf and named-checkzone to verify these configuration files.

My understanding is if I send a query to the name server, it will check its named.conf file. If it find a zone entry with a matched name, it will return the zone information. But I just can't get it resolve the private domain name.

Would anyone tell me what do I miss in this situation? Also, named doesn't seem to be able to create a log file even I have configured it in the named.conf.

Thanks

Keith


// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;

};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

logging {
channel query_logging {
file "query.log" versions 3 size 100M;
print-category yes;
print-severity yes;
print-time yes;
};

category queries {
query_logging;
};
};


zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "mydomain.local" {
type master;
file "mydomain.local";

};


include "/etc/rndc.key";

Reply With Quote
  #2  
Old July 29th, 2004, 10:44 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
show me the results of this command:

ps -Af | grep 'named'
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old July 30th, 2004, 09:36 AM
Keith_Ng Keith_Ng is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 Keith_Ng User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 39 sec
Reputation Power: 0
Hi SilentRage,

Here is output of the command, thanks.

named 6635 1 0 Jul29 ? 00:00:00 /usr/sbin/named -u named -t /var/named/chroot
root 7188 7139 0 07:34 pts/3 00:00:00 grep named

Keith

Reply With Quote
  #4  
Old July 30th, 2004, 02:50 PM
Keith_Ng Keith_Ng is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 Keith_Ng User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 39 sec
Reputation Power: 0
Hi,

I have figured out what the problem was. BIND was configured to use /var/named/chroot as the working directory. However, I put all my zone file in the /etc/named directory and that is why no zone file is loaded when named is started.

Thanks again for your hints.

Keith

Reply With Quote
  #5  
Old July 31st, 2004, 12:29 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
hehehe, I love it when I hit a problem right on the nose straight up. That's why I had ya run that command, I wanted a peek to see if it used chroot.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > BIND server doesn't resolve private domain


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT