å æ¥ãã¨ããLinuxãã·ã³ãã»ããã¢ããããæã«ã"apt-get upgrade"ã§ææ°ã®ã¢ã¸ã¥ã¼ã«ããã¦ã³ãã¼ãã»æ´æ°ãã¦ããã¨ãããéä¸ã§ã¢ã¸ã¥ã¼ã«ããã¦ã³ãã¼ãã§ããªããªã£ã¦ãã¾ã£ãã
調ã¹ã¦ã¿ãã¨ãéä¿¡ã¯ã§ãããã©åå解決ãåºæ¥ã¦ããªããã¨ãåãã£ãã
ã§ããã°ããããã¨åå解決ãè¡ããããã«ãªãããã¦ã³ãã¼ããåéãããã
Windowsã§ã¯æé»ã§ï¼Mac OS Xã§ã¯lookupdãDNS解決ã®çµæããã£ãã·ã¥ãã¦ãã¾ããï¼Linuxã§ã¯ãã£ãã·ã¥ãè¡ããï¼é½åº¦DNSãµã¼ãã¸åãåãããè¡ã£ã¦ãã¾ãã¾ãã
第20回 いろいろなキャッシュ:dnsmasq, cache proxy:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社
ã¨ã®ãã¨ãªã®ã§ãã©ããããå°ãããµã¤ãº(æ°KBãæ°åKB)ã®ãã¡ã¤ã«ãé£ç¶ãã¦ãã¦ã³ãã¼ããã¦ãããã¨ã§ãDNSãµã¼ãã«è»½ãã¢ã¿ãã¯ç¶æ ãè¡ã£ã¦ãã¾ããåãåããç°å¸¸ãä½ãã§ä¸æçã«å¼¾ããã¦ãã¾ã£ã¦ããããã ããªãã¦ãã£ããã
ããã¯ãã¾ãè¯ããªããªã¨æã£ãã®ã§ããã®Linuxãã·ã³ã§DNSãã£ãã·ã¥ãè¡ããããã«ããã¹ãã"dnsmasq"ãã¤ã³ã¹ãã¼ã«ãã¦åããããã«ããã
dnsmasqã¯ï¼ç°¡æDNSãã£ãã·ã¥ãµã¼ãã¨ãã¦åä½ãããã®ã«é©ããï¼å°åã®ãµã¼ãããã°ã©ã ã§ãããã£ãã·ã¥ãµã¼ãã¨ãã¦åä½ãããå ´åï¼DNS ã®å®è£ ã¨ãã¦ä»£è¡¨çãªbindã«æ¯ã¹ã¦é常ã«ç°¡åã«è¨å®ã§ãã¾ããããã«ï¼ä¸æµã®DNSãµã¼ãã¨ãã¦/etc/resolv.confã«æ¸ããããã®ãå©ç¨ããããï¼ã»ã¨ãã©è¨å®ãå¿ è¦ãªãï¼ãã¹ã¯ãããç°å¢ã§ä½¿ãã®ã«é常ã«é©ãã¦ãã¾ãã
第20回 いろいろなキャッシュ:dnsmasq, cache proxy:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社
ã¨ã®ãã¨ã"/etc/resolv.conf"ã«ä¸æµã®ãµã¼ããæ¸ãã¦ããã°ããã®ããè¨å®ã楽ãã³ãªã®ã¯ã¨ã¦ãè¯ããã
$ sudo apt-get install dnsmasq
Debian/Ubuntuãªç°å¢ãªãã¤ã³ã¹ãã¼ã«ã¯âã®ããã«APTã³ãã³ãä¸çºã§çµäºã
nameserver 127.0.0.1 nameserver xxx.xxx.xxx.xxx
ãã¨ã¯ã"/etc/resolv.conf"ãéããâã®ããã«æ¢ã«ãã"nameserver"(1㤠or è¤æ°)ã®å
é ã«ã"nameserver 127.0.0.1"ãä»ã足ãã¦ä¿åããã°ãã¨ããããã®è¨å®ã¯å®äºã
# ããã©ã«ãã®ã¾ã¾ã ã¨ãä»ãã·ã³ãããDNSãµã¼ãã¨ãã¦å©ç¨ã§ãã¾ãã®ã§ãã»ãã¥ãªãã£é¢ã¯ãçæãã
è¨å®åã¯ãâã®ããã«å¥ã®DNSãµã¼ããæãã¦ãã¾ãããããã
$ dig ããçç¥ãã ;; Query time: 17 msec ;; SERVER: 192.168.0.1#53(192.168.0.1) ;; WHEN: Mon Oct 13 03:12:30 2008 ;; MSG SIZE rcvd: 500
ä¸è¨è¨å®å¾ã¯ãâã®ããã«ãã¼ã«ã«ã®DNSãæãããã«ãªã£ã¦ãã¾ãã
$ dig ããçç¥ãã ;; Query time: 15 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Mon Oct 13 03:13:15 2008 ;; MSG SIZE rcvd: 500
以ä¸ã§ãLinuxãã·ã³ã«ã¦DNSãã£ãã·ã¥ãå©ç¨ã§ããããã«ããä½æ¥ãå®äºã
ãã ãããã¯ã©ã¤ã¢ã³ããã·ã³ã®ãããã¯ã¼ã¯è¨å®ãDHCPã§è¡ã£ã¦ããå ´åã¯å½ç¶ã§ãããæ¯åDHCPãµã¼ãããæ
å ±ãåå¾ãããã¨ã«ãDNSã®æ
å ±ãæ¸ãæãããã¦ãã¾ãã¾ãã
# DHCPãµã¼ãããæ
å ±åå¾ãããã³ã«ã"/etc/resolv.conf"ãèªåçæãããã
DHCPã¯ã©ã¤ã¢ã³ãã®è¨å®ãè¡ãï¼çæãããresolv.confã«nameserver 127.0.0.1è¡ãèªåçã«è¿½å ããããã«ãã¾ãã
第20回 いろいろなキャッシュ:dnsmasq, cache proxy:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社
/etc/dhcp3/dhclient.confã«ã³ã¡ã³ãã¢ã¦ããããç¶æ ã§ãµã³ãã«ã¨ãã¦å ¥åããã¦ãã¾ããï¼ãprepend domain-name-servers 127.0.0.1;ãã¨ããè¡ãæå¹ã«ãã¦ãã ãããããã«ããï¼ä»¥éèªåçæãããresolv.confã«ã¯nameserver 127.0.0.1è¡ãå«ã¾ããããã«ãªãã¾ãã
ã®ã§ãDHCPãæå¹ã«ããã¦ããæ¹ã¯âã®è¨å®ããã¦ããã¨è¯ãã¨æããã¾ãã
ãã¨ãæ°ã«ãªãã®ã¯DNSãã£ãã·ã¥ã®æå¹æéã§ããã"TTL"ãçããµã¤ãã«ã¢ã¯ã»ã¹ããå ´åãªã©ã§åé¡ãåºãªãããã«ã
ç§ã¯ä»ã®ã¨ããã"dnsmasq"ãããã»ã©ããã¼ã«ä½¿ãäºå®ããªãã®ã§ããã®é¨åã¾ã§ã¯èª¿ã¹ããã¦ããªãã®ã§ãããè¨å®ã§å¶å¾¡ã§ããªããªããå®æçã«ãã£ãã·ã¥ãã¯ãªã¼ã³ããå¿
è¦ãããããã§ãã
åè
- 第20回 いろいろなキャッシュ:dnsmasq, cache proxy:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社
- Dnsmasq - network services for small networks.
- ä½è : Paul Albitz,Cricket Liu,ãã¼ã«ã¢ã«ããã,ã¯ãªã±ãããªã¥ã¦,é«ç°åºç« ,å°å³¶è²å¤«,å°èå æ£
- åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã»ã¸ã£ãã³
- çºå£²æ¥: 2002/02/26
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 3人 ã¯ãªãã¯: 211å
- ãã®ååãå«ãããã° (17件) ãè¦ã