Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-18-2004, 03:25 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
BIND 9 won't reslove host names

I am trying to setup a DNS server that is hosted on the same machine as the the website (bad idea i know but just humor me) so i'm pretty sure that i have everything configured right but after i start the name server and try to ping the DNS server from another machine i just get hostname not found. even if i alter my client dns settings and point it to my newly configured DNS it still won't work. Here are my config files:


options {
recursion no;
allow-query { any; };
allow-transfer { any; };
directory "/var/named/";
forwarders {;;

logging {
channel default_syslog {
syslog local2;
severity info;

category lame-servers { null; }; // don't log these
category queries { default_syslog; };
category config { default_syslog; };
category security { default_syslog; };

view "external-in" {
match-clients { any; };
// we don't want to perform recursive lookups for external clients
//allow-recursion {no;};

zone "." {
type hint;
file "root.hints";

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


; Zone file for
; The full zone file
@ IN SOA (
2004021811 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds

; Inet Address of name server

; Primary Mail Exchanger
IN MX 10
shadowfax IN A
ns1 IN CNAME shadowfax
ns2 IN CNAME shadowfax
mail IN CNAME shadowfax
ftp IN CNAME shadowfax
www IN CNAME shadowfax
smtp IN CNAME shadowfax
timeclock IN CNAME shadowfax

Any ideas would be helpful

Old 02-18-2004, 03:36 PM   #2
LQ Newbie
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
I've not setup a DNS yet, but I am also planning to do so. On the SAME box as Apache. I know, just dreadful! But a simple question, do you still need a /etc/resolv.conf file even though you are now a DNS server and what is the print out of this file?
Old 02-18-2004, 05:24 PM   #3
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
It is not that dreadful when you're cash strapped. I do the same.

Yes. A client needs its /etc/resolv.conf configured inorder to find its name server. When you run nslookup , it uses resolv.conf to see what dns server it needs to obtain info from.

search .... (optional)
nameserver x.x.x.x.x
nameserver y.y.y.y
Old 02-18-2004, 05:46 PM   #4
LQ Newbie
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
This is what I thought linuxxed. In fact Every service which needs internet access will need to resolv such names and thus will reference the resolv.conf for guidance. If jglazner has not placed any entries here then he will have these issues.

jglazner, you should place your gateway (router) addr within your resolv.conf file. Failing this, then list the DNS servers in this file.
Old 02-23-2004, 07:42 PM   #5
LQ Newbie
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
i think i have that right

I have the following in resolve.conf


I think that i have this right...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba host names - how? levand Linux - Networking 3 11-18-2004 05:01 AM
multiple host names tux1982 Linux - Networking 3 06-08-2004 07:35 AM
Changing How Host Names are Looked Up civicsi Linux - Newbie 2 04-24-2004 08:18 AM
Can't get bind to reslove for windows clients. bentman78 Linux - Software 3 10-25-2003 03:33 PM
host names??? jonfa Linux - Networking 1 05-28-2001 09:15 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration