URN Logo
UNIX Resources » Linux » Linux Forum » Linux DNS Servers » Page.2 » Newbie Dns Server Configuration
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Newbie Dns Server Configuration
Subject: Newbie Dns Server Configuration
Author: pedrog    Posted: 2005-02-08 16:46:15    Length: 6,794 byte(s)
[Original] [Print] [Top]
Hi,

I'm a newbie in linux. Just set up and running a Fedora Core 3 BOX.

I've managed to configure allmost everything i wanted. But now i'm facing several problems with DNS server.

I've set up the dns server to forward queries to my ISP dns, but it doesn't resolve my internal lan names (after i will need to configure DHCP to update the DNS server, but for now i only want the dns to resolve some fixed aliased servers).

These commands were executed in the dns box (The refered fedora core 3)
[root@fprm01 /]# host fprm01
Host fprm01 not found: 3(NXDOMAIN)
[root@fprm01 /]# host fprm01.focuspoint-solutions.local
Host fprm01.focuspoint-solutions.local not found: 2(SERVFAIL)

What is wrong Huh?

This are my named files

--------------------------------------------------------
// named.conf file
options {
  directory "/var/named";
  forwarders {
    194.65.100.117;
    194.65.100.115;
  };
};

controls {
  inet 127.0.0.1
  allow {
    localhost;
  }
  keys {
    rndckey;
  };
};

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 "focuspoint-solutions.local" IN {
  type master;
  file "focuspoint-solutions.local.zone";
  allow-update {
    localhost;
  };
};

zone "50.168.192.in-addr.arpa" IN {
  type master;
  file "192.168.50.rev";
  allow-update {
    localhost;
  };
};

include "/etc/rndc.key";

--------------------------------------------------------
; 192.168.50.rev file
$ORIGIN .
$TTL 259200   ; 3 days
50.168.192.in-addr.arpa   IN SOA   fprm01.focuspoint-solutions.local. root.fprm01.focuspoint-solutions.local. (
            1997022700 ; serial
            28800      ; refresh (8 hours)
            7200       ; retry (2 hours)
            604800     ; expire (1 week)
            86400      ; minimum (1 day)
            )
         NS   fprm01.voidmain.home.
$ORIGIN 50.168.192.in-addr.arpa.
; Static Addresses
$TTL 259200     ; 3 days
1         PTR   fprm01.focuspoint-solutions.local.
50         PTR   fprm02.focuspoint-solutions.local.
; This file will be automatically updated when DHCP issues an address
$TTL 600     ; 10 minutes

--------------------------------------------------------
; focuspoint-solutions.local.zone file
$ORIGIN .
$TTL 3600   ; 1 hour
focuspoint-solutions.local      IN SOA   fprm01.focuspoint-solutions.local. root.fprm01.focuspoint-solutions.local. (
            1997022700 ; serial
            21600      ; refresh (6 hours)
            1800       ; retry (30 minutes)
            604800     ; expire (1 week)
            3600       ; minimum (1 hour)
            )
         NS   fprm01.voidmain.home.
         A   192.168.0.2
         TXT   "FocusPoint Solutions Main Home"
$ORIGIN voidmain.home.
; Static Adresses
$TTL 259200     ; 3 days
fprm01         A   192.168.50.1
fprm02         A   192.168.50.50
; This file will be automatically updated when a DHCP assigns an address
$TTL 600   ; 10 minutes

--------------------------------------------------------
; localhost.zone file
$TTL   86400
$ORIGIN localhost.
@         1D IN SOA   @ root (
               42      ; serial (d. adams)
               3H      ; refresh
               15M      ; retry
               1W      ; expiry
               1D )   ; minimum

         1D IN NS   @
         1D IN A      127.0.0.1
 
[Original] [Print] [Top]
Subject: Newbie Dns Server Configuration
Author: CB900F    Posted: 2005-02-10 22:01:12    Length: 583 byte(s)
[Original] [Print] [Top]
use nslookup to query your DNS servers to check.  
if you are on your Linux DNS server type:
nslookup <enter>
server 127.0.0.1 <enter>
fprm01.focuspoint-solutions.local <enter>

If that doesn't come back with a good answer.  Go look in the logs and see when bind is starting.  It should tell you where the error in your DNS file is.

Good luck, bind is a pita.  For future refrence I've always used djbdns.  But I don't do dynamic updates.  So I'm not sure if it would help you.
[Original] [Print] [Top]
Subject: Newbie Dns Server Configuration
Author: antiburn    Posted: 2005-02-15 22:10:45    Length: 167 byte(s)
[Original] [Print] [Top]
Which server did you put your name.conf and the others relatives files (your zone files) ? and did you point your fprm01/02 to your local dns server in resolve.conf ?
[Original] [Print] [Top]
« Previous thread
Bindconf Error
Linux DNS Servers
Page. 2
Next thread »
Bound By Bind
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:06:56, cost 0.064226865768433 ms.