Add Primary and Secondary DNS server – /etc/resolve.conf
Below is the steps to add domain name server (DNS) in your machine using /etc/resolve.conf file:-
- Open file /etc/resolve.conf
- You should see something like this:-
Add your Primary and Secondary Domain Name server (DNS) ip at the end of the file and it should look like this:-
- Save the file and exit
- Done! you just added primary and secondary dns server in your machine.
- To check if your machine works fine, type ping websetnet.com. If it has reply means your machine work well. If it show unknown host then your configuration has something wrong. Check and rectify it.