local domains
Sten Carlsen
ccc2716 at vip.cybercity.dk
Tue May 10 21:06:50 UTC 2005
Yes, I do that.
Internal and external views have very different sets of hosts and names.
E.g. mail..... is visible from inside and outside, with different IPs.
This means that my laptop will read mail without ANY changes in setup
wether it is on my own lan or anywhere else in the world.
Contrary to what I believed, you can have the exactly same names and
structure or a very different in internal vs. external zone.
Use views, create one internal and one external view.
Good luck, for me it worked first time.
Oliver Vecernik wrote:
>Hi,
>
>www.mydomain.com and mail.mydomain.com are maintained from my ISP. My
>private network is behind a router with NAT and I set up BIND 9.2.5
>(FC3) with intra.net as domain name. Everthing works as expected.
>
>My question is if it's possible to name my private lan also with my
>official domain (e.g. mydomain.com)? Internal users should look up my
>DNS and external ones use the DNS from my ISP. But this doesn't work for
>www and mail from inside at the moment. Here is my configuration:
>
># cat /etc/named.conf
>options {
> directory "/var/named";
> forwarders {
> 195.3.95.68;
> 213.33.98.136;
> };
> query-source port 53;
>};
>
>zone "." {
> type hint;
> file "named.ca";
>};
>
>zone "mydomain.com" {
> type master;
> file "mydomain.com.zone";
>};
>
>zone "0.168.192.in-addr.arpa" {
> type master;
> file "0.168.192.in-addr.arpa";
>};
>
># cat /var/named/mydomain.com.zone
>$TTL 86400
>@ IN SOA p500.mydomain.com. root.mydomain.com. (
> 2005031812 ; serial
> 300 ; refresh after 5 minutes
> 60 ; retry after 1 minute
> 1209600 ; expire after 2 weeks
> 43200 ) ; minimum TTL of a half day
>
> IN NS p500.mydomain.com.
>
> IN MX 5 p500.mydomain.com.
>
> IN A 192.168.0.3
>
>wgt624 IN A 192.168.0.1
>p500 IN A 192.168.0.3
>oj IN A 192.168.0.5
>lanmodem IN A 192.168.254.1
>www IN A 81.223.238.230 ; does not work!
>
>mail IN CNAME p500
>pop IN CNAME p500
>imap IN CNAME p500
>router IN CNAME wgt624
>
># cat /var/named/0.168.192.in-addr.arpa
>$TTL 86400
>@ IN SOA p500.mydomain.com. root.mydomain.com. (
> 2005031808 ; serial number
> 300 ; refresh
> 60 ; retry
> 1209600 ; expire
> 43200 ; minimum TTL for negative answers
>)
> IN NS p500.mydomain.com.
>
> 1 IN PTR wgt624.mydomain.com.
> 3 IN PTR p500.mydomain.com.
> 5 IN PTR oj.mydomain.com.
>
>Is this possible?
>
>Oliver.
>
>
>
>
--
Best regards
Sten Carlsen
Let HIM who has an empty INBOX send the first mail.
More information about the bind-users
mailing list