3
如何在Linux上使用/etc/resolv.conf解析多个域?
我正在运行Ubuntu 12.04,并且尝试ping以下系统: system0.oldcompany.com system1.fing.oldcompany.com system2.newcompany.com system3.thing.newcompany.com 我的resolv.conf # internal dns servers nameserver 1.1.1.151 nameserver 1.1.1.152 search oldcompany.com fing.oldcompany.com newcompany.com thing.newcompany.com #domain thing.newcompany.com domain oldcompany.com #domain fing.oldcompany.com #domain newcompany.com #nameserver 8.8.8.8 #commented out due to other issues 如果我不对所有这些行进行注释,则将无法ping system0或system1。如何设置它,以便仅使用其域名即可对所有4个系统执行ping操作?在Windows中,它解析每个系统。 ping system0 ping: unknown host system0 ping system1 ping: unknown host system1 …