LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-18-2011, 09:59 PM   #1
cparapat
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26

Rep: Reputation: 0
Host getting more than one ip address


Hi Guys,

I have 2 server on my development system.
I used Bind as my DNS Server.
I have need to solve here.
1. I have server with hostname ie ; dbnd2.mydomain.com
2. I have another server with hostname ie; webnd2.mydomain.com
Actually, this is a different purpose server. dbnd2.mydomain.com is for database server, and webnd2.mydomain.com for web server.

I try to look the hostname with command "host dbnd2.mydomain.com". From different server (and also was trying from internet). But it come with this result ;

dbnd2.mydomain.com has address 61.102.152.72
dbnd2.mydomain.com has address 61.102.152.82


What I was try is ;
1. I was change the hostname in webnd2.mydomain.com with command "sysctl -w kernel.hostname=webnd2.mydomain.com". Before it setting not with correctly hostname (dbnd2.mydomain.com). Again, to make sure, i was edit configuration in "/etc/sysctl.conf" and add the line with "kernel.hostname = webnd2.mydomain.com". And also I was restarting the computer. After restarting, I check again the hostname, and it comes with correctly specific hostname "webnd2.mydomain.com". I try to check with command "hostname" from this server itself.
2. I was check my BIND DNS Server, and the "dbnd2.mydomain.com" is only config once. There is no duplicate setup.

Which I need to check here, and have to change configuration ?
Thanks before..
 
Old 01-19-2011, 02:20 PM   #2
xmagicxxx
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Rep: Reputation: 0
Smile

Quote:
Originally Posted by cparapat View Post
Hi Guys,

I have 2 server on my development system.
I used Bind as my DNS Server.
I have need to solve here.
1. I have server with hostname ie ; dbnd2.mydomain.com
2. I have another server with hostname ie; webnd2.mydomain.com
Actually, this is a different purpose server. dbnd2.mydomain.com is for database server, and webnd2.mydomain.com for web server.

I try to look the hostname with command "host dbnd2.mydomain.com". From different server (and also was trying from internet). But it come with this result ;

dbnd2.mydomain.com has address 61.102.152.72
dbnd2.mydomain.com has address 61.102.152.82


What I was try is ;
1. I was change the hostname in webnd2.mydomain.com with command "sysctl -w kernel.hostname=webnd2.mydomain.com". Before it setting not with correctly hostname (dbnd2.mydomain.com). Again, to make sure, i was edit configuration in "/etc/sysctl.conf" and add the line with "kernel.hostname = webnd2.mydomain.com". And also I was restarting the computer. After restarting, I check again the hostname, and it comes with correctly specific hostname "webnd2.mydomain.com". I try to check with command "hostname" from this server itself.
2. I was check my BIND DNS Server, and the "dbnd2.mydomain.com" is only config once. There is no duplicate setup.

Which I need to check here, and have to change configuration ?
Thanks before..
I think you need to check following things:
1)check the hostname in bind
2)check which name server your machine is using from which you are trying to resolve hostname to ip address
3)check the hosts file from your client machine from which you are trying to resolve hostname of that server.
4)make sure only bind has the entry for that hostname and your machine is using the same name server in your networking config.

I guess that should resolve your problem.

-Sudarshan Mahajan
 
Old 01-20-2011, 12:09 AM   #3
cparapat
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26

Original Poster
Rep: Reputation: 0
Hi xmagicxx,
Thanks for your help response.
I was check configuration in "/etc/hosts". There is no I put the server that have problem on there (dbnd2.mydomain.com).
I was do recheck to BIND configuration. And no duplicate hostname for dbnd2.mydomain.com.
I do shutdowning my server, and then I check again with command "host dbnd2.mydomain.com" and the ouput result is only give one IP Address.
I think, even if the server itself down, we still able to see the IP Address. Because it will look from BIND configuration. Is it right ? Please correct me.
So, I guess the problem is on the server itself (webnd2.mydomain.com where coming as dbnd2.mydomain.com). Do you agree ? But which part on the server need to check related to the hostname ?
Thank you very much.
 
  


Reply

Tags
host, hostname


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the ip address of host in linux with using of host and nslookup command hussain.s Linux - General 4 10-23-2010 09:12 PM
how to get only ip address of host hussain.s Linux - General 3 10-22-2010 05:06 AM
some other host already uses address josephmo Linux - Networking 10 10-19-2010 02:08 AM
Can ssh into host on lan using WLAN address, but not through LAN address gurkakrieg Slackware 4 01-05-2010 07:19 AM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration