Linux find DHCP server IP address using CLI

Originally published at: https://www.cyberciti.biz/faq/linux-find-out-dhcp-server-ip-address/

In Windows XP/2000/Vista/8/10 ipconfig /all command will show me DNS server and DHCP server ip address. But, how do you know DHCP server address in Linux? How do I find the IP address of my DHCP server on Linux?

read the file /etc/relsolv.conf:

cat /etc/resolv.conf

It syhould be enough