View previous topic :: View next topic |
Author |
Message |
fangwen Tux's lil' helper
Joined: 23 Oct 2011 Posts: 128 Location: Shanghai, China
|
Posted: Sun Nov 06, 2011 2:56 pm Post subject: How to write /etc/hosts without dns domain name |
|
|
I followed the installation guide and ran the following commands during installation:
Code: | # ln -s net.lo net.eth0
# rc-update add net.eth0 default |
And resolv.conf is overwritten at every bootup. I then deleted my dns domain name in /etc/conf.d/net and this issue was solved. But how should I write /etc/hosts without a dns domain name. Is this OK:
Code: | 127.0.0.1 localhost
::1 localhost |
Also, could anyone explain to me why it will overwrite resolv.conf if I set my dns domain name? _________________ All operating systems suck. This one just sucks less. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22672
|
Posted: Sun Nov 06, 2011 4:38 pm Post subject: |
|
|
When you set your DNS domain, then /etc/resolv.conf needs to specify that domain so that unqualified names will search your local domain instead of failing. |
|
Back to top |
|
|
|