开发者

dns timeouts - resolv.conf wrong?

i have a question concerning the correct setup of debian's resolv.conf file.

i have 3 domains: a-domain.com, b-domain.com and c-domain.com

the server has a static IP.

do i have to add all (one by one) domains to res开发者_StackOverflow社区olv.conf ? currently none of them are in resolv.conf - i have sth. like dns timeouts - the page is only available after 10-20 seconds! same issue for ssh.

what did i forget or what is misconfigured ?

thanks for hints in advanced.


They go in /etc/hosts like so:

192.168.0.1 a-domain.com
192.168.0.2 b-domain.com
192.168.0.3 c-domain.com

(Use the actual IP addresses, of course. And I'm assuming this is on a private subnet -- otherwise why aren't you using DNS?)

resolv.conf is there to set up your DNS servers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜