Category Covered

How can i get my ubuntu server dns

 To get the domain name server (dns) on linux use the following simple code

cat /etc/resolv.conf

It will show like

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

options timeout:1 attempts:1 rotate

nameserver 10.242.197.125

nameserver 10.242.197.126