| | 86 | |
| | 87 | = fix DNS server on DHCP network = |
| | 88 | * DHCP配下のネットワークで、DNSを固定する |
| | 89 | * デフォルトではIP割り当て時に/etc/resolve.confが自動で書き換わってしまう |
| | 90 | * man dhclient.conf |
| | 91 | {{{ |
| | 92 | OPTION MODIFIERS |
| | 93 | The supersede statement |
| | 94 | |
| | 95 | supersede [ option declaration ] ; |
| | 96 | |
| | 97 | If for some option the client should always use a locally-configured value or values rather than whatever is supplied by the server, these values can be |
| | 98 | defined in the supersede statement. |
| | 99 | }}} |
| | 100 | * /etc/dhcp3/dhclient.conf |
| | 101 | {{{ |
| | 102 | supersede domain-name-servers 127.0.0.1; |
| | 103 | }}} |
| | 104 | * => /etc/resolv.conf |
| | 105 | {{{ |
| | 106 | nameserver 127.0.0.1 |
| | 107 | }}} |