View Single Post
Old 16th November 2010, 13:50
dalitso dalitso is offline
Join Date: Nov 2008
Location: South Africa
Posts: 43
Thanks: 3
Thanked 4 Times in 3 Posts
Send a message via Skype™ to dalitso

Originally Posted by falko View Post
This should give you the idea:
My ubuntu 10.04 box cannot resolve to its host name but it works with the IP address and hurricane.local
root@dalitso:/home/martin# rsync -avz -e ssh /home/martin/all2/
ssh: Could not resolve hostname Name or service not known
root@dalitso:/home/martin# rsync -avz -e ssh jhbs@hurricane:/home/all2 /home/martin/all2/
The authenticity of host 'hurricane (' can't be established.
RSA key fingerprint is 41:71:8d:bb:55:2e:20:97:ac:9b:dd:c7:cb:9b:66:b5.
Are you sure you want to continue connecting (yes/no)?
Heres my setup: ADSL router with ip ---> Dlink Switch ---> ubuntu server with ip

I am also accessing the server using an ubuntu desktop connected to the same switch

And here are some configuration files

root@hurricane:~# nano /etc.hosts	localhost.localdomain localhost hurricane

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@hurricane:~# nano /etc/resolv.conf
# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

#hosts:	files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:	files wins dns 
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
root@hurricane:/home/jhbs# hostname
The server was setup with webmin so Bind DNS server has got only Root, localhost, 0, 127, 255 zones.

Help me get the hostname resolved, the tutorial said something like, it will only work when a FQDN is used.
Let me know if you need me to post more information.
Reply With Quote