- Ensure that Default Gateway is properly configured on your system . To view the current Default Gateway setting, you can use route -n command as mentioned below.
- Once you get detail of your Linux Box Default Gateway , Check the connectivity with Default Gateway using ping command. For example in above given example Default Gateway is 192.168.122.1
- Once you become sure that Default Gateway is accessible and responding then you can proceed to test DNS Client configuration. You can check /etc/resolv.conf for DNS Configuration.
In our example , DNS Server is 192.168.122.100 and 192.168.122.101 . You can view and edit your DNS settings using file /etc/resolv.conf. After DNS setting you can check if DNS Server is responding queries generating from your Linux host . To query DNS Server , we can use dig or nslookup command.