LinuxQuestions.org
Review your favorite Linux distribution.
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 11-25-2008, 11:32 AM   #1
Sovan
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
Need help (DNS Server on FC8)


Hello!
I'm a noob.

I have a computer with Fedora Core 8 and i want to configure my computer to work as DNS server, Mail server and Web server.

I suppose i have:
Public IP = 203.128.198.198
Private IP = 192.168.1.1/24
My hostname = ns1.


This my /etc/named.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.
//

options {
listen-on port 53 { 127.0.0.1; };
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";
allow-query { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

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

include "/etc/named.rfc1912.zones";



This my /etc/named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/...l-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

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

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

zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};

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

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

zone "rupp.edu.kh" IN {
type master;
file "rupp.edu.kh.lan";
allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.db";
allow-update { none; };
};


This my rupp.edu.kh.lan file (Forward Lookup)
$TTL 1D
@ IN SOA ns1.rupp.edu.kh. webmaster.rupp.edu.kh (
2008112502 ;Serial
1H ;Refresh
1800 ;Retry
1W ;Expire
1D ;Minimum TTL
)

IN NS ns1.rupp.edu.kh.

IN MX 10 mail.rupp.edu.kh.

ns1 IN A 192.168.1.1
Mail IN A 192.168.1.1
www IN A 192.168.1.1

This my 1.168.192.db file (Reverse Lookup)

$TTL 1D
@ IN SOA ns1.rupp.edu.kh. webmaster.rupp.edu.kh (
2008112502 ;Serial
1H ;Refresh
1800 ;Retry
1W ;Expire
1D ;Minimum TTL
)
IN NS ns1.rupp.edu.kh.
1 IN PTR ns1.rupp.edu.kh.

and i have edit my /etc/resolv.conf
search rupp.edu.kh
nameserver 192.168.1.1

When i try to query domain name i got error connection time out.

Here is my log:

Nov 25 18:33:39 ns1 named[3065]: starting BIND 9.5.0a6 -u named -t /var/named/chroot
Nov 25 18:33:39 ns1 named[3065]: found 1 CPU, using 1 worker thread
Nov 25 18:33:39 ns1 named[3065]: SDB ldap zone database module loaded.
Nov 25 18:33:39 ns1 named[3065]: SDB postgreSQL DB zone database module loaded.
Nov 25 18:33:39 ns1 named[3065]: SDB sqlite3 DB zone database module loaded.
Nov 25 18:33:39 ns1 named[3065]: SDB directory DB zone database module loaded.
Nov 25 18:33:39 ns1 named[3065]: loading configuration from '/etc/named.conf'
Nov 25 18:33:39 ns1 named[3065]: listening on IPv6 interface lo, ::1#53
Nov 25 18:33:39 ns1 named[3065]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 127.IN-ADDR.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 254.169.IN-ADDR.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: D.F.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 8.E.F.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: 9.E.F.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: A.E.F.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: automatic empty zone: B.E.F.IP6.ARPA
Nov 25 18:33:39 ns1 named[3065]: command channel listening on 127.0.0.1#953
Nov 25 18:33:39 ns1 named[3065]: command channel listening on ::1#953
Nov 25 18:33:39 ns1 named[3065]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2008112502
Nov 25 18:33:39 ns1 named[3065]: zone rupp.edu.kh/IN: loaded serial 2008112502
Nov 25 18:33:39 ns1 named[3065]: running



Sorry for this long description.
I appreciated your help.

Thanks

HSV.
 
Old 11-26-2008, 12:19 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You have setup your dns to listen only on the loopback interface:
Quote:
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
And you have used in /etc/resolv.conf 192.168.1.1 IP as dns.
 
Old 11-26-2008, 06:39 AM   #3
Sovan
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you.

I've comment this 2 lines:

//listen-on port 53 { 127.0.0.1; };
//listen-on-v6 port 53 { ::1; };

It's working.
 
  


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
Can I upgrade from FC3 to FC8? I have 2 FC8 cds. trien27 Fedora - Installation 5 10-19-2008 01:43 PM
how to configure another dns server to combine use with primary current dns server. hocheetiong Linux - Newbie 1 05-29-2008 06:57 PM
LXer: Find out DNS Server Version With DNS Server Fingerprinting Tool LXer Syndicated Linux News 0 12-21-2007 05:30 PM
LXer: Find out DNS Server Version With DNS Server Fingeprinting Tool LXer Syndicated Linux News 0 12-21-2007 04:50 PM
fc8 selinux and VMware Server 1 Ammad Linux - Security 1 12-16-2007 12:01 AM

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

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