LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2011, 03:03 PM   #16
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898

Quote:
However,the new server has different addresses.
Then the DNS isn't setup correctly.

Kind regards
 
Old 04-12-2011, 03:08 PM   #17
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
Even I added something in the /etc/network/interfaces like
iface eth0 inet dhcp

to
iface eth0 inet static
address ###
network ###
netmask ###
broadcast ###
gateway ###

and ip address in resolv.conf.Then I restarted the network with "/etc/init.d/networking restart".and an entry in /etc/hosts "ipaddr hostname".
It still looks for the same wrong ip address when I ping the hostname
 
Old 04-13-2011, 04:33 AM   #18
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Quote:
Originally Posted by ansrewdps View Post
2. from other hosts: "ping hostname"(new machine hostname) looks for different ip address other than it returned in eth0 addr which I believe is the problem.
From this other host; did you check the /etc/hosts file?


----
sibe
 
Old 04-13-2011, 11:45 AM   #19
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
If it's the new machine's hosts file you're referring to,it returns

#cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 hostname.example.com hostname


Also,
#ifconfig returns inet addr as say 129.174.xx.xxx

When I try to ping this with hostname(from someother machine),it looks for different ip say 129.174.yy.yyy. So, I tried to ping with 129.174.yy.yyy which doesn't work. However, it worked when I do "ping 129.174.xx.xx".

And from the local machine when I try "nslookup hostname" it returns all the data with name/addr(hostname/129.174.yy.yyy). So, I tried to change the eth0 addr in /etc/network/interfaces with (not sure if I'd something correct)

iface eth0 inet static
address 129.174.yy.yyy
....
....
....


and when I do ifconfig it returns eth0 inet addr with 129.174.yy.yyy.However, nslookup hostname now stucks for awhile and says connection timedout:no servers could be reached

Any suggestions would be greatly appreciated...

Thanks
 
Old 04-13-2011, 11:58 AM   #20
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
You do know you are using public ip's, right?
How is your network setup?
What is the hostname from the computer you are using?

Kind regards
 
Old 04-13-2011, 12:13 PM   #21
ansrewdps
Member
 
Registered: Dec 2010
Posts: 56

Original Poster
Rep: Reputation: 0
Yes, we haven't received a dedicated ip.So,we're using the public ip for now...If I understood your question properly the server should be in the LAN which gets the ip address from the university ISP, and my hostname ibex.gmu.edu.
 
Old 04-13-2011, 01:05 PM   #22
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
If the name points to a different IP, DNS isn't setup correctly, or the changes aren't
propagated yet.
I get ip
129.174.93.168
You could try to flush the DNS cache
Code:
sudo aptitude install nscd
sudo /etc/init.d/nscd restart
Kind regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Address Space Randomization on 2.6.28-15-generic ubuntu 9.04. Finding base address nullprocess Linux - Kernel 1 09-14-2009 09:31 PM
Address Space Randomization on 2.6.28-15-generic ubuntu 9.04. Finding base address nullprocess Linux - Kernel 0 09-14-2009 11:45 AM
Cannot connect to Ubuntu server through the internet after I fixed the IP address mrotsliah Linux - Server 1 06-22-2009 05:02 PM
I cant make my ip address public (ubuntu server 9.10) and mysqld.sock is empty Jamie Kugelmann Linux - Server 11 05-26-2009 07:40 AM
No IP address from DHCP server on Ubuntu 6.06, 6.1, Knoopix, Fedoce 5 and SuSE 10.1 MatWab Linux - Wireless Networking 8 06-19-2007 06:44 PM


All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration