LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-31-2010, 11:47 PM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Rep: Reputation: 32
internal DNS


Dear All,

I want to have an internal DNS that would serves our LAN .
and I also had external DNS server..(located on our ISP)
I have configured my internal DNS .. by adding new A record named test.mydomain.com (for example) and I knew that test.mydomain.com also exists as A record on external DNS server..

when I ping test.mydomain.com .. it still return from 202.x.x.x (it should be return from 172.16.250.1? ..

it seems like my internal DNS config below not configured properly..
what I missed? please help

thanks & regards
Winanjaya




//
// named.conf
//
// Provided by Red Hat bind 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.
//

options {
listen-on port 53 { 172.16.250.2; };
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; 172.16.250.0/24; };
recursion yes;
forwarders {
202.a.b.c;
61.a.b.c;
};
};

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


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

server 202.a.b.c {
};
server 61.a.b.c {
};
zone "mydomain.com" {
type master;
file "/var/named/mydomain.com.hosts";
};
zone "250.16.172.in-addr.arpa" {
type master;
file "/var/named/172.16.250.rev";
};


and in /var/named/mydomain.com.hosts



$ttl 38400
mydomain.com. IN SOA public. it-department.mydomain.com. (
1265027872
10800
3600
604800
38400 )
mydomain.com. IN NS public.

test.mydomain.com. IN A 172.16.250.1
 
Old 02-01-2010, 12:38 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
Hi,

I guess you're using your internal dns IP in /etc/resolv.conf.
Now this configuration is not going to work, because you have
Quote:
mydomain.com. IN NS public.
that I guess is the dns at your isp. You should change it to the internal dns and add an A record for it:
Code:
mydomain.com. IN NS internal-dns.domain.com.
internal-dns.domain.com.IN A 172.16.250.1
test.mydomain.com. IN A 172.16.250.1
Regarding named.conf, there are also some things not needed:
Quote:
forwarders {
202.a.b.c;
61.a.b.c;
};
Useless without a forward statement. Besides you don't need to forward queries at public dns if you want to use the internal one (*).
Quote:
server 202.a.b.c {
};
server 61.a.b.c {
};
Also useless as there are no additional options for these servers.

(*)Maybe you should consider using a split dns setup, with the internal view user by your LAN clients and the external to forward queries at the public dns.

Regards
 
  


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
DNS doesn't resolv hosts that are on internal DNS Tux-Slack Linux - Networking 8 06-03-2008 06:42 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
Internal DNS? carlosinfl Linux - Networking 1 05-07-2007 05:41 PM
internal DNS Dawie Linux - Networking 1 09-11-2003 06:31 AM
DNS For an internal network??? Milkman00 Linux - General 6 09-02-2002 03:38 PM

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

All times are GMT -5. The time now is 08:50 PM.

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