dns-bind/client-install.sh

raw link view readme
1 # just for testing
2 yum install bind-utils nmap -y
3
4 cp /etc/sysconfig/network-scripts/ifcfg-eth0 ~
5 sed -i "s/PEERDNS=.*/PEERDNS=no/" /etc/sysconfig/network-scripts/ifcfg-eth0
6
7 cat > /etc/resolv.conf << EOF
8 nameserver 10.18.0.5
9 EOF
10
11 systemctl restart network
12