LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-22-2005, 01:20 AM   #1
b:z
Member
 
Registered: Mar 2005
Posts: 146

Rep: Reputation: 15
Problem same DNS between Internet and local network


I have a domain: "abc.com", and it is hosted from any providers. My users connect Internet through ADSL connection. They check mail POP3 with parameters:
- POP: pop.abc.com
- SMTP: smtp.abc.com
Now, i have purchase a new Linux RH server, i configured a DNS "abc.com" on it. However, user can't check mail POP from host "abc.com". When i telnet "#telnet abc.com 110", i have received the message "Unknow service..."
So, how can i configure my DNS on Linux server as my domain hosting "abc.com" outside Internet?
It means, my local DNS: "abc.com" ; and my domain hosting "abc.com" from Internet, user in localnetwork can check mail POP3 without error through Linux server (gateway).

<<Internet-----exist(abc.com)>>-------------<gateway linux (abc.com for localnework use)>---Localnetwork---

Please help me. Thanks so much

b:z
 
Old 03-23-2005, 04:14 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
You need to set up pop3.abc.com and smtp.abc.com in the DNS server configuration and point them to the mailserver (which is not the gateway, right?).
 
Old 03-23-2005, 11:35 PM   #3
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks for your ideas,
However how can i set up as your suggestion?

Note: The gateway linux also run as Webserver, but it is accessed from local network, not external.
 
Old 03-24-2005, 03:22 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
Well..what method do you use to configure the DNS server? Configuration files or any administration tool (web-based, for example)? If you're using configuration files, fin the right zone file (probably abc.com.zone in /var/named or /etc/named) and add to ADDITIONAL SECTION something like
pop.abc.com. A mailserveriphere
smtp.abc.com. A mailserveriphere
 
Old 03-25-2005, 10:34 PM   #5
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
It doesn't work right.
Here is my short configuration:

- file: named.conf
==================================================
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

zone "abc.com" IN {
type master;
file "db.abc";
allow-update { none; };
};

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

include "/etc/rndc.key";
======================================================

- file: db.abc
======================================================
$TTL 86400
@ IN SOA ns.abc.com hostmaster.abc.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
;
IN A 192.168.1.1
NS www ; Inet Address of nameserver
abc.com MX 10 mail ; Primary Mail Exchanger
;
localhost A 127.0.0.1
bird A 192.168.16.10
mail CNAME bird
ns CNAME bird
www CNAME bird
pop.abc.com A 203.194.220.xxx
smtp.abc.com A 203.194.220.xxx
=======================================================

- file: db.192.168.1.1
=======================================================
$TTL 86400
@ IN SOA www.abc.com. hostmaster.abc.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
;
NS www ; Name server address
;
1 IN PTR abc.com.
;
=========================================================

Please help me solve the problem.
Thanks so much
 
Old 03-26-2005, 03:13 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
Make it look this way:
Code:
localhost A 127.0.0.1
bird A 192.168.16.10
mail CNAME bird
ns CNAME bird
www CNAME bird
pop A 203.194.220.xxx
smtp A 203.194.220.xxx
I'm never sure about the dots, but I think that adding one after the names (the way you have written them) should make it work too.
 
Old 03-28-2005, 06:03 AM   #7
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks for anyway. I'm to be succeed.
Thanks so much again
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Server Able to see Local Network but not Internet?? thiessenstuart Linux - Networking 3 08-24-2005 02:29 PM
On local network - can't get to internet kook Linux - Wireless Networking 12 03-01-2005 09:45 AM
block internet from 1 pc on local network bgriesi Linux - Networking 4 01-23-2005 12:44 PM
Can go Local network, can't go internet!! nectron101 Linux - Hardware 2 11-27-2004 09:03 AM
local network okay - no internet Who Linux - Networking 7 03-26-2003 01:06 PM


All times are GMT -5. The time now is 01:09 PM.

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