linuxÔõôÉèÖÃdns
ÔÚ linux ÖÐÉèÖà dns ¿Éͨ¹ý gui »òÏÂÁîÐоÙÐС£gui °ì·¨£º1. ·¿ª¡°ÉèÖá±£¬2. ²éÕÒ¡°ÍøÂçÅþÁ¬¡±£¬3. Ñ¡ÔñÍøÂ磬4. ÊäÈë dns ЧÀÍÆ÷µØµã¡£ÏÂÁîÐа취£º1. ·¿ª /etc/resolv.conf Îļþ£¬2. Ìæ»» nameserver ÐÐÖÐµÄ dns µØµã£¬3. ÉúÑÄÎļþ¡£³£Óà dns ЧÀÍÆ÷£ºgoogle dns¡¢cloudflare dns¡¢opendns¡£
ÔõÑùÔÚ Linux ÖÐÉèÖÃ DNS
DNS£¨ÓòÃûϵͳ£©ÊÇÒ»ÏîÍøÂçЧÀÍ£¬Ëü½«ÓòÃû£¨ÀýÈç www.google.com£©·Òë³ÉÓëÖ®¹ØÁªµÄ IP µØµã£¬·´Ö®ÒàÈ»¡£ÔÚ Linux ϵͳÉÏÉèÖà DNS ÖÁ¹ØÖ÷Òª£¬ÒÔ±ãÅÌËã»ú¿ÉÒÔ»á¼û»¥ÁªÍøÏ¢ÕùÎöÓòÃû¡£
ÒªÁì 1£ºÊ¹ÓÃͼÐÎÓû§½çÃæ (GUI)
ÈôÊÇÄúµÄ Linux ¿¯ÐаæÌṩ GUI£¬Ôò¿ÉÒÔʹÓÃÒÔÏ°취ÊÖ¶¯ÉèÖà DNS£º
·¿ª¡°ÉèÖá±»ò¡°ÏµÍ³Æ«ºÃÉèÖá±Ó¦ÓóÌÐò¡£
ËÑË÷¡°ÍøÂ硱»ò¡°ÅþÁ¬¡±¡£
Ñ¡ÕªÒªÉèÖà DNS µÄÍøÂçÅþÁ¬¡£
µ¥»÷¡°±à¼ÅþÁ¬¡±¡£
µ¼º½µ½¡°IPV4 ÉèÖá±»ò¡°IPV6 ÉèÖá±Ñ¡Ï¡£
ÔÚ¡°DNS ЧÀÍÆ÷¡±×Ö¶ÎÖÐÊäÈëËùÐèµÄ DNS ЧÀÍÆ÷µØµã¡£
ÒªÁì 2£ºÊ¹ÓÃÏÂÁîÐÐ
ÈôÊÇÄú¸üϲ»¶Ê¹ÓÃÏÂÁîÐУ¬Ôò¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî±à¼ DNS ÉèÖãº
ʹÓÃÎı¾±à¼Æ÷£¨ÀýÈç nano »ò vi£©·¿ª /etc/resolv.conf Îļþ¡£
ÕÒµ½ÒÔÏÂÐУº
nameserver <dns_server_address></dns_server_address>
µÇ¼ºó¸´ÖÆ
Ìæ»» dns_server_address ΪÊ×Ñ¡ DNS ЧÀÍÆ÷µÄ IP µØµã¡£
ÉúÑIJ¢¹Ø±Õ¸ÃÎļþ¡£
³£ÓÃµÄ DNS ЧÀÍÆ÷µØµã£º
Google DNS£º8.8.8.8 ºÍ 8.8.4.4
Cloudflare DNS£º1.1.1.1 ºÍ 1.0.0.1
OpenDNS£º208.67.222.222 ºÍ 208.67.220.220
ÌáÐÑ£º
Äú¿ÉÒÔÖ¸¶¨¶à¸ö DNS ЧÀÍÆ÷£¬ÒÔÌá¸ßÈßÓàÐÔºÍËÙÂÊ¡£
ÈôÊÇÄúʹÓõÄÊÇ DHCP ·ÖÅÉµÄ IP µØµã£¬Ôò DNS ÉèÖÿÉÄÜÓÉ DHCP ЧÀÍÆ÷×Ô¶¯ÖÎÀí¡£ÔÚÕâÖÖÇéÐÎÏ£¬Äú¿ÉÄÜÎÞ·¨ÊÖ¶¯¸ü¸Ä DNS¡£
¸ü¸Ä DNS ÉèÖúó£¬ÇëʹÓà dig ÏÂÁî²âÊÔеÄÉèÖÃÊÇ·ñÕý³£ÊÂÇé¡£
ÒÔÉϾÍÊÇlinuxÔõôÉèÖÃdnsµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡