Здравствуйте , OS ubntu server 12.04 LTS , сервер доступен другим компьютерам в домашней сети , сетью управляет роутер Kinetic 4g, установил pdnsd , настроил , проверил на сервере работает адреса кэширует, но вот незадача его не видно из сети , то есть если прописать этот сервер как DNS на машинах в домашней сети - он недоступен (ip сервера пингуется). Тут pdnsd.conf
http://pastebin.com/RvcPRg2M в resolv.conf прописан IP роутера. При перезапуске сервиса появляется ошибка resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything, насколько я понимаю из текста ошибки это должен быть symlink на файл конфига , а у меня в /etc/resolv.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=50000;
cache_dir="/var/cache/pdnsd";
run_as="pdnsd";
server_ip = eth0; // Use eth0 here if you want to allow other
server_port=53 // 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=60m; // Retain cached entries at least 15 minutes.
max_ttl=1w; // One week.
timeout=5; // Global timeout option (10 seconds).
par_queries=3;
daemon=on;
tcp_server=on;
// 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 */
server {
label="resolvconf";
}
// This section is meant for resolving from root servers.
server {
label = "main";
ip = 172.16.0.3
, 8.8.8.8
, 8.8.4.4
, 156.154.70.1
;
timeout = 5;
uptest = query;
interval = 30m; // Test every half hour.
ping_timeout = 300; // 30 seconds.
purge_cache = off;
exclude = .localdomain;
policy = included;
preset = off;
}
*/
source {
owner=localhost;
// serve_aliases=on;
file="/etc/hosts";
}
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 connect to.
types=A,AAAA;
}
*/
/* vim:set ft=c: */
Проблему с ошибкой решил следующим образом -
sudo dpkg-reconfigure resolvconf
реконфигурируем relovconf ,
далее перемещаем /etc/resolv.conf в /run/resolveconf/
sudo mv /etc/resolv.conf /run/resolvconf/resolv.conf
и создаем symlink
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf