Remaining Network Services
If the machine is to be a DNS client then you’ll need to define the domain and it’s name server(s). You will have to configure which sources the resolver will use and in which order. You should configure so that the host file is checked first then DNS.
- ____ /usr/bin/touch /etc/resolv.conf
- ____ /usr/bin/echo "domain
" > /etc/resolv.conf - ____ /usr/bin/echo "nameserver
" >> /etc/resolv.conf - ____ /usr/bin/chown root:root /etc/resolv.conf
- ____ /usr/bin/chmod 644 /etc/resolv.conf
- ____ /usr/bin/cp /etc/nsswitch.files /etc/nsswitch.conf
- ____ /usr/bin/vi /etc/nsswitch.files
modify the hosts entry from hosts:files to hosts:files [NOTFOUND=continue] dns - ____ /usr/bin/chown root:root /etc/nsswitch.conf
- ____ /usr/bin/chmod 644 /etc/nsswitch.conf
No comments