not any external servers needed)
Лust ыtop shaving and washing, get some beer, and your red eyes in mirror will help you to resolve any problem
)
in real:
we can resolve the problem with "views"
Let's get tiger2000 and split-dns wiki example.
We have internal IP 192.168.10.100 and external 60.100.20.100 and need to show private address for local hosts and public for all other internet world.
Now I change split-dns wiki example for tiger2000 zone:
Code:
// Default named.conf generated by install of bind-9.2.4-2
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders { ; };
};
include "/etc/rndc.key";
// For now we configure access list for local queries
acl "internal" {
192.168.10.10/24;
127.0.0.1;
};
// For now we configure zone for local dns calls and allow recursive queries and zone transfers to any local host
view "internal" {
match-clients { internal; };
recursion yes;
zone "zcs.domain.com" {
type master;
file "db.zcs.domain.com.int";
allow-transfer { any; };
};
};
// For now we configure zone for external dns calls and disable recursive queries and zone transfers to any host
view "external" {
match-clients { any; };
recursion no;
zone "zcs.domain.com" {
type master;
file "db.zcs.domain.com.ext";
allow-transfer { none; };
};
}; as you can see we used one zone file (db.zcs.domain.com.int) for local queries, in it we use private server IP's
Code:
;
; Addresses and other host information.
;
@ IN SOA zcs.domain.com. hostmaster.zcs.domain.com. (
10118 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS 192.168.10.100
IN A 192.168.10.100
IN MX 10 zcs.domain.com. and another zone file (db.zcs.domain.com.ext) for external servers, in it, as you understand, we use public server IP's.
Code:
;
; Addresses and other host information.
;
@ IN SOA zcs.domain.com. hostmaster.zcs.domain.com. (
10118 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS 60.100.20.100
IN A 60.100.20.100
IN MX 10 zcs.domain.com. That works, that secure and only one DNS server. For sure in db.zcs.domain.com.int you can use any another internal servers and don't show them for all other world.
P.S. sorry for my english, if something is not clear for you, I'll try to explain
P.P.S. if that post helped you, you can wish me "happy new year!"