When you connecting and obtaining IP through dhcp, the file /etc/resolv.conf could be created.
If You want to have yours DNS servers, not this from your network/internet provider, you can:
1. write protect the file /etc/resolv.conf
# chattr +i /etc/resolv.conf