hidekiwiki


ˤ֥ۤ¼ ɣԵѥ֥ Linux
ˤ֥ۤ¼


# Generated by NetworkManager
search foo.com
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

cp -a /etc/sysconfig/network-scripts/ifcfg-ethX /etc/sysconfig/network-scripts/ifcfg-ethX.bak
2.vi /etc/sysconfig/network-scripts/ifcfg-ethX

DNS1=192.168.XXX.XXX DNS2=192.168.XXX.XXX

/etc/init.d/network restart

cat /etc/resolv.conf


# Generated by NetworkManager
search foo.com
nameserver 192.168.XXX.XXX
nameserver 192.168.XXX.XXX

dig yahoo.co.jp any


; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 <<>> yahoo.co.jp any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30177
;; flags: qr rd ra; QUERY: 1, ANSWER: 12, AUTHORITY: 4, ADDITIONAL: 0
;; QUESTION SECTION:
;yahoo.co.jp.                   IN      ANY
;; ANSWER SECTION:
yahoo.co.jp.            300     IN      A       124.83.187.140
yahoo.co.jp.            300     IN      A       203.216.243.240
yahoo.co.jp.            900     IN      TXT     "v=spf1 include:spf.yahoo.co.jp   ~all"
yahoo.co.jp.            900     IN      MX      10 mx5.mail.yahoo.co.jp.
yahoo.co.jp.            900     IN      MX      10 mx1.mail.yahoo.co.jp.
yahoo.co.jp.            900     IN      MX      10 mx2.mail.yahoo.co.jp.
yahoo.co.jp.            900     IN      MX      10 mx3.mail.yahoo.co.jp.
yahoo.co.jp.            900     IN      SOA     yahoo.co.jp. postmaster.yahoo.co.jp. 2011121615 1800 900  86400 900
yahoo.co.jp.            900     IN      NS      ns11.yahoo.co.jp.
yahoo.co.jp.            900     IN      NS      ns12.yahoo.co.jp.
yahoo.co.jp.            900     IN      NS      ns01.yahoo.co.jp.
yahoo.co.jp.            900     IN      NS      ns02.yahoo.co.jp.
;; AUTHORITY SECTION:
yahoo.co.jp.            900     IN      NS      ns01.yahoo.co.jp.
yahoo.co.jp.            900     IN      NS      ns02.yahoo.co.jp.
yahoo.co.jp.            900     IN      NS      ns12.yahoo.co.jp.
yahoo.co.jp.            900     IN      NS      ns11.yahoo.co.jp.
;; Query time: 329 msec
;; SERVER: 192.168.XXX.XXX#53(192.168.XXX.XXX)
;; WHEN: Sat Dec 17 XX:XX:XX 2011
;; MSG SIZE  rcvd: 373


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-05-21 (土) 01:55:05 (703d)