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

Quote:
Originally Posted by falko View Post
This should give you the idea: http://www.howtoforge.com/mirroring_with_rsync
My ubuntu 10.04 box cannot resolve to its host name hurricane.thunzicn.com but it works with the IP address and hurricane.local
Code:
root@dalitso:/home/martin# rsync -avz -e ssh jhbs@hurricane.thunzicon.com:/home/all2 /home/martin/all2/
ssh: Could not resolve hostname hurricane.thunzicon.com: Name or service not known
Code:
root@dalitso:/home/martin# rsync -avz -e ssh jhbs@hurricane:/home/all2 /home/martin/all2/
The authenticity of host 'hurricane (192.168.1.100)' 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 192.168.1.254 ---> Dlink Switch ---> ubuntu server with ip 192.168.1.100

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

And here are some configuration files

Code:
root@hurricane:~# nano /etc.hosts
127.0.0.1	localhost.localdomain localhost
192.168.1.100	hurricane.thunzicon.com 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
Code:
root@hurricane:~# nano /etc/resolv.conf
nameserver 192.168.1.254
nameserver 127.0.0.1
Code:
/etc/nsswitch.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
Code:
root@hurricane:/home/jhbs# hostname
hurricane.thunzicon.com
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