“How if gird-n can not be found by ping”版本间的差异
来自cslt Wiki
(以“This is basically a problem of DNS. The present DNS server for grid-xx is 192.168.0.50, using the nscd server. Therefore first check if the server in 192.168.0.50 is...”为内容创建页面) |
|||
第1行: | 第1行: | ||
+ | ==client side== | ||
This is basically a problem of DNS. The present DNS server for grid-xx is 192.168.0.50, using the nscd server. Therefore | This is basically a problem of DNS. The present DNS server for grid-xx is 192.168.0.50, using the nscd server. Therefore | ||
first check if the server in 192.168.0.50 is open, otherwise "systemctl restart nscd". | first check if the server in 192.168.0.50 is open, otherwise "systemctl restart nscd". | ||
第4行: | 第5行: | ||
* You need also check /etc/nsswitch.conf in the host (the machine you want to find grid-xx), to make sure DNS is used. | * You need also check /etc/nsswitch.conf in the host (the machine you want to find grid-xx), to make sure DNS is used. | ||
* You need also check /etc/resolve.conf, to make sure the local DNS server is there. | * You need also check /etc/resolve.conf, to make sure the local DNS server is there. | ||
+ | * For centos 7, make sure 192.168.0.50 has been added into /etc/sysconfig/network-scripts/if-xx | ||
+ | |||
+ | |||
+ | ==server side== | ||
+ | * When you add a new host name in grid-0, then you need restart dnsmasq: systemctl restart dnsmasq to make the name available. |
2018年7月8日 (日) 02:14的最后版本
client side
This is basically a problem of DNS. The present DNS server for grid-xx is 192.168.0.50, using the nscd server. Therefore first check if the server in 192.168.0.50 is open, otherwise "systemctl restart nscd".
- You need also check /etc/nsswitch.conf in the host (the machine you want to find grid-xx), to make sure DNS is used.
- You need also check /etc/resolve.conf, to make sure the local DNS server is there.
- For centos 7, make sure 192.168.0.50 has been added into /etc/sysconfig/network-scripts/if-xx
server side
- When you add a new host name in grid-0, then you need restart dnsmasq: systemctl restart dnsmasq to make the name available.