Hi,
Looking at all the info you have given so far this seems to be your setup:
- Your PC has IP 192.168.1.33 (and 127.0.0.1 by convention)
- Your modem/router has IP 192.168.1.1 (and has a connection to the internet)
- The /etc/nsswitch.conf output is correct.
- Your /etc/hosts file should at least contain the following:
Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.33 mypc.myplace.com mypc
192.168.1.1 router.myplace.com router
- Your resolv.conf should look like this:
Code:
search myplace.com
nameserver 127.0.0.1
nameserver 192.168.1.1
mypc and the
myplace.com are examples.
It seems that your hostname is localhost (
root@localhost), which you should change to
mypc. Have a look here:
28.1.22. /etc/sysconfig/network
Here's a link that gives you a good overview of the files you need to look at:
14.1. Network Configuration Files
Hope this helps.
@frankbell:
Code:
127.0.1.1 [localdomain] tuna
192.168.1.5 [localdomain] tuna
That is incorrect!!
If you use
tuna it will _always_ point to 127.0.1.1
If a hostname -> ip translation is done it will quit when it finds the first hit, so it will never reach the 192.168.1.5 entry.