I'm setting up virtual dev environments and I want the hostname.domain to be something specific, eg- "barney.local". However my /etc/resolv.conf
file keeps getting nuked because i'm using DHCP. I placed this into my dhclient.conf
:
supersede domain-name "localhost"
supersede host-name "barney"
.. but it didn't help. I'm not sure where I'm going wrong. How can I still use DHCP but configure that virtual environment to see itself as barney.local?
fyi i'm running debian squeeze