LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 11-22-2010, 04:55 AM   #1
bobbera
Member
 
Registered: Jun 2007
Posts: 39

Rep: Reputation: 0
DNS resolution for internal and external clients


Hi ,

we have a DNS server is being used for external clients .
Recently we installed awstat monioring tool in ordr to collect either ftp or mail statistic.
Since our server is DNS server by defenition we may see all external clients requests to the ftp/mail services .But a LAN clients cannot be resolved by their IPs . The second nameserver line doesn't work .

DNS server's conf file looks like :

search mycompany.com
nameserver 127.0.0.1
nameserver LAN_IP_Address


How to configure the server it will resolve both external and corporate clients ?

Thanks .

/Vlad .
 
Old 11-22-2010, 05:39 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,769

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
Hi,

You have to use a so-called split dns.
Take a look at this how to for details

Regards
 
Old 11-23-2010, 02:22 AM   #3
bobbera
Member
 
Registered: Jun 2007
Posts: 39

Original Poster
Rep: Reputation: 0
Thanks for the response .

Sorry , I forgot to mention that for external clients our server is a DNS server whereas in order to resolve corporate clients it uses our internal Windows DNS server .

In /etc/resolv.conf mycompany.com is our external domain and all external clients requests are being served fine . But if I add "nameserver LAN_IP_Address " it doesn't effect for the server itself as a client to resolve internal clients in LAN where mycompany.kuku.com defined .mycompany.kuku.com is being maintained by Windows DNS server .

search mycompany.com
nameserver 127.0.0.1
nameserver LAN_IP_Address

When I change the order like below the server can resolve internal clients but than it stops to serve external requests .And this its primary role .

search mycompany.com
nameserver LAN_IP_Address
nameserver 127.0.0.1


So , how to implement that dual functionality ?

Thanks .
 
Old 11-23-2010, 02:43 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,769

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
Hi,

Did you read the howto in the link of my previous post?
You have to define an internal view for your LAN clients, where you can forward queries to the windows dns.

E.g. based on the above you can have:
Code:
view "internal" {
    match-clients { internals; };
        type forward;
        forward  only;
        forwarders { LAN_IP_Address;};
    };
The rest will be served by the external view.

Regards
 
Old 11-24-2010, 07:33 AM   #5
bobbera
Member
 
Registered: Jun 2007
Posts: 39

Original Poster
Rep: Reputation: 0
Hi , we followed your recommendations and added to the /etc/named.conf :


acl internals {
10.0.0.0/24;
};


view "internal" {
match-clients { internals; };
type forward; // this is 107 line
forward only;
forwarders { 10.63.3.60;};
};

But named failed to reload with this message


Nov 24 15:02:00 gate named: /etc/named.conf:107: unknown option 'type'
Nov 24 15:03:25 gate named[16319]: starting BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5 -u named -t /var/named/chroot
 
Old 11-24-2010, 08:46 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,769

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
Oups missed the zone name, sorry:

Code:
...
acl internals {
10.0.0.0/24;
};
view "internal" {
        match-clients { internal; };

zone "kuku.com" {
type forward; // this is 107 line
forward only;
forwarders { 10.63.3.60;};
}
};

view "external" {
        match-clients { any; };
//Put everything else in this zone
};
Cheers

Last edited by bathory; 11-24-2010 at 08:50 AM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
DNS Server: WinXP DNS clients losing name resolution frequently loopy69 Linux - Server 4 03-27-2007 09:21 PM
Configuring DNS Server on internal stand alone network with virtual clients scnetlab Red Hat 2 03-23-2006 01:31 AM
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
Internal DNS Resolution Problem WeNdeL Linux - Networking 12 01-17-2003 01:12 PM


All times are GMT -5. The time now is 02:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration