ifconfig2 [CentOS] DNS 설정 보통 /etc/resolve.conf 파일의 내용을 수정하여 DNS를 설정 ex) [root@localhost etc]# vi resolv.conf 1 2 3 # Generated by NetworkManager nameserver 168.126.63.1 nameserver 168.126.63.2 [root@localhost ~]# /etc/rc.d/init.d/network restart network 재시작을 하고나서 dns를 못찾는 것을 확인하고, [root@localhost ~]# ping www.google.com ping: unknown host www.google.com resolv.conf 파일의 내용을 다시 보면 다음과 같다 1 2 3 4 5 6 7 8 9 # Generated by Ne.. 2014. 3. 9. [FreeBSD] 인터페이스 설정 Interface configuration /etc/rc.conf 1 # -- sysinstall generated deltas -- # Fri Aug 9 16:39:00 2013 2 # Created: Fri Aug 9 16:39:00 2013 3 # Enable network daemons for user convenience. 4 # Please make all changes to this file, not to /etc/defaults/rc.conf. 5 # This file now contains just the overrides from /etc/defaults/rc.conf. 6 defaultrouter="192.168.123.1" 7 hostname="free" 8 ifconfig_re0=.. 2013. 10. 21. 이전 1 다음 반응형