Monday, February 2, 2015

The /etc/hosts and /etc/resolv.conf file for Bind server on CentOS 7

/etc/hosts file should contain

127.0.0.1 localhost server1
192.168.28.150 server1.sourav.com server1


/etc/resolv.conf should contain

search sourav.com
nameserver 127.0.0.1



My Network Configuration file looks like this

TYPE="Ethernet"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT="no"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="ens33"
UUID="9a7aed2a-76a6-48c7-a320-f581c760e8d4"
ONBOOT="yes"
IPADDR0="192.168.28.150"
PREFIX0="24"
GATEWAY0="192.168.28.2"
DNS1="127.0.0.1"
HWADDR="00:0C:29:5D:DD:7D"

No comments:

Post a Comment