04/29/2010 11:08 am |
 初級會員

註冊: 29/04/2010 主題: 2 回覆: 1
 OFFLINE | Linux Configuring Network : Configure IP : For DHCP IP
If you use DHCP and you do not want your DNS servers automatically assigned every time you start your network,
be sure to add the following to the last section of /etc/dhcpcd.conf:
nohook resolv.conf
Linux的網絡配置:配置IP:對於 DHCP的IP
如果你使用DHCP,你不希望你的DNS服務器會自動分配每次啟動你的網絡,
一定要添加以下到最後一節的/ etc / dhcpcd.conf:
nohook resolv.conf的
煩請描述您IP組態狀況以便為您提交技術人員進行協助。
資料由 光特快凱擘寬頻提供
寄件人 凱擘光特快
收件人 fengcs88@gmail.com
日期 2010年4月29日下午4:53
主旨 Linux Configuring Network 訂編2753156 案號7265863 |
................ 最大300個字符
你可以插入圖片和鏈接(只要複製並粘貼該鏈接)
基本法允許 HTML標籤: 已 不的(中....)
Zuìdà 300 gè zìfú
Nǐ kěyǐ chārù túpiàn hé liànjiē (zhǐyào fùzhì bìng zhāntiē gāi liànjiē)
Jīběnfǎ yǔnxǔ HTM
|
04/29/2010 11:17 am |
 初級會員

註冊: 29/04/2010 主題: 2 回覆: 1
 OFFLINE | 回覆 凱擘光特快 於 2010年4月29日下午4:53 寫道:
服務狀態:
服務訂編 申請方案 IP狀態
2753156 11989 季繳送2個月-10M 光特快提供您:3浮動IP+1固定IP
• 目前電腦IP:123.194.72.196
• 您目前設定的固定IP:123.194.72.196
• MAC Address:005070B70AFA
固定IP轉給其他電腦使用
取消固定IP
[user01@SERVER2000 ~]$ whois vts.tw
[查詢 whois.twnic.net]
[whois.twnic.net]
Domain Name: vts.tw
Contact:
Feng Cha0-Shu
feng.cs88@msa.hinet.net
馮朝恕
Record expires on 2011-04-20 (YYYY-MM-DD)
Record created on 2010-04-20 (YYYY-MM-DD)
Registration Service Provider: HINET
[user01@SERVER2000 ~]$
# /etc/resolv.conf 系統預設
# Generated by NetworkManager
domain kbronet.com.tw
search kbronet.com.tw
nameserver 139.175.55.244
nameserver 139.175.252.16
nameserver 168.95.1.1
# /etc/resolv.conf 必需修改
# Generated by NetworkManager
domain vts.tw.
search vts.tw.
nameserver 123.194.72.196
nameserver 168.95.1.1
nameserver 168.95.192.11
nameserver 168.95.1.11
nameserver admns1.hinet.net.
nameserver admns2.hinet.net.
nameserver dns.vts.tw.
# /etc/dhcpd.conf
ddns-update-style none;
ddns-updates off;
option T150 code 150 = string;
deny client-updates;
one-lease-per-client false;
allow bootp;
DHCPCD_ARGS="-C resolv.conf -q";
nohook resolv.conf;
DHCPCD_ARGS="-q -s 139.175.55.244";
DHCPCD_ARGS="-q -s 139.175.252.16";
DHCPCD_ARGS="-q -s kbronet.com.tw";
# /etc/dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Inform the DHCP server of our hostname for DDNS.
hostname
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
nohook resolv.conf
[user01@SERVER2000 ~]$ su - 重開機後
密碼:
[root@SERVER2000 ~]# nslookup
> set type=any
> vts.tw
Server: 139.175.55.244
Address: 139.175.55.244#53
Non-authoritative answer:
Name: vts.tw
Address: 123.194.72.196
vts.tw mail exchanger = 10 mail.vts.tw.
vts.tw
origin = admns1.hinet.net.vts.tw
mail addr = hostmaster.hinet.net
serial = 2010042922
refresh = 86400
retry = 1800
expire = 604800
minimum = 86400
vts.tw nameserver = admns1.hinet.net.
vts.tw nameserver = admns2.hinet.net.
Authoritative answers can be found from:
> 123.194.72.196
Server: 139.175.55.244
Address: 139.175.55.244#53
Non-authoritative answer:
196.72.194.123.in-addr.arpa name = 123-194-72-196.dynamic.kbronet.com.tw.
Authoritative answers can be found from:
>
# /etc/resolv.conf 系統又寫回
# Generated by NetworkManager
domain kbronet.com.tw
search kbronet.com.tw
nameserver 139.175.55.244
nameserver 139.175.252.16
nameserver 168.95.1.1
nohook resolv.conf 無效
煩請費心提供應如何改善的方法 謝謝!
|
................ 最大300個字符
你可以插入圖片和鏈接(只要複製並粘貼該鏈接)
基本法允許 HTML標籤: 已 不的(中....)
Zuìdà 300 gè zìfú
Nǐ kěyǐ chārù túpiàn hé liànjiē (zhǐyào fùzhì bìng zhāntiē gāi liànjiē)
Jīběnfǎ yǔnxǔ HTM
|