I have been searching the Internet for a real nop tutorial on the subject but could not found any direct info. on how to edit these files the proper way.
I have a Debian Internet server that I use to host some personal domains and runs Squid and rTorrent. The server is up and running with no problems. However, I am confused about a few things.
Lets say that I named my server (foo), my domain is (example.com) and my public IP is 126.96.36.199 now:
should /etc/hostname contains:
tango <----- just the server name
127.0.0.1 localhost.localdomain localhost 188.8.131.52 foo.example.com foo
/etc/resolf.confcontain (along with the name servers) both:
domain example.com search example.com
or just the first one.
Are there any other files that I should edit in order to make things right?
last thing, the command:
domainname returns: (none)
I believe it should return (example.com). What should I do to correct that?