Вобщем убился весь, два дня воюю...
Задача раздать интернет, с этим проблем нет, ТраффПро рули, но:
в сети виндовый днс, он даёт домены компам и локальный интранет вида *.uis
Если у клиентов указываем глобальные днс, то интранета соответственно нет.
Поднимаем pdnsd как кэширующий и делаем в настройках pdnsd.conf такое:
// Read the pdnsd.conf(5) manpage for an explanation of the options.
/* Note: this file is overriden by automatic config files when
/etc/default/pdnsd AUTO_MODE is set and that
/usr/share/pdnsd/pdnsd-$AUTO_MODE.conf exists
*/
global {
perm_cache=4096;
cache_dir="/var/cache/pdnsd";
run_as="pdnsd";
// server_ip = 127.0.0.1; // Use eth0 here if you want to allow other
interface = eth0; // machines on your network to query pdnsd.
status_ctl = on;
paranoid=on;
// query_method=tcp_udp; // pdnsd must be compiled with tcp
// query support for this to work.
min_ttl=15m; // Retain cached entries at least 15 minutes.
max_ttl=1w; // One week.
timeout=10; // Global timeout option (10 seconds).
// Don't enable if you don't recurse yourself, can lead to problems
// delegation_only="com","net";
}
/* with status_ctl=on and resolvconf installed, this will work out from the box
this is the recommended setup for mobile machines */
// This section is meant for resolving from root servers.
server {
label = "myisp";
ip = 193.34.8.2, 193.34.10.2;
proxy_only=on;
uptest=query;
interval=15m;
timeout=90;
caching=on;
lean_query=on;
policy=included;
exclude=.uis;
}
server {
label = "uis";
ip = 10.62.0.110, 10.62.0.101;
proxy_only=on;
uptest=query;
interval=15m;
timeout=90;
caching=on;
lean_query=on;
policy=excluded;
include=.uis;
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}
/*
neg {
name=doubleclick.net;
types=domain; // This will also block xxx.doubleclick.net, etc.
}
*/
/*
neg {
name=bad.server.com; // Badly behaved server you don't want to connec$
types=A,AAAA;
}
*/
/* vim:set ft=c: */
resolv.conf
nameserver 10.62.0.55 //этот комп на котором все строим
nameserver 10.62.0.110 // локальные сервера с мелкоднсами
nameserver 10.62.0.101
при запуске pdnsd интернет есть интранета нет, при остановке наоборот (точнее не интернета самого, а днс, ну вы поняли...)
как сделать фсе вместе