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 09-03-2009, 10:50 AM   #1
ddenton
Member
 
Registered: May 2007
Posts: 114

Rep: Reputation: 15
Using BIND to resolve internal non-FQDN names


Hello all. I have an RHEL5 server running BIND. I'd like to be able to resolve internal, non-FQDN names such as "wiki" for the company internal wiki. in my named.conf file I have the following:

Code:
zone "wiki" IN {
        type master;
        file "wiki";
        allow-update { none; };
};
In my zone record I have the following:

Code:
$TTL    86400
@       IN      SOA     localhost       root (
                                        42              ; serial ()
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
        IN      NS      localhost
        IN      A       192.168.100.233

wiki    IN      A       192.168.100.233
Named-checkzone returns no errors, and nslookup works when specifying the server explicitly, but no browser resolves the name when entered in the address line. I know this by no means a standard use of BIND, but I'm sure someone out there's pulled this off. I did see when googling someone suggest "load the root zone (.) as master, and add your "hosts" as TLDs, using CNAMEs", but tried that and probably did it wrong since it didn't work. Any help is greatly appreciated...
 
Old 09-03-2009, 12:20 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You miss some trailing dots in you zone file, so it's better use this:
Code:
$TTL    86400
@       IN      SOA     wiki       root@localhost. (
                                        43              ; serial ()
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
        IN      NS      localhost.
        IN      A       192.168.100.233
Also make sure that /etc/resolv.conf does not contain a line starting with "domain ..." or "search ..." and your nameserver is the 1st in the list.
 
  


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 DNS for Active Directory long names don't resolve humbletech99 Linux - Networking 2 01-18-2007 05:22 AM
Moved Subnets: Now cannot resolve short name, but FQDN works fine? hevnsnt Linux - Networking 5 12-29-2006 01:34 PM
BIND: server can't resolve names on itself psychobyte Linux - Networking 6 02-03-2006 05:24 PM
Internal Can't Resolve Names bootface Linux - Networking 3 03-21-2005 12:00 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

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

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