Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26
Rep:
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..
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.
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.