Many new Linux user finds it difficult to setup / modify new name server address (NS1 / NS2).
Local name resolution is done via /etc/hosts file. If you have small network, use /etc/hosts file. DNS (domain name service is accountable for associating domain names with ip address, for example domain yahoo.com is easy to remember than IP address 202.66.66.12) provides better name resolution. To configure Linux as DNS client you need to edit or modify /etc/resolv.conf file. This file defines which name servers to use. You want to setup Linux to browse net or run network services like www or smtp; then you need to point out to correct ISP DNS servers:
/etc/resolv.conf file
In Linux and Unix like computer operating systems, the /etc/resolv.conf configuration file contains information that allows a computer connected to the Internet to convert alpha-numeric names into the numeric IP addresses that are required for access to external network resources on the Internet. The process of converting domain names to IP addresses is called "resolving."
The resolv.conf file typically contains the IP addresses of nameservers (DNS name resolvers) that attempt to translate names into addresses for any node available on the network.
Setup DNS Name resolution
Steps to configure Linux as DNS client, first login as a root user (use su command):
Step # 1: Open /etc/resolv.conf file:
# vi /etc/resolv.conf
Step #2: Add your ISP nameserver as follows:
search isp.com
nameserver 202.54.1.110
nameserver 202.54.1.112
nameserver 202.54.1.115
Note Max. three nameserver can be used/defined at a time.
Step # 3:Test setup nslookup or dig command:
$ dig www.nixcraft.com
$ nslookup www.nixcraft.com
分享到:
相关推荐
Part IV: Fedora Network and Server Setup. Chapter 14: Computer Security Issues. Chapter 15: Connecting to the Internet. Chapter 16: Setting Up Printers and Printing. Chapter 17: Setting Up a File ...
内存整理优化器 This installation was built with Inno Setup: http://www.innosetup.com
11:43 Emulator: [5984]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at D:\AndroidSDK\emulator\lib64\qt\lib 11:43 Emulator: Could not launch 'D:\AndroidSDK\emulator/qemu/...
rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar zxvf lichee_parrotv1.1_20161202.tar.gz rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ rootroot@cm-System-Product-Name:/home/wwt/linux_...
全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar...
Welcome to mkscript setup progress All available chips: 4. sun8iw6p1 Choice: 4 All available platforms: 0. android Choice: 0 All available kernel: 0. linux-3.4 Choice: 0 All available boards: 5. ...
docker更新包: apt-get update docker安装vim apt-get install vim apt-get install tar ...docker run -d -p 58080:8080 -v /root/webapps/:/opt/tomcat/webapps/ --name mytomcat_1 mytomcat:1.0 /root/run.sh
装机选用
先装系统,接着装0ffice2007,接着装ms sqlserver 2005,再装adobe cs4 master套装,一路setup,很是顺利,好就差vs2008了,它一装好,我就可以赚钱了。可结果安装出错的报错,报错的文档如下: 代码如下:[01/13/10,18...
1 ...2 ...3 ...4 4、可爱的 Python: 使用 setuptools 孵化 Python egg:http://www.ibm.com/developerworks/cn/linux/l-cppeak3.html ...6、ez_setup.py脚本:http://peak.telecommunity.com/dist/ez_setup.py
Linux FTP Server Setup
Setup File Name: Foxpro_2.6_for_Windows.zip Full Setup Size: 13 MB Setup Type: Offline Installer / Full Standalone Setup Compatibility Architecture: 32 Bit (x86) / 64 Bit (x64) Latest Version ...
一个成功的在线考试系统。曾经应用于我们学校普通的一次测试。 开发环境:mssql2005 +myeclipse6.0 +jdk1.5 开发语言:jsp +servlet
类似FTP的文件,在服务器上运行解压缩后的setup.bat<br/>然后运行服务器红色图标的哪一个,启动后设置端口80如果不可用<br/>随便更改个整数。<br/>客户端直接输入http://服务器IP/c如果端口不是80输入<br/>http://...
01-linux server setup 02-linux safe config 03-linux tcpip 04-linux web server 05-linux ftp server 06-linux mail server 07-linux dns 08-linux proxy server 注:本人珍藏品,贡献给大伙了。
简单的linux_rtsp_client
should compile as part of the build or as any application would. Launch them from this directory to get results, runtest checks the proper functionning of libxml2 main APIs while testapi does a ...
通过Microsoft的JDBC驱动连接。此JDBC驱动共有三个文件,分别是mssqlserver.jar、msutil.jar和msbase.jar,可以到微软的网站去下载...DatabaseName=dbname(即下面的url)
k8s集群v1.18.1一键安装...执行setup_master.sh 安装 master-node 执行setup_worker.sh 安装 worker-node 参考文章:https://www.jianshu.com/p/d97885880252 参考github:https://github.com/scfido/k8s-offline-setup
谷歌浏览器