LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem same DNS between Internet and local network (https://www.linuxquestions.org/questions/linux-networking-3/problem-same-dns-between-internet-and-local-network-304582/)

b:z 03-22-2005 01:20 AM

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

Mara 03-23-2005 04:14 PM

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?).

b:z 03-23-2005 11:35 PM

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.

Mara 03-24-2005 03:22 PM

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

b:z 03-25-2005 10:34 PM

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

Mara 03-26-2005 03:13 PM

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.

b:z 03-28-2005 06:03 AM

Thanks for anyway. I'm to be succeed.
Thanks so much again


All times are GMT -5. The time now is 09:25 AM.